View Single Post
Old November 2nd, 2006, 11:23 AM   #5 (permalink)
wfcmod
Member
Verified Customer
 
Join Date: Aug 2006
Posts: 44
I changed some of the code in showphoto but only in those phrases were the user info under the photo is set (I removed usertitle etc, just to clean up the view)...
I think the code you are referring to is the same...this is a copy directly from my server:
Quote:
while ( $thisrec = mysql_fetch_row($rows) )
{
if ( is_image_private($thisrec[2]) == "no" )
{
if ( $thisrec[0] == $photo )
{
for( $x = count($stripimgs); $x < 3; $x++ )
{
array_unshift( $stripimgs, null );
}
$stripimgs[] = $thisrec;

// Grab two more (if there)
$exc = 0;
while ( $nextrec = mysql_fetch_row($rows) )
{
if ( is_image_private($nextrec[2]) == "no" )
{
$stripimgs[] = $nextrec;
$exc++;

if ( $exc == 3 )
{
break;
}
}
}
break;
}
else
{
$stripimgs[] = $thisrec;

if ( count($stripimgs) == 4 )
{
array_shift($stripimgs);
}
}
}
}
wfcmod is offline   Reply With Quote