vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Default Poll Timeout (https://vborg.vbsupport.ru/showthread.php?t=64291)

tjdrico 04-22-2004 09:00 PM

Default Poll Timeout
 
Again, did a quick search and didn't find this.

By default, polls are open ended. People can vote on them for as long as they like, and poll threads tend to get bumped even if no one posts (I know you can turn that off).

There isn't way to set the default time-out on polls, so they end after N days, and most people tend not to set one. If you want your forum's polls to have a default shelf life, there's a very simple way to encourage this:

Open poll.php

Find:
PHP Code:

// ############################### start new poll ###############################
if ($_REQUEST['do'] == 'newpoll')


After, add:
PHP Code:

$timeout 2

Save & close. The 2 means "2 days", so you can set it to 1 day, 5 days, a week etc. This will then be the default value in the "Poll Timeout" / "Close poll N days after" box. Users may freely change it back to 0 or any other value.

juanmalaga9 04-23-2004 04:13 PM

Very util and easy. Thanks ,)

FleaBag 04-24-2004 04:11 AM

Is there a way to make this forum specific?

tjdrico 04-24-2004 04:59 AM

Yes, but not without more hacking, which I haven't done. It would be better to have it controlled by the Admin CP, so I'll look into that.

ranger2kxlt 04-27-2004 11:00 AM

Would be great to have the user set the timeout date...we run polls for "car" of the month, and need the poll to end at a certain time....let us know if you create an option like this :-D

M.C. 04-29-2004 10:32 PM

What about Poll close date on your Poll create or edite page which is default option? Is it not the same?! ;)


All times are GMT. The time now is 03:38 PM.

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.01596 seconds
  • Memory Usage 1,714KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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