Version: 1.00, by Boofo
Developer Last Online: Jun 2012
Version: 2.2.x
Rating:
Released: 03-24-2003
Last Update: Never
Installs: 17
No support by the author.
Poll Start - End - Days Run/Remaining Hack
Version 1.1
(By Boofo and Zzed)
What this hack does:
It will list the Start Date, End Date, Days to Run and the Days remaining for a poll in both the forumdisplay (under the thread title) and the showthread (under the poll question or status). If the poll does not have an ending time, the Start Date, End Date, Days to Run and Days Remaining will not show up.
Files to edit: 2 (forumdisplay.php, showthread.php)
Templates to edit: 3 (forumdisplaybit, showthread_polloptions, showthread_pollresults)
Install Time: 5 minutes (if you are REALLY slow)
Version 1.0 - Initial release
Version 1.1 - Fixed the error that a few people were having with the poll start and end time showing up in each thread instead of just the thread it was intended for.
French translation of this hack in post 7.
Screenshots in posts 4, 5 and 6 below.
If you find this hack useful, please click the install button.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
I just experienced the same problem as the guy above. Once a poll is created in any forum and is given a expiration date, all of the threads in that forum inherits the poll start and expiration date printed under all threads. If you don't enter a expiration date, everything works fine.
Also i've noticed that if someone uses the "Move with redirect" ... it in advertantly adds the polls start/exp date to each thread in that forum where the "Move with Redirect" was applied.
Was it working fine before? I have not experienced that at all on my forums. It works like clock-work. I will look into it and see if I can figure out what is going on.
Stud_Muffin & Rolodex - Try the following code. Replace it in both the forumdisplay.php and showthread.php files
Find:
PHP Code:
$pollrun = "<br><nobr><smallfont>Start Date: $start | End Date: $finish | Days to Run: $days | Days Remaining: $remaining</nobr></smallfont>";
} else {
$pollrun = '';
Replace it with this:
PHP Code:
$pollrun = "<br><nobr><smallfont>Start Date: $start | End Date: $finish | Days to Run: $days | Days Remaining: $remaining</nobr></smallfont>";
} else {
$pollrun = "<br /><smallfont>(<b>No ending date set</b>)</smallfont>";
and let me know if this fixes your problem. If it does, I will update the first post. I am not experiencing this, myself, but this should take care of the problem for you.
I am running 2.2.9 and using the same exact code and it works fine for me and the others who have installed it. Recheck the instructions and make sure you have entered it into the right templates.
Getting the same thing for me on VB 2.2.9 followed the instructions carefully as listed and it's displaying the run time on all threads including polls