 | |  | | | Photopost Pro Bug Reports Post post installation PhotoPost Pro problems here. |
September 19th, 2006, 12:29 AM
|
#1 (permalink)
| | Member Verified Customer
Join Date: Dec 2005
Posts: 33
| Contest Votes by Users Awaiting Confirmation
I run Photopost 5.21 and use vBulletin registration. In trying to understand why the vote totals for a leading pic drastically reduced on the last day of voting, I became aware that Users Awaiting Confirmation were able to vote in the contest. I checked all the user settings in Photo Post and they are only able to view and nothing else. I cheked the Category settings and this user group is not allowed to vote. I even checked the data in the SQL database and confirmed that it agrees with the control panel. Yet they continue to be able to vote. Any ideas why this would be?
|
| |
September 19th, 2006, 09:00 AM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,809
|
In showgallery template try adding in bold Code: Content visible to verified customers only.
Last edited by Chuck S; September 27th, 2006 at 10:44 PM.
|
| |
September 19th, 2006, 09:53 PM
|
#3 (permalink)
| | Member Verified Customer
Join Date: Dec 2005
Posts: 33
|
Tried this coding, but it looked to me like the last semicolon should be a right parenthesis. I tried it as one with no result. Where should the right parenthesis be to complete the If statement?
|
| |
September 20th, 2006, 09:24 AM
|
#4 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,809
|
its complete must have deleted the ) putting in the bbcode tags. Basically that this says is if they are logged in do they have voting rights. You can turn off voting rights for usergroups in edit categories
|
| |
September 21st, 2006, 01:55 AM
|
#5 (permalink)
| | Member Verified Customer
Join Date: Dec 2005
Posts: 33
|
Sorry poor copying by me. Doesn't change the results, though.
The function is definitely turned off for the usergroup in edit categories, but I've tested and they can definitely vote. In fact, I've also indicated that Moderators and the Administrator can't vote, but when they log in, they are able to vote too. It appears that it's testing only the ability to successfully log in and not which usergroup is involved.
|
| |
September 21st, 2006, 04:38 AM
|
#6 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,809
|
Reapply the edit the catid variable needs to be $thecatid
|
| |
September 27th, 2006, 10:39 PM
|
#7 (permalink)
| | Member Verified Customer
Join Date: Dec 2005
Posts: 33
|
I revised, but with no change in results. All categories can still vote. Here's a copy of the coding now on the server, in case I've misunderstood the revisions.
if ( $takevotes == 1 && $CatPerms['ugvote'][$thecatid] = 0; ) {
|
| |
September 27th, 2006, 10:44 PM
|
#8 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,809
|
remove the semi-colon
|
| |
October 2nd, 2006, 09:50 AM
|
#9 (permalink)
| | Member Verified Customer
Join Date: Jul 2002 Location: London
Posts: 273
|
Hi guys,
I also run v5.21 and have exactly the same problem.
I tried adding the bold fix but that did not change things. I also tried cutting and pasting in the whole code block above, that did not fix it either.
So, as per tjanders, all levels of logged in user can vote in our competition... even though the category has it set for just 3 user levels to be able to do this.
Thanks for any help you can give.
Steve
|
| |
October 2nd, 2006, 10:51 AM
|
#10 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,809
| Code: Content visible to verified customers only.
That definately works fine
I would suggest you go into your cats editor if your edit is as noted and make sure only registered admins mods etc can vote
|
| |
October 12th, 2006, 12:40 AM
|
#11 (permalink)
| | 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&photo={$gallery['id'][$x]}">{$Globals['pp_lang']['vote']}</a></span>
<br />
PPPRINT;
}
}
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 04:49 PM. | |