vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Board Optimization - Page Output Compression - Whitespace stripper. (https://vborg.vbsupport.ru/showthread.php?t=69787)

Amavisca 10-31-2004 03:57 PM

when i try to put 'journal' in, it game an error

Oblivion Knight 10-31-2004 04:02 PM

Make sure that the line above has a commar after it..

It should look something like this:

Code:

        $thisscriptis = array(
                'editpost',
                'register',
                'newreply',
                'newthread',
                'sendmessage',
                'private',
                'journal'
        );


Amavisca 10-31-2004 04:09 PM

Thnx for the quick reply ok, yep i forget the comma. I have another question if u can answer: what does this info tell u :
Page generated in 0.53191209 seconds (65.18% PHP - 34.82% MySQL) with 13 queries
DEBUG Mode OFF | GZIP ON (level 1) | 0.41 : 0.40 : 0.37 | No uncached Templates

and btw I just move to a dedicate server but the serverload and memory is very high sometimes, how can i keep it low>?

msimplay 10-31-2004 05:43 PM

isn't there a way to just exclude the html tag from the white space stripper ?

Oblivion Knight 10-31-2004 05:50 PM

Quote:

Originally Posted by Amavisca
what does this info tell u :
Page generated in 0.53191209 seconds (65.18% PHP - 34.82% MySQL) with 13 queries
DEBUG Mode OFF | GZIP ON (level 1) | 0.41 : 0.40 : 0.37 | No uncached Templates

and btw I just move to a dedicate server but the serverload and memory is very high sometimes, how can i keep it low>?

What page are those stats from, and what hacks do you have installed? The page generation time and server loads are both higher than what I'd deem as normal.


Quote:

Originally Posted by msimplay
isn't there a way to just exclude the html tag from the white space stripper ?

If you use the "lite" version; the php, code and html tags shouldn't be affected.

Deimos 10-31-2004 05:53 PM

Works ok for me, I installed it.
Definite speed improvement.

Amavisca 10-31-2004 06:42 PM

Quote:

What page are those stats from, and what hacks do you have installed? The page generation time and server loads are both higher than what I'd deem as normal.
It is from my forumhome ( which has quite a few icon image and lots forums ) and I did install the Micro Stat hax.

msimplay 10-31-2004 07:28 PM

Quote:

Originally Posted by Oblivion Knight


If you use the "lite" version; the php, code and html tags shouldn't be affected.

hmm have u tested this coz for me it did change the way it rendered the page

code and php tags are unaffected but html tag goes haywire

^^ sorry

apparently this works with it great

PHP Code:

    $thisscriptis = array(
        
'editpost',
        
'register',
        
'newreply',
        
'newthread',
        
'sendmessage'
    
);

    if (!
in_array(THIS_SCRIPT$thisscriptis))
    {
        
$patterns = array('/\>\s+\</''/^\s*/m');
        
$replace = array('> <''');
        
$vartext preg_replace($patterns$replace$vartext);
    }
    else
    {
        
$vartext preg_replace('/\>\s+\</''> <'$vartext);
    } 


Mickie D 10-31-2004 07:50 PM

@buro9 feel free to do with it what ever you wish :)

this hack is great most people want to install games and pets (and i do aswell lol) but when they use vb some more and their sites get busier they will be running to these mods.


@amavisca http://turck-mmcache.sourceforge.net/index_old.html <---- the best software for php (and to all other people you wont be able to use this unless you have ssh access or you have a nice host that will install it for ya)

buro9 11-02-2004 12:41 PM

Quote:

Originally Posted by Mickie D
@buro9 feel free to do with it what ever you wish :)

this hack is great most people want to install games and pets (and i do aswell lol) but when they use vb some more and their sites get busier they will be running to these mods.


@amavisca http://turck-mmcache.sourceforge.net/index_old.html <---- the best software for php (and to all other people you wont be able to use this unless you have ssh access or you have a nice host that will install it for ya)

First post adjusted to use the array version (simpler than explaining what is going on with a 'lite' or 'extreme' version).

Also added credit to those in this thread who have helped others resolve problems and questions from others.

Also modified the instruction to say AFTER a chunk of code, rather than BEFORE. As the old version depended on not having microstats installed... the new version should be clearer for all of those who want to install it... microstats or not.


All times are GMT. The time now is 06:12 PM.

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.01162 seconds
  • Memory Usage 1,752KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_php_printable
  • (5)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