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)
-   -   RealTime Template Compressor: Reduces page sizes, loads pages faster, saves Bandwidth (https://vborg.vbsupport.ru/showthread.php?t=56589)

Cal Poly Forum 08-30-2003 07:36 PM

PHP Code:

Parse errorparse error in /home/kkwak/public_html/forum/admin/functions.php on line 957

Fatal error
Call to undefined function: vbdate() in /home/kkwak/public_html/forum/admin/sessions.php on line 404 


Any idea?
edit: Oh no! The whole board is down and can't seem to restore my SQL Database (giving me an error). :eek:

insanctus 08-30-2003 10:07 PM

Upload your back up copy (if you did back it up) if not try posting the line 957 in here so that they can better help you.

Crinos 08-31-2003 12:16 AM

This is a good hack, but unfortunately I can't use it after trying it ... it does remove spaces between tags and makes the page become slightly smaller (I got as much as 12% compression in some pages), but it also removes spaces that should aesthetically be there (those that don't have  , for instance) ...

One example include the separation between the page number links in multiple page topics...

they appear 12345...Last Page
instead of the usual
1 2 3 4 5 ... Last Page
and frankly I don't have time to go back to each template and replace the simple spacing with   so it would be recognized by the hack as a legitimate spacing...

Sure, I can just modify the default page navigation templates, but those weren't the only templates affected just coz of simple spacing, and it surely defeats the purpose of the hack anyway :D

As I said, this is an excellent hack but I can't incorporate it for aesthetic reasons... keep up the good work tho ... I'm having a blast with the webtemplates :D

heynurse 08-31-2003 06:21 AM

Nice job Logician! Thanks for the great documentation with your hacks!

oldgamesnu 08-31-2003 11:11 AM

Seems to work perfectly. Great Work!
--------------------------------------------------
Powered by: vBulletin Version 2.2.9
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Page generated in 0.24441695 seconds (88.99% PHP - 11.01% MySQL) with 25 queries.
[Debug Mode OFF] [PHP v4.3.2] [GZIP disabled]
[Output: 156.90 Kb. compressed to 148.90 Kb. by saving 8.00 Kb. (5.10%)] [Server Load: 0.00 » 0.01 : 0.00]

msimplay 08-31-2003 12:03 PM

works fine on the forum but messes up my Vbhome layout when i'm signed in as admin

Logician 08-31-2003 05:15 PM

Quote:

Yesterday at 11:36 PM Cal Poly Forum said this in Post #31
PHP Code:

Parse errorparse error in /home/kkwak/public_html/forum/admin/functions.php on line 957

Fatal error
Call to undefined function: vbdate() in /home/kkwak/public_html/forum/admin/sessions.php on line 404 


Any idea?
edit: Oh no! The whole board is down and can't seem to restore my SQL Database (giving me an error). :eek:

Can not be related to this hack. You obviously applied it wrongly.

Erwin 08-31-2003 08:46 PM

Very cool! Thanks, mate.

I installed this on my vB3 forums, and integrated it into my own version of microstats. Working very well. :)

Logician 08-31-2003 09:12 PM

Quote:

08-30-03 at 08:09 PM JulianD said this in Post #29
You know, I was thinking about it.. wouldn't be possible to disable this hack only if the Add template name in comments option is active on the control panel?
Yes that can be possible:

You need to change this line in the hack
PHP Code:

 $vartext=preg_replace ("/(\>)(\s*)(\\r\\n)*(\s*)(\<)/"'\\1\\5'$vartext); 

as:
PHP Code:

if ($addtemplatename==0) { $vartext=preg_replace ("/(\>)(\s*)(\\r\\n)*(\s*)(\<)/"'\\1\\5'$vartext); } 

And also add:
PHP Code:

global $addtemplatename

right after:
PHP Code:

function dooutput($vartext,$sendheader=1) { 

This will enable compression if template name option is turned on in settings page.

Enjoy.. :)

Logician 08-31-2003 09:17 PM

Quote:

Yesterday at 04:03 PM msimplay said this in Post #36
works fine on the forum but messes up my Vbhome layout when i'm signed in as admin
Never tried with vbhome (nor have ever used it) so dont know how they along together but I wouldn't expect any problems unless there is a HTML tag untideness (like missing < > etc.) in its source code.


All times are GMT. The time now is 04:18 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.01158 seconds
  • Memory Usage 1,754KB
  • 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
  • (6)bbcode_php_printable
  • (3)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