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)

Mystics 10-03-2004 04:58 PM

Quote:

Originally Posted by Mickie D
(i think it works lol)

Better change it to this:
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-11-2004 01:00 PM

yeah mystics is right i did change it on my site and forgot to change it on here i will update that post :)

Mosh 10-17-2004 01:12 AM

[high]* Mosh clicks install (Mystics version)
[/high]

But credits to buro9 too, for getting me to read the entire thread through in the 1st place as it is a very interesting way of speeding things up.

JD :)

SaN-DeeP 10-17-2004 06:44 AM

/me installs.
I can see the difference, page loads faster for me

Thankx for this great 1 line hack

REgards,

Mickie D 10-17-2004 08:28 AM

Quote:

Originally Posted by jdsinclair
[high]* jdsinclair clicks install (Mystics version)
[/high]

But credits to buro9 too, for getting me to read the entire thread through in the 1st place as it is a very interesting way of speeding things up.

JD :)

dont you mean Mickie D's version ?

never mind i guess me thinking up the whole THIS_SCRIPT idea dont count and i already had the fix on my site i just forgot to update here :(

but as always thanks for mystics pointing it out to everyone else.

last but not least you wll also want to add private into the array so it does not screw up private messages

find
Code:

'editpost',
under it add
Code:

'private',
Regards
Mickie D

GlitterKill 10-18-2004 01:19 AM

Very nice! forum pages are noticably snappier.

Can this be implemented on other non VB php pages? How would that be done? I'm sure the rest of my site could benefit from this. :)

*installed*

Makador 10-18-2004 02:53 PM

Great! Thank you very much.

gwhooooey 10-18-2004 10:09 PM

I've got https://vborg.vbsupport.ru/showthread.php?t=62173 installed

...which splits up the two bits of line that you say to add the code before... so can you look at this hack and then tell me where i'd put your code. Thanks

Mosh 10-19-2004 11:13 AM

Quote:

Originally Posted by Mickie D
dont you mean Mickie D's version ?

never mind i guess me thinking up the whole THIS_SCRIPT idea dont count and i already had the fix on my site i just forgot to update here :(

but as always thanks for mystics pointing it out to everyone else.

last but not least you wll also want to add private into the array so it does not screw up private messages

find
Code:

'editpost',
under it add
Code:

'private',
Regards
Mickie D


Hehehehe, hey thanked Mystics because it was his exact code I used :)

Thank you also Mickie D, cause I am now going to add the 'private', line to it. :)

JD :)

MickDoneDee 10-19-2004 12:02 PM

Quote:

Originally Posted by gwhooooey
I've got https://vborg.vbsupport.ru/showthread.php?t=62173 installed

...which splits up the two bits of line that you say to add the code before... so can you look at this hack and then tell me where i'd put your code. Thanks

Does this post help?


All times are GMT. The time now is 02:09 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.01378 seconds
  • Memory Usage 1,741KB
  • 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
  • (5)bbcode_code_printable
  • (4)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