Helpful Information
 
 
Category: vBulletin 3.0 Full Releases
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:
// ############################### start new poll ###############################
if ($_REQUEST['do'] == 'newpoll')
{


After, add:
$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.

Very util and easy. Thanks ,)

Is there a way to make this forum specific?

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.

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

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










privacy (GDPR)