Full Pics for Featured Members

Redoing the sites home page, I would like to make certain members appear on featured, have their pics clickable to their profiles and then if someone wants to see more they have to go to the join page.  I know I can make the menu inaccessible to anyone except for members in the Navigation Menu Builder, and I know how to set members to Featured.  What I don't know how to do is to remove the thumb nails from the featured members and instead have it call up the members in full size pics instead, that way they stand out more and it will give people incentive to click on them.   

 

It would be nice to have an excerpt from their description below or next to the pic, but I won't push it here. 

 

So the question is how to get the featured members block to call full size pics and resize it to them without affecting thumbnails on the rest of the site?

 

 

Quote · 18 Feb 2009

open inc/design.inc.php

add function:
function get_member_photo( $ID, $float, $bDrawMargin=true )
{
global $site;

require_once( BX_DIRECTORY_PATH_ROOT . 'profilePhotos.php' );
$user_is_online = get_user_online_status( $ID );
//$sSexSql = "SELECT `Sex` FROM `Profiles` WHERE `ID` = '{$ID}'";
$aSexSql = getProfileInfo( $ID ); //db_arr( $sSexSql );
$oPhoto = new ProfilePhotos( $ID );
$oPhoto -> getActiveMediaArray();
$aFile = $oPhoto -> getPrimaryPhotoArray();

$sMarginsAddon = ($bDrawMargin) ? " margin:0px 5px 10px 5px;" : '';
$sMarginsRCAddon = '';

$sCoupleImgEl = '';
if ($aSexSql['Couple'] > 0) {
$aCoupleInfo = getProfileInfo( (int)$aSexSql['Couple'] );
//$oPhoto = new ProfilePhotos( $aCoupleInfo['ID'] );

$aCoupleFile = $oPhoto -> getPrimaryPhotoArray($aCoupleInfo['PrimPhoto']);
//--------------------------

if( extFileExists( $oPhoto -> sMediaDir . 'photo_' . $aCoupleFile['med_file'] ) && $aCoupleInfo['PrimPhoto']>0 )
$sCplFileName = $oPhoto -> sMediaUrl . 'photo_' . $aCoupleFile['med_file'];
else
{
if( $aCoupleInfo['Sex'] == 'female' or $aCoupleInfo['Sex'] == 'Female' )
$sSexPic = 'woman_medium.gif';
elseif( $aCoupleInfo['Sex'] == 'male' or $aCoupleInfo['Sex'] == 'Male' )
$sSexPic = 'man_medium.gif';
else
$sSexPic = 'visitor_medium.gif';
$sCplFileName = getTemplateIcon( $sSexPic );
}
//--------------------------
$sCplStyle =
'width:250px;' .
'height:250px;' .
'background-image:url(' . $sCplFileName . ');';

$sCplMarginsAddon = " margin-right:10px;margin-bottom:10px; ";
$sCoupleImgEl = '<img src="' . getTemplateIcon( 'spacer.gif' ) . '" style="' . $sCplMarginsAddon . $sCplStyle . '" alt="' . process_line_output( $aFileName['med_title'] ) . '" />';
$sMarginsAddon = ($bDrawMargin) ? " margin-right:10px;margin-bottom:10px; " : '';
//$sMarginsRCAddon = ($bDrawMargin) ? " margin-right:10px; " : '';
}

if( extFileExists( $oPhoto -> sMediaDir . 'photo_' . $aFile['med_file'] ) )
$sFileName = $oPhoto -> sMediaUrl . 'photo_' . $aFile['med_file'];
else
{
if( $aSexSql['Sex'] == 'female' or $aSexSql['Sex'] == 'Female' )
$sSexPic = 'woman_medium.gif';
elseif( $aSexSql['Sex'] == 'male' or $aSexSql['Sex'] == 'Male' )
$sSexPic = 'man_medium.gif';
else
$sSexPic = 'visitor_medium.gif';

$sFileName = getTemplateIcon( $sSexPic );
}

$style =
'width:250px;' .
'height:250px;' .
'background-image:url(' . $sFileName . ');';

//$bResDrawMargin = ($sCoupleImgEl != '') ? false : $bDrawMargin;
$bResDrawMargin = $bDrawMargin;
$ret = '';
$ret .= '<div class="thumbnail_block" style="float:' . $float . '; '.$sMarginsRCAddon.' ">';
$ret .= "<a href=\"".getProfileLink($ID)."\">";
$ret .= '<img src="' . getTemplateIcon( 'spacer.gif' ) . '" style="' . $sMarginsAddon . $style . '" alt="' . process_line_output( $aFileName['med_title'] ) . '" />' . $sCoupleImgEl;
$ret .= getProfileOnlineStatus( $user_is_online, $bResDrawMargin, ($sCoupleImgEl!='') );
$ret .= '</a>';
$ret .= '</div>';

return $ret;
}

Note the 250px you can change these sizes to your needs.

open templates/base/scripts/BxBaseIndex.php
in:
function getBlockCode_Featured()
after:
$y_o_sex = $age_str . '&nbsp;' . _t("_".$featured_arr['Sex']);
insert:
$i_am_desc =process_smiles(process_text_output($featured_arr['Headline']))."... <a href=\"".getProfileLink($featured_arr['ID'])."\">"._t("_more")."</a>";
after:
$ret .= get_member_photo( $featured_arr['ID'], 'none' );
insert:
$ret .= "$y_o_sex <Br>$i_am_desc  ";

You can see how you can call anything fromthe database with the statements above
so
$id = $featured_arr['ID'];
will pul out the ID

Have fun

I have it on www.darrenpowless.com/toots for a little while...will be gone tommorrow.

sorry for links guys but they have to see it somehow...if this offends you please pm me and I will remove

I have video tutorials to help you mrpowless.com
Quote · 18 Feb 2009

One more great post mrpowless ;-)  Thank you :-)

 

Good question mydatery ;-) Thanks to you too :-)

Life is a fatal disease, sexually transmissible - Virginity is carcinogenic! Ask here for vaccine.
Quote · 19 Feb 2009

All the thanks for this one belongs to mrpowless, I just needed to know how to do something I knew was beyond my abilities.  Thanks also for the great explanation as to how to call pretty much anything from the database.  These tips are way more useful if we understand the why things are being done and how they can be applied to other things. 

 

Awesome mod for the sites and helps expand dolphins usefulness even more. 

 

 

Quote · 19 Feb 2009
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.