View Single Post
Old February 23rd, 2010, 12:44 AM   #30 (permalink)
Luciano
Registered User
 
Join Date: Aug 2005
Posts: 1,229
by removing:
if ($userid)
{
$wherequery[] = 'images.userid = ' . $userid;
}
You loose (under some circonstances) the user category in filmstrip when doing prev/next, jumping to overall imagecategory...
not a big deal, unless you are the imageowner...
then you wont have some small drawbacks... like "unsubscribe to that category wont appear" (not imagesubscription.. that will be there.. but category subscription) etc...

Please test this quickfix:
find:
Code:
Content visible to verified customers only.
replace with:
Code:
Content visible to verified customers only.
cant test it, because not at home... but it should work.. and the hack should not interfere anymore..

Luc

PS:
we use if(isset($_REQUEST['userid']) AND intval($_REQUEST['userid']) instead of if($_REQUEST['userid']) because for some reason php >5.3 issues a warning saying request[userid] is not set.... (vbulletin suppresses that warning, so you wont see it.. but checkin isset first, the warning doesnt appear at all...

Last edited by Luciano; February 23rd, 2010 at 02:16 AM.
Luciano is offline   Reply With Quote