![]() |
Yes it did, thank you
|
I'm having a problem when people try to "preview" a messages.. it takes out the lines between the paragraphs .. on either a new post or edit.
|
Use this: ;)
https://vborg.vbsupport.ru/showpost....2&postcount=31 Just have a look in my Sourcecode http://halloo.de/forum.php |
Thx Mickie D and Mystics for the additions, do you mind if I move them back into the first post?
I didn't realise this was nominated for HoTM and I suppose it's best to tidy up my first post ;) |
installed and my forum works ( i guess) much faster great hack
https://vborg.vbsupport.ru/showpost....2&postcount=31 |
Quote:
Code:
$pageendtime = microtime(); |
This hack is sooo sweet. It changed my forumhome output from 46.100 bytes to 38.770 bytes which means from 100% to 84% which is a gain of 16% in decreased size. Thanks you!
|
So after all the discussion in this thread, does this hack screw up when you edit a post?
What about when you are applying a hack and it has you look for certain code? If you do a search for the code from what somebody gives you to search for, if your spaces aren't right, won't the search turn up zero results because you've removed the spacing? |
is there a way so formatting where [html] tag doesn't get messed up ?
maybe an if condition ? |
If you run a journal system, you may also want to add journal in to the $thisscriptis array.. :)
|
when i try to put 'journal' in, it game an error
|
Make sure that the line above has a commar after it..
It should look something like this: Code:
$thisscriptis = array( |
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>? |
isn't there a way to just exclude the html tag from the white space stripper ?
|
Quote:
Quote:
|
Works ok for me, I installed it.
Definite speed improvement. |
Quote:
|
Quote:
code and php tags are unaffected but html tag goes haywire ^^ sorry apparently this works with it great PHP Code:
|
@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) |
Quote:
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. |
So if we use the lite version regular code that is edited during adding a new hack won't be affected and look different?
Is there a big difference between the lite and extreme versions as far as page loading speed is concerned? Say, if I was interested in the fastest speed, maybe install all the hacks I ever wanted installed on my board and then as the very last hack run the extreme version of this that "compresses" all the code together, so the code looked like sheet, but at least they loaded fast? |
No difference to any hacks... all hacks will run prior to this (except microstats), and it is the final HTML for the whole page that has whitespace stripped.
I couldn't see a difference between the old lite and extreme versions on page rendering... I suspect it's just too small to be noticeable. The only difference between those two versions is how much whitespace is left in the page... you are fine to use the lite one without anything messing up, but some of us like being a little too anal and stripping as much as we safely can even when the difference is arguable... "if it doesn't cost anything, then do it" is my philosophy. Yup, that last line describes what it does. But I've only this evening updated the hack (see the first post)... so there isn't a seperation between lite and extreme. It runs the and the extreme stuff where it can, and the lite stuff everywhere else. |
I've installed this and it seems to work well. Good idea.
|
^ ^ ^ The ultimate test ;)
|
I had this modification enhanced. Because I work on calendar :rolleyes:
Code:
// ###################### Page Output Compression ####################### |
Works for me!
I turned gzip to 1, applied this hack, and my forums are loading so fast I cant believe it. |
*installed* Simple installation and great results.
I already had VB3 MicroStats installed so I added the code BEFORE: $pageendtime = microtime(); Results: Code:
Page generated in 0.13810205 with hack 0.32 : 0.24 : 0.19 index.php I have a broadband connection and the increased download speed is only marginally apparent. According to Speedar my connection speed is approx. 104.2 kilobytes/sec. I also did a gzip test which produced the following result for my homepage: The webpage is COMPRESSED / GZIPPED! >> Savings: 80% Filesize: 55.6KB [11.2KB] html / text only |
Sorry, I had to uninstall this because I need to use Code tags occasionally to display tables properly and this hack causes tables to display incorrectly. Pity a solution can't be found for this otherwise it is a great hack.
Is there a version that doesn't alter the spaces within Code, PHP and Pre tags? |
Quote:
It could theorhetically be done, but the additional overhead in doing so would hurt you in performance. I'd need to regexp for <pre> and </pre>, chop those out, perform the strip, and put those backin... string concats and chops of that size is far more intensive than simply the current regexp for the strip. Would people really want a solution that was heavier on the processing? |
Hi buro9, I can live without the pre tags but I do need to use the code tags to display tables properly. Is that possible? Or does the code tags present the same problems as the pre tags?
|
Quote:
Doable... but then it's more intensive and I personally wouldn't want have added something intensive to every page. |
yo,yo. Nice idea, but why dont improve the code itself. If i watch the code of templates there is about 30% to save i think. Nobody needs things like
cellpadding="0" if cellpadding=0 do the same; for a lot of other parts it goes the same ... |
Quote:
Example, <img src=image name.jpg alt=an image on my webpage border=0> << very bad... |
Yup, because for it to be XHTML valid, all attributes MUST be quoted regardless of datatype of value (i.e. even if it is a number, or a string without spaces, it still needs quoting).
And of course, feel free to modify all of your code, and then you will see why vBulletin left some pieces of styling and spacing within HTML and not CSS... compatibility for CSS is still shakey for those not using the very latest browsers (still shakey for some that are using the latest browsers). |
Am I missing something, as you've mentioned both lite and extreme versions? I only see one at the beginning of the thread, is this the lite version? I've probably missed something and looked like a fool, lol :p
|
Anybody??? Am I doomed to suffer from slow loading times and bloated bandwidth usage forever. Noooooooo
|
Quote:
|
what exactly does that do though in comparison to the other one?
|
Which other one ?
That is basically the final version that people came up with - it uses the more agressive stripping except for the listed scripts, where it uses the 'lite' version. |
Kick a$$!!!!!!
great hack =) |
All times are GMT. The time now is 02:50 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:
|