View Single Post
Old October 11th, 2006, 11:40 PM   #11 (permalink)
tjanders
Member
Verified Customer
 
Join Date: Dec 2005
Posts: 33
Not sure what I'm not getting right here, as all categories can vote even though only registered is turned on in the cats editor. For a work around, I've turned off the ability to view images for Users Awaiting Confirmation as this prevents them from voting nicely. Here's a copy of my code in case I still haven't set it up right:

if ( $ratingtype == 1 ) {
if ( $hasvoted == 0 && $User['userid'] != $gallery['userid'][$x] && $User['userid'] > 0 ) {
if ( $takevotes == 1 && $CatPerms['ugvote'][$thecatid] = 0 ) {
echo<<<PPPRINT
<span class="{$Style['small']}"><a href="{$Globals['maindir']}/misc.php?action=vote&amp;photo={$gallery['id'][$x]}">{$Globals['pp_lang']['vote']}</a></span>
<br />
PPPRINT;
}
}
tjanders is offline   Reply With Quote