Eq4bits |
02-24-2007 09:07 PM |
Quote:
Originally Posted by Hurricane
(Post 915021)
I know this is not the proper way of doing this, but here is a modification of the modified version of the regular hack.
This one is for admins. Only the admins can hide results to polls and admins can always see the results.
THIS IS NOT AN UPGRADE! Do not install with the other one! This is named differently so you can not overwrite the other one. You will have to uninstall the other one first and install this one.
|
Will the fix for hiding on vbadvanced work with this as well? I think the post is a page before where this admin version is originally posted.
the fix was to open currentpoll.php in vbadvanced module folder and changing
Code:
SELECT thread.pollid, open, threadid, replycount, forumid, question, poll.dateline, options, votes, active, numberoptions, timeout, multiple, voters, public $query[pollfields]
to
Code:
SELECT thread.pollid, hidepoll, open, threadid, replycount, forumid, question, poll.dateline, options, votes, active, numberoptions, timeout, multiple, voters, public $query[pollfields]
and
Code:
if ($pollinfo['showresults'])
to
Code:
if ($pollinfo['showresults'] && !$pollinfo['hidepoll'])
|