// Photo in Member List - Hack by: Hal10000
//
// This hack will show the Photo of an User in the Member List
// and in the Top 10 poster overall list instead of the Camera Symbol.
//
// Supplied and supported by Hal10000 (hack@hal10000.de)
=======================================================================//
Step 1 - Download and Backup > sources/Memberlist.php
=======================================================================//
--------------------------------------------------------------------
Open sources/Memberlist.php AND FIND THE FOLLOWING (around line 271)
--------------------------------------------------------------------
if ($member['photo_type'] and $member['photo_location'])
{
$member['camera'] = "base_url}act=Profile&CODE=showphoto&MID={$member['id']}','Photo','200','250','0','1','1','1')\"><{CAMERA}>";
}
--------------------------------------------------------------------
REPLACE WITH THE FOLLOWING LINES
--------------------------------------------------------------------
if ($member['photo_type'] and $member['photo_location'])
{
if ($member['photo_type'] == 'upload' )
{
$member['camera'] = "base_url}act=Profile&CODE=showphoto&MID={$member['id']}','Photo','200','250','0','1','1','1')\">
vars['upload_url']."/".$member['photo_location']."\" width='32' alt='Photo' />";
}
else if ( $member['photo_type'] == 'url' )
{
$member['camera'] = "base_url}act=Profile&CODE=showphoto&MID={$member['id']}','Photo','200','250','0','1','1','1')\">
";
}
else
{
$member['camera'] = "base_url}act=Profile&CODE=showphoto&MID={$member['id']}','Photo','200','250','0','1','1','1')\"><{CAMERA}>";
}
}
=======================================================================//
Step 2 - Save and Close sources/Memberlist.php
=======================================================================//
--------------------------------------------------------------------
Now Upload the file that you edited back to their proper locations
--------------------------------------------------------------------
> sources/Memberlist.php
=====================================================================
Your Finished, use and enjoy :)
=====================================================================