View Full Version : Hide Threads with unfinished Polls
Andreas
07-04-2005, 10:00 PM
<font size="3">Hide Threads with unfinished Polls</font>
Your Board has a fair amount of Traffic. One User starts a new Thread with a Poll, and
before he has finished submitting the Poll 10 other Users have already replied to the
Thread complaining about the missing Poll and such.
Then this Hack is for you:
It will hide Poll-Threads until the assigned Poll is ready.
Threads that don't get a Poll asigned within a certain amount of time can optionally
be fetched by a Garbage Collector and deleted.
The Timeout can be defined in vBulletion Options / Server Settings & Optimization Options.
Details
1 Product XML with 3 Phrases, 1 Setting and 7 Plugins
1 Template Edit
1 Image
History
1.0.0 Initial Version
1.0.1 Updated for vBulletin 3.5 RC1
1.0.2 Fixed a slight Problem with missing Phrases
Attention: This Hack only works with vBulletin 3.5 RC1 and up!
Please only click Install if you actually have installed/are using this Hack, and click Uninstall when you don't use it any longer!
Bad Bunny
07-05-2005, 09:21 PM
It seems amazing to me that something like this has not already been thought of yet. Why would this not be a regular function in vB? Anyway, very cool. I don't think my board is anywhere busy enough to have something like this yet, but it's good to have when it does get busier.
Biker_GA
07-05-2005, 10:59 PM
Most excellent! I've been "nailed" by this issue as well. :)
mOdEtWo
07-06-2005, 04:50 AM
Very interesting.
Andreas
07-27-2005, 03:24 PM
Updated for RC1.
Biker_GA
07-27-2005, 05:06 PM
Kirby, with the new xml file, if I attempt to "import product", I get an invalid file error.
Andreas
07-27-2005, 05:09 PM
My bad, uploaded the wrong ZIP.
Should be OK now.
Biker_GA
07-27-2005, 05:12 PM
That worked great. I like this new product management. :)
Chris M
07-27-2005, 08:50 PM
Flawless installation :)
Satan
FleaBag
07-27-2005, 10:10 PM
Kirby, you're slowly taking over my board. Thanks! :D
FD929
07-30-2005, 10:05 PM
Odd, the admincp phrase didn't install. The others did though. Another great one Kirby, .com needs to promote you to staff since you seem to be fixing all the bugs. lol :)
Andreas
07-31-2005, 03:54 AM
Odd, the admincp phrase didn't install. The others did though.
http://www.vbulletin.com/forum/bugs35.php?do=view&bugid=816 :)
XML fixed, the Phrases are now included.
Oblivion Knight
09-13-2005, 08:19 PM
This is pure genius.!
Thanks once again Kirby, keep up the good work.. ;)
ozmazdaclub
10-05-2005, 08:27 AM
Anyone tried this with VB3.5 Gold?
Trevor Hannant
10-21-2005, 10:11 PM
Anyone tried this with VB3.5 Gold?
Just updated a test board fine. About to hit the Live board with this also.
Great work again Andreas - and congrats on the new job! :up:
dcpaq2xx
01-06-2006, 07:36 AM
It seems amazing to me that something like this has not already been thought of yet. Why would this not be a regular function in vB? Anyway, very cool. I don't think my board is anywhere busy enough to have something like this yet, but it's good to have when it does get busier.
Then again guys why would the Vbulletin.com staff code the program to allow the post to be displayed to the message BEFORE the post is completly finished in the first place???
Kinda stupid if you were to ask me. You would think that they would have designed the board to let you create the poll while you create your post, not create your post post it to the board and then have to go back in and create the poll !
What about a hack or plugin that will get the board to let you create your poll while your creating your post? Then we wouldn't need this hack and it would probably be better than using this hack here.
How bout it Andreas??? Will you code this?
Doug
Trevor Hannant
01-18-2006, 08:13 PM
Has anyone tried getting this to work with vBookie (https://vborg.vbsupport.ru/showthread.php?t=94128) posts? Given that they are effectively posted as polls...........
Andreas
01-19-2006, 10:12 AM
vBookie events are not polls.
Trevor Hannant
01-20-2006, 06:10 AM
I know they're not actually polls Andreas, what I mean is that they're posted in the same manner - ie. create and submit your post first (which shows up in the relevant forum) then create the vBookie event which is added to the post later.
See where I'm coming from with this one?
Fofer
01-22-2006, 09:01 PM
Installed, lookin' good! Thanks Andreas!
Just FYI for others, if you have any alternate styles on your forum, be sure to upload exclamation.gif to the appropriate directories.
I have Aqua-Soft 2 installed so in addition to copying exclamation.gif to /images/misc/ I also had to copy it to /images/as2/misc/.
Hope this helps. And thanks again for a very helpful improvement.
yessir
08-29-2006, 03:44 PM
Anyone got this working on 3.6? :)
New Joe
02-12-2010, 05:06 AM
Installed and working on version 3.8.4
Great mod, should really be built into vB from the start.
In the Template edit for version 3.8.4 find in the newpoll template> method="post"> and add the code in the read me above that.
jonty
10-11-2010, 03:48 PM
changed code for 4.0.7
<vb:if condition="$threadinfo['visible'] == 3">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat">
{vb:rawphrase important_information}
</td>
</tr>
<tr>
<td class="alt1" valign="top">
<img src="{vb:stylevar imgdir_misc}/exclamation.gif" alt="{vb:rawphrase important_information}" width="40" height="42" align="left" style="margin-right: 5px" />
{vb:rawphrase unfinished_poll_thread_hidden_warning {vb:raw session.sessionurl},{vb:raw threadid},{vb:raw threadinfo.title}}
</td>
</tr>
</table>
<br />
</vb:if>
New Joe
12-08-2010, 04:57 AM
changed code for 4.0.7
<vb:if condition="$threadinfo['visible'] == 3">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat">
{vb:rawphrase important_information}
</td>
</tr>
<tr>
<td class="alt1" valign="top">
<img src="{vb:stylevar imgdir_misc}/exclamation.gif" alt="{vb:rawphrase important_information}" width="40" height="42" align="left" style="margin-right: 5px" />
{vb:rawphrase unfinished_poll_thread_hidden_warning {vb:raw session.sessionurl},{vb:raw threadid},{vb:raw threadinfo.title}}
</td>
</tr>
</table>
<br />
</vb:if>
Thanks that worked fine.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.