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)

Boofo 04-16-2003 07:58 PM

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.

Bison 04-17-2003 01:37 PM

Remove this (high-lighted):

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

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

$thread[pagenav]

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

$thread[pagenav]$pollrun

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

Everything should work! ;)

subu1 04-17-2003 04:33 PM

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

subu1 04-17-2003 06:01 PM

ups, i dont see in my forum display, i have the same problem with the other Friends here, i have 2.2.8

subu1 04-17-2003 06:05 PM

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:

Boofo 04-17-2003 07:19 PM

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];"); 


subu1 04-17-2003 07:47 PM

sorry,it work not

Zzed 04-17-2003 07:53 PM

Try this:
PHP Code:

$pollrun "";
if(
$thread[pollid]) {
  
$polldatetime $DB_site->query_first("SELECT dateline, timeout from poll where pollid = $thread[pollid];"); 


Bison 04-17-2003 08:08 PM

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

Boofo 04-17-2003 08:11 PM

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


All times are GMT. The time now is 06:51 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.02003 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
  • (3)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