vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Poll Start - End - Days Run/Remaining Hack v1.1 (https://vborg.vbsupport.ru/showthread.php?t=50785)

Stud_Muffin 03-26-2003 07:27 PM

So where abouts do i add

PHP Code:

} else {
    
$pollrun ''


Boofo 03-26-2003 07:27 PM

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. ;)

Boofo 03-26-2003 07:29 PM

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. ;)

Bison 04-10-2003 07:42 PM

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.

Boofo 04-11-2003 12:19 AM

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 04-11-2003 08:34 AM

My Vb version is 2.3.0 RC3

Boofo 04-11-2003 05:40 PM

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. ;)

BigJohnson 04-13-2003 11:53 AM

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.

Boofo 04-13-2003 06:37 PM

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.

Cyricx 04-16-2003 06:42 PM

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 :(


All times are GMT. The time now is 01: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.01080 seconds
  • Memory Usage 1,744KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete