![]() |
Quote:
Code:
<!--This is my comment--> Code:
<!-- This is my comment --> |
thats all i had to do.. and it solved issues with the scripts
|
I played around with this a bit :)
And after talking to my co-admin (who has quite some knownledge of regular expressions) he told me to exclude <script> and other tag blocks is not possible with one RegEx, it would need additional code. Well, so I started making some code :) This I what I currently have, it gave me a "compression" ratio vom ~10% to ~15% in my tests, while leaving user input, [code] posts and JS fully intact (so far ;)) I added some comments, so you can see what is done where :) PHP Code:
|
That fixed the advanced mode bug, Hellcat, but hosed tons of other stuff on my forums. For one, the edit/quote buttons at the bottom right of posts were almost overlapped, and the breadcrumbs had no spacing at all.
A step in the right direction though, to be sure. Screenshot attached of what I'm experiencing. I'd LOVE to get this sorted out - your code, albeit buggy on my particular theme, quadrupled my compression savings. |
For reference, a screeny of my forums using my existing code, which only strips comments.
|
Hmm.... I think I know what that might cause....
If that's it it would reduce the ratio, but increase compatibility.... [high]* Hellcat starts tweaking :) [/high] [EDIT] OK, try this: In my above posted code, find theese two lines: Code:
$output = str_replace( "\n" , "" , $output ); Code:
$output = str_replace( "\n" , " " , $output ); At least I could confirm this in my last tests.... [high]* Hellcat waits for feedback now :)[/high] |
does this work with vB Drupal?
|
Quote:
There's only one way to find out ;) But it should, yes.... |
Quote:
is it supposed to take all the lines away from the source? |
and the result is: Nope it doesn't work with vb drupal...
works fine for my forums though so installed... /me clicks install |
hellcat should make a new one since the original writer poof'd long ago, i will try it on my boards later on durring the week
|
Quote:
Except in JS and some other blocks. Quote:
What are the effects? Quote:
Well, besides the % calculation for the footer stats, but I'm going to change this as well in a way that you can place that stats display wherever you like (or hide it). [EDIT] How about something like this: (this is a real shot, and actually works already, no fake ;)) http://files.area-42.net/060124/pgcmprcpshot.gif The stats makeup itself is now stored in a template and no longer hard-coded - so you can not only place the thing where ever you like you can also easiely customize it :cool: |
Just to keep informed....
|
Quote:
Thanks! |
It doesn't do anything, thats the problem, it doesn't seem to affect it...
|
Quote:
So far, that seems to be 100% working on 3.5.3. Thank you VERY much for the effort Hellcat, you've made this mod usable again for tons of us. :D [high]* Guest210212002 cheers [/high] Argh: It breaks the actual player portion of this hack, however, but that's the only thing I can find. This is the code that goes away with the latest: Code:
|
so do I just replace the code in the XML with Hellcats code for this?
|
great work hellcat, you've fixed the bug and doubled my optimization
|
Quote:
You'll then just to have to import that XML and you're set :) |
Quote:
|
How would I go about changing where this appears? (unlike the microstats one, I actually looked this time >.>
I'd like it under the microstats (which are now under the copyright), but I don't see how to do it. |
Quote:
|
Quote:
|
Quote:
If you can make it not break that media code snippet, I will fedex you a puppy!* *this is a lie |
@all:
My version: https://vborg.vbsupport.ru/showthread.php?t=106333 :cool: For the "how to customize": You have the option to use a special HTML tag (<cmpstat />) that will show the stats on the place where you inserted this tag when that option is enabled. You can further customize the look of it by editing the template. (more details in the readme :)) @gamebgs: Hmm, I'll take a look a that Drupal issue. Drupal is freely available from here, so I can install it for testing, right? @Chris-777: I will look at this as well :) |
I installed this hack, and my site is small, but I would think that doing a preg_replace on every page load would be a waste of CPU if your site was heavily loaded.
I think a more important hack or plugin would be to do the following:
This way you get the CPU hit only on posting, the size of the posts in the database goes down a little bit, which further reduces load on the DB server. |
Installed :up:
|
is it workign fine? does it really speed up the pages?
|
oops wrong thread
|
I know that this hack decreases the bandwidth load, but does it increase or decrease the processor load?
|
Quote:
Yes it does :) |
Quote:
|
I'm more worried about my processor load than bandwidth... I guess this hack isnt for me ;)
|
Quote:
how can it increase the loads? :surprised: if the pagess are reduces it should save up the load thats why it makes the page faster.... im using hellcats one and havent see no loads its even lower then it has ever been +accelerator etc |
helo shining,
is there any upgrade gonna release for vb3.6.0 ?? |
this hack is good, but causes alot of server load when the forum is busy. i had to remove it because of that.
|
Quote:
The pages are smaller in code, which means less for the surfer to download which means it appears quicker to them. The only real benefit to this hack is saved bandwidth because I doubt the time saved in a smaller page download outweighs the time it takes to make it smaller. |
I'd like to see this mod rebuilt for 3.6 but instead of it compressing the template each time it loads how about this mod creates a duplicate of your style that is fully compressed, then you just use that style. if you have to change templates use your old style then recompress. Is this possible? and for 3.6.1 plz! :)
|
sross :up:
|
So has anyone tested this under vB3.6?
|
All times are GMT. The time now is 08:26 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|