Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Poll Start - End - Days Run/Remaining Hack v1.1 Details »»
Poll Start - End - Days Run/Remaining Hack v1.1
Version: 1.00, by Boofo Boofo is offline
Developer Last Online: Jun 2012 Show Printable Version Email this Page

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.

Comments
  #22  
Old 03-26-2003, 07:27 PM
Stud_Muffin Stud_Muffin is offline
 
Join Date: Sep 2002
Location: UK
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So where abouts do i add

PHP Code:
} else {
    
$pollrun ''
Reply With Quote
  #23  
Old 03-26-2003, 07:27 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 02:52 PM Sebastian said this in Post #20
nice job., Boofo
Thank for the kind words. Don't forget the install button.
Reply With Quote
  #24  
Old 03-26-2003, 07:29 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 03:27 PM Stud_Muffin said this in Post #21
So where abouts do i add

PHP Code:
} else {
    
$pollrun ''
That is in the code you were supposed to add to the php files. Check the instructions and make sure you added all of the code exactly like it says.
Reply With Quote
  #25  
Old 04-10-2003, 07:42 PM
Bison's Avatar
Bison Bison is offline
 
Join Date: Jun 2002
Location: Virginia Beach, Virginia
Posts: 522
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Boofo,

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.
Reply With Quote
  #26  
Old 04-11-2003, 12:19 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #27  
Old 04-11-2003, 08:34 AM
Stud_Muffin Stud_Muffin is offline
 
Join Date: Sep 2002
Location: UK
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My Vb version is 2.3.0 RC3
Reply With Quote
  #28  
Old 04-11-2003, 05:40 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #29  
Old 04-13-2003, 11:53 AM
BigJohnson BigJohnson is offline
 
Join Date: Nov 2001
Posts: 535
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nope that definaltey does not work. It has to be a problem in one of the IF statements then. Calloing for the wrong variable.

But I am using 2.2.9 and am having the same problem.
Reply With Quote
  #30  
Old 04-13-2003, 06:37 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #31  
Old 04-16-2003, 06:42 PM
Cyricx Cyricx is offline
 
Join Date: Aug 2002
Location: Missouri
Posts: 1,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:12 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.04293 seconds
  • Memory Usage 2,316KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete