vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Pig's Subscription Gift (https://vborg.vbsupport.ru/showthread.php?t=105553)

boozehound 01-17-2006 05:52 PM

Quote:

Originally Posted by bashy
Hi

I have installed and clicked install...

I get this error now when i got my donations page????

Warning: Division by zero in /includes/functions.php(4320) : eval()'d code on line 10

Any ideas please?

Hmm line 4320 says...
Code:

($hook = vBulletinHook::fetch_hook('global_complete')) ? eval($hook) : false;
... so what code is in your global_complete hooks?

bashy 01-17-2006 06:11 PM

Hi...

the only 1 that is enabled is the Realtime Template Compressor
and this is the code for it, the other 2 are disabled so i have not mentioned them....

Code:

//Logician Hack:
$page_byte=strlen($output);
$output=preg_replace ('/\r\n(\s*)/', "\r\n", $output);

$pagenew_byte=strlen($output);
$page_kilobyte=number_format(($page_byte/1024),2);
$pagenew_kilobyte=number_format(($pagenew_byte/1024),2);
$pagesaved_byte=$page_byte-$pagenew_byte;
$pagesaved_kilobyte=number_format((($pagesaved_byte)/1024),2);
$pagesaved_perc=number_format(((100*$pagesaved_byte)/$page_byte),2);

$output = str_replace('</body>', '<center><span class="smallfont">[Output: ' . $page_kilobyte . ' Kb. compressed to <b>' . $pagenew_kilobyte . '</b> Kb. by saving <b>' . $pagesaved_kilobyte . '</b> Kb. (' . $pagesaved_perc . '%)]</span></center></body>', $output);
//Logician Hack:


bashy 01-17-2006 06:13 PM

I have just disabled this compressor and i dont get the error any more, although my donations page still does not show..... :(

boozehound 01-17-2006 06:14 PM

Does this error go away when you disable or uninstall my product?

bashy 01-17-2006 06:23 PM

I think i have resolved it, I had upgraded VB earlier last week and i need to redo a few things :(

bashy 01-17-2006 06:42 PM

Sorry about that m8, I panicked thinking it was when i installed you hack as i had not checked the donations page latley and once i had installed yours i then checked the page and obviously it was not working as i had upgraded VB, hence i assumed it was your hack....

My oplogies m8...Yours is installed and working well...
Great hack, keep up the good work..

Sorry again for the false alarm :o

bigmonay2k 03-05-2006 01:21 AM

great hack, will it work for 3.5.1?

Josh1 03-05-2006 03:52 AM

Will this work in 3.5.4?

Erwin 03-08-2006 08:09 PM

Is this working for people with 3.5.4 as it is? My members when they use this seem to get the subscription go back to their own accounts.

dsotmoon 03-08-2006 08:56 PM

i'd like add this too if its 3.5.4 ready ? ? ?


All times are GMT. The time now is 02:31 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.01090 seconds
  • Memory Usage 1,735KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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