Quote:
Originally Posted by djnth
I installed this and I have one MAJOR problem. I'm using vBAdvanced CMPS and the poll on the front page is pulling polls that are supposed to be hidden and displaying the results. Even when I'm not logged in as an ADMIN, just as a guest. Now I have people that are able to see the results of a secret vote. You can view it at www.azdancemusic.com
|
Sorry about that, didn't think about it. You will have to go into the currentpoll.php mod and edit it. At line 65 (in mine) so it should be around there, add hidepoll to the list of fields to get:
Find this:
PHP Code:
SELECT thread.pollid, open, threadid, replycount, forumid, question, poll.dateline, options, votes, active, numberoptions, timeout, multiple, voters, public $query[pollfields]
Change it to:
PHP Code:
SELECT thread.pollid, hidepoll, open, threadid, replycount, forumid, question, poll.dateline, options, votes, active, numberoptions, timeout, multiple, voters, public $query[pollfields]
Then find this:
PHP Code:
if ($pollinfo['showresults'])
And change it to this:
PHP Code:
if ($pollinfo['showresults'] && !$pollinfo['hidepoll'])
I think that will do it, let me know if it doesn't. I don't think there is a way to do it in the product so this is it, let me know if you need anything else.
Mark
EDIT: PS. I haven't actually tried this so I don't know for sure, but it should work.