PDA

View Full Version : Poll results hidden until date specified


Omega Prime
10-06-2005, 01:48 AM
I don't believe such a hack/feature exists, so if that's the case, do point me in the right direction. At any rate, I was hoping for the following feature:

My forum is currently running a karaoke contest and I'd like it so that once it comes down to voting the entrants, a member can vote for an entrant and a screen like "Your vote has been cast and you'll be shown the results on (insert date here)" The screen itself isn't truly necessary, but the idea of hiding poll results til a specified date is what I'm really hoping for. Admins/super mods would be able to view the poll normally (to check for cheating and whatnot), but regular members will just see some sort of box/text area where the poll results usually are saying that they'll have to wait til the specified date. Perhaps a per-forum feature would be appreciated, but that's also not truly needed.

I'm really hoping that someone can create such a hack, as we'll be having the voting begin on the 15th. A million thanks to whomever releases this (if it's even possible) !!

Omega Prime
10-07-2005, 11:01 PM
...anyone?

Andreas
10-07-2005, 11:07 PM
Should the date be the same as the poll end date?
That would be fairly easy to implement.

Omega Prime
10-09-2005, 12:55 AM
Should the date be the same as the poll end date?
That would be fairly easy to implement.

That would be great :)

R1D1
10-09-2005, 08:04 AM
That would be great :)

yap! i'd like that too... :)

Omega Prime
10-11-2005, 11:50 PM
That would be great :)

Any word of this, Kirby? Not sure how easy (or hard) it is to make such a hack :)

Andreas
10-13-2005, 10:44 PM
poll_results_complete

if ((($pollinfo['dateline'] + $pollinfo['timeout'] * 86400) > TIMENOW) AND $pollinfo['timeout'] != 0)
{
$pollendtime = vbdate($vbulletin->options['timeformat'], $pollinfo['dateline'] + ($pollinfo['timeout'] * 86400));
$pollenddate = vbdate($vbulletin->options['dateformat'], $pollinfo['dateline'] + ($pollinfo['timeout'] * 86400));

$pollbits = "<tr><td class=\"alt1\" colspan=\"2\">The results are hidden until this poll is over.</td></tr>";
}


showthread_poll_complete

if (($showresults OR $uservoted) AND (($pollinfo['dateline'] + $pollinfo['timeout'] * 86400) > TIMENOW) AND $pollinfo['timeout'] != 0)
{
$pollendtime = vbdate($vbulletin->options['timeformat'], $pollinfo['dateline'] + ($pollinfo['timeout'] * 86400));
$pollenddate = vbdate($vbulletin->options['dateformat'], $pollinfo['dateline'] + ($pollinfo['timeout'] * 86400));

$pollbits = "<tr><td class=\"alt1\" colspan=\"2\">The results are hidden until this poll is over.</td></tr>";
}

Boofo
10-13-2005, 11:20 PM
Any way to have a setting for this on creating a poll, Kirby? ;)

Omega Prime
10-14-2005, 03:44 PM
Thanks a ton for this, Kirby!!! :D