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
  #32  
Old 04-16-2003, 07:58 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'm looking into this now. I will be sending an update with whatever fix I find to anyone who has installed this and clicked the install button.
Reply With Quote
  #33  
Old 04-17-2003, 01:37 PM
Bison's Avatar
Bison Bison is offline
 
Join Date: Jun 2002
Location: Virginia Beach, Virginia
Posts: 522
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Remove this (high-lighted):

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
In the "forumdisplaybit" template

Find:
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

$thread[pagenav]

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Replace it with:
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

$thread[pagenav]$pollrun

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

Everything should work!
Reply With Quote
  #34  
Old 04-17-2003, 04:33 PM
subu1 subu1 is offline
 
Join Date: Sep 2002
Location: Germany
Posts: 189
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi Boofo, you know my english is not the best, but i thing you unterstand if i say "your Hack is very fine, it works*

thank you

subu1
Reply With Quote
  #35  
Old 04-17-2003, 06:01 PM
subu1 subu1 is offline
 
Join Date: Sep 2002
Location: Germany
Posts: 189
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ups, i dont see in my forum display, i have the same problem with the other Friends here, i have 2.2.8
Reply With Quote
  #36  
Old 04-17-2003, 06:05 PM
subu1 subu1 is offline
 
Join Date: Sep 2002
Location: Germany
Posts: 189
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 02:37 PM Rolodex said this in Post #32
Remove this (high-lighted):

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
In the "forumdisplaybit" template

Find:
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

$thread[pagenav]

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Replace it with:
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

$thread[pagenav]$pollrun

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

Everything should work!

ok i have removed $pollrun now it will work :classic: I hope so :bunny:
Reply With Quote
  #37  
Old 04-17-2003, 07:19 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, we think some global info might be carrying over to the other polls. Try this fix and it should take care of any problems you guys have been having with this hack.

Look for:

PHP Code:
if($thread[pollid]) {
  
$polldatetime $DB_site->query_first("SELECT dateline, timeout from poll where pollid = $thread[pollid];"); 
and replace it with:

PHP Code:
if($thread[pollid]) {
  
$pollrun "";
  
$polldatetime $DB_site->query_first("SELECT dateline, timeout from poll where pollid = $thread[pollid];"); 
Reply With Quote
  #38  
Old 04-17-2003, 07:47 PM
subu1 subu1 is offline
 
Join Date: Sep 2002
Location: Germany
Posts: 189
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sorry,it work not
Reply With Quote
  #39  
Old 04-17-2003, 07:53 PM
Zzed's Avatar
Zzed Zzed is offline
 
Join Date: Feb 2002
Location: Glendale, CA, USA
Posts: 463
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try this:
PHP Code:
$pollrun "";
if(
$thread[pollid]) {
  
$polldatetime $DB_site->query_first("SELECT dateline, timeout from poll where pollid = $thread[pollid];"); 
Reply With Quote
  #40  
Old 04-17-2003, 08:08 PM
Bison's Avatar
Bison Bison is offline
 
Join Date: Jun 2002
Location: Virginia Beach, Virginia
Posts: 522
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Look guys,

All you need to do is *remove* what I said above and the dang hack will work without error.

It worked for me ... that whole bit of code is un-necessary
Reply With Quote
  #41  
Old 04-17-2003, 08:11 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:08 PM Rolodex said this in Post #39
Look guys,

All you need to do is *remove* what I said above and the dang hack will work without error.

It worked for me ... that whole bit of code is un-necessary
That whole bit of code is if you want the poll start and end date in the foumdisplay, also. That was the original idea for the hack.
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:14 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.04474 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
  • (3)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