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

Thank you, sir. Coming from you, that means alot.
Reply With Quote
  #13  
Old 03-25-2003, 03:55 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice hack buddy - you sure love using the date systems in php don't you

- miSt
Reply With Quote
  #14  
Old 03-25-2003, 04:02 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you really think about it, that is the main backbone of vBulletin. I love the $ourtimenow variable. Can't get enough of it.

And Zzed came up with the core of the code. I just re-worked it to fit what we needed.
Reply With Quote
  #15  
Old 03-25-2003, 04:57 PM
Intex Intex is offline
 
Join Date: Apr 2002
Posts: 576
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice one Boofo - I'll add this to my install list .
Reply With Quote
  #16  
Old 03-25-2003, 05:09 PM
Zzed's Avatar
Zzed Zzed is offline
 
Join Date: Feb 2002
Location: Glendale, CA, USA
Posts: 463
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 10:02 AM Boofo said this in Post #13
If you really think about it, that is the main backbone of vBulletin. I love the $ourtimenow variable. Can't get enough of it.

And Zzed came up with the core of the code. I just re-worked it to fit what we needed.
Very nice Boofo. Well done my friend.

And thank you for your kind words.
Reply With Quote
  #17  
Old 03-26-2003, 03:49 AM
Stud_Muffin Stud_Muffin is offline
 
Join Date: Sep 2002
Location: UK
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I installed it in vb 2.3.0 and it seams to be showing in almost all the threads :surprised: Something in the forumdisplay.php ??
Reply With Quote
  #18  
Old 03-26-2003, 04:58 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you have a start time and end time configured with the poll, it will show. It you don't have an ending time configured, it will not show. Check your polls and see how many of them are set up with the start and end time.
Reply With Quote
  #19  
Old 03-26-2003, 02:39 PM
Stud_Muffin Stud_Muffin is offline
 
Join Date: Sep 2002
Location: UK
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

NO, sorry my fault. Perhaps i should include a screenshot to explain They all have the same start and end date as the test poll i just posted. so if you set all the polls of the forum not to time out it does not display like the screenshot
Reply With Quote
  #20  
Old 03-26-2003, 05:34 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 10:39 AM Stud_Muffin said this in Post #18
NO, sorry my fault. Perhaps i should include a screenshot to explain They all have the same start and end date as the test poll i just posted. so if you set all the polls of the forum not to time out it does not display like the screenshot
Ok, make sure you edit the "forumdisplaybit" template with:

$thread[pagenav]$pollrun

I had that happen as I was putting this together before I added:

PHP Code:
    } else {
    
$pollrun ''
to the code but that fixed it on my site.

Please recheck the instructions and make sure everything is there and let me know. There's really no way that should be happening unless you either missed a piece of code or got it in the wrong place.
Reply With Quote
  #21  
Old 03-26-2003, 06:52 PM
Sebastian's Avatar
Sebastian Sebastian is offline
 
Join Date: Oct 2002
Location: America
Posts: 488
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice job., Boofo
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 10:42 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.04577 seconds
  • Memory Usage 2,308KB
  • 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
  • (1)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
  • (3)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