![]() |
Quote:
|
donno if its cos im on 3.5.2
but i get: XML Error: unknown at Line 0 |
Quote:
Quote:
Even if the mod is bugged, IMHO it's still worth running on bigger forums if bandwidth is a concern. |
my variation of the script doesnt have the paragraph or javascript bugs, just dont uncomment the code i commented out as breaking stuff
|
works great for me
cheers [Output: 42.78 Kb. compressed to 39.45 Kb. by saving 3.33 Kb. (7.77%)] |
Quote:
so that is the best working code at the moment? still any known bugs then? |
I'm running that code, only the advanced editor bug. (It strips line breaks if you edit a post in advanced mode). Other than that, no problems whatsoever.
Riuji, unless you see a difference between my code and yours (I don't). Code:
//Logician Hack: |
Quote:
i dont have the advanced mode issue you speak of does it go away if you comment out the code for the file size savings? |
Nope, it still does it. :(
|
what version of vbb are you running and try commenting out the replacment lines and figure out just which one is breaking the advanced editor
|
ok, well here is your solution to all the bugs. One problem is its in english and not php...
You need to parse out multiple white spaces + newlines in all of the code, you also need to remove html comments. HOWEVER you must ignore anything between <pre> <textarea> and <script> tags. Ok well theres the brief... i'll see what i can do in a bit. (I think a good starting place would be to see how Vb3.5 handles bb tags especially the [nocode] tag or whatever it is that prevents bb code parsing between it.) edit: Well i've been messing arround for a bit and havn't got anywhere... The only 'hacked' solution i could come up with is to match the text area tags to a variable do the white space removal and put the text areas back in again. |
when i get bored ill try my hand at making it conditional... but with my setup it appears immune to the issue unless i use the commented out line of code instead of what i actualy had enabled
|
this problem is really bugging me now... i haven't been able to come up with a singal working regex expression...
|
Leaving it installed but disabling it for now. The linebreaks in advanced mode are just impossible to work around.
|
Can this be modded to only strip commented out code?
|
yes. comment out the fist replacment command
|
How could i make that the text...
[Output: 37.45 Kb. compressed to 36.00 Kb. by saving 1.45 Kb. (3.87%)] be in the same color that the background? I dont find the template o the code in the footer for this hack. Thank u. |
Quote:
Your best bet is to try editing the plugin itself. |
Quote:
|
just open the xml and find this line
Code:
$output = str_replace('</body>', '<center><span class="smallfont">[Output: ' . $page_kilobyte . ' Kb. compressed to <b>' . $pagenew_kilobyte . '</b> Kb. by saving <b>' . $pagesaved_kilobyte . '</b> Kb. (' . $pagesaved_perc . '%)]</span></center></body>', $output); |
So far so good. Even the paragraph issue seems to not be a problem.
*clicks install* Edit: I should have mentioned that I am running 3.5.3. |
Nice hack, works fine on 3.5.3 :D
|
I would like to hear some feedback on people running this in vb 3.5.3 and if they had any problems
|
I'm running it on my site, and I am having no problems with it :). It's working flawlessly for me.
|
I am running it on 3.5.3...no problems
|
I am testing it on 3.5.3 I will write again
|
anyway to put the output in a nice place, some of us use custom skins and the output looks horrible outside the skin gfx and ruins the look of the board
any suggestions appreciated |
the issue is enable to calculate the space savings it needs to be completely done processing the page... just disable it.. all it does is use up more bandwith lol
seems that i am correct in earlier thinking that the issues are gone with 3.5.3? |
we're on 3.5.3 and haven't noticed any problems.
|
I'm on 3.5.3 and it strips line breaks if I advanced-edit a post. The only way I get around it is by commenting out:
Code:
//$output=preg_replace ('/\r\n(\s*)/', "\r\n", $output); |
Quote:
Code:
//Logician Hack: Code:
<!-- header Gallery Links--> Code:
<!-- What the @#@$ did I screw up this time? --> Code:
[Output: 0.00 Kb. compressed to 82.54 Kb. by saving -82.54 Kb. (0.00%)] |
put a space before the --> there was a issue with it taking out code it wasnt supposed to.. i introduced the space before the -->
|
[high]* Guest210212002 scratches his head
[/high] There's a space in the original code snippet I posted, but I put another one in anyhow. ;) Code:
//Logician Hack: (Thank you very much for the help btw, ryuji, I appreciate you takin' the time to help me sort this out. :) ) |
Quote:
Code:
.compressor http://www.sevenstring.org/chris/comptext.jpg On a nother note, I'd love it if someone could find a way to make this conditional work. I've tried it in a few places and haven't found something to make it happen. Code:
$output = str_replace('</body>', '<if condition="in_array($bbuserinfo['usergroupid'], array(6))"><center><span class="compressor">[O: ' . $page_kilobyte . ' Kb C:<b>' . $pagenew_kilobyte . '</b> Kb. S: <b>' . $pagesaved_kilobyte . '</b> Kb. (' . $pagesaved_perc . '%)]</span></center></if></body>', $output); |
Running it on 3.5.3 and getting the paragraph break problem on Advanced Edit
|
Quote:
|
with 3.5.2
and element skil. it messes up the DHTML thing.. which is a pain really.. any way to sort this? |
Wow, I just installed it and it seems to be working fine.
Is there a way to remove all <!-- comments --> in the code ? This would save a lot too. |
mox- read the thread ... :D
All the last posts are about it ;) My problem is that i got some <!-- bloa bla blubb --> code which is not stripped at all ... any way sorting it out beside making it one line with <!-- xxx --> in code?!? |
where did you guys upload it tooo
|
All times are GMT. The time now is 03:35 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|