PDA

View Full Version : Ratings not showing for guests


skidpics
March 16th, 2009, 02:25 PM
Got a weird image rating problem

images uploaded when logged in - ratings show to guests.

images uploaded by guest, ratings only show if logged in.


Not working, uploaded by guest: Free image hosting, free photo sharing - Skidpics - 5239a45f22d550cde9ca8c85d9431f521 (http://skidpics.com/showphoto.php/photo/19192)

working, uploaded my logged in user: Free image hosting, free photo sharing - Skidpics - 104008B (http://skidpics.com/showphoto.php/photo/19195)

Chuck S
March 16th, 2009, 03:23 PM
The ratings are never shown to the same userid that uploads a photo


if ( $User['userid'] != $iuserid )
{
include( "{$Globals['PP_PATH']}/{$Globals['TMPL_PATH']}/quickrate.tmpl" );
}

skidpics
March 16th, 2009, 03:32 PM
you mean any person that is a guest, and is viewing an image that another guest uploaded, the ratings will still not show? I thought it was tracked by IP?

Chuck S
March 16th, 2009, 04:06 PM
You could theoretically change that line I noted in showphoto.php to simply this


include( "{$Globals['PP_PATH']}/{$Globals['TMPL_PATH']}/quickrate.tmpl" );