vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Poll results hidden until date specified (https://vborg.vbsupport.ru/showthread.php?t=97690)

Omega Prime 10-06-2005 01:48 AM

Poll results hidden until date specified
 
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

Quote:

Originally Posted by KirbyDE
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

Quote:

Originally Posted by Omega Prime
That would be great :)

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

Omega Prime 10-11-2005 11:50 PM

Quote:

Originally Posted by Omega Prime
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
PHP Code:

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
PHP Code:

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


All times are GMT. The time now is 09:54 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01804 seconds
  • Memory Usage 1,740KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete