vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Realtime Template Compressor: Reduces page sizes, loads pages faster, saves bandwidth (https://vborg.vbsupport.ru/showthread.php?t=83248)

kau 12-19-2005 12:29 AM

After installing is that it?

Is there a way to see stats on anything or how do I know it's working? If it's uploaded it's working? Should I be able to see it's installed anywhere?

MissKalunji 12-19-2005 01:48 AM

Quote:

Originally Posted by kau
After installing is that it?

Is there a way to see stats on anything or how do I know it's working? If it's uploaded it's working? Should I be able to see it's installed anywhere?


go into your msg board at the bottom you will see at the bottom

Zia 12-19-2005 04:27 AM

yeap..this is really too kool hacks..

im still looking for something more to save/speedup vb?

Thnks

Yorixz 12-23-2005 05:58 AM

I'm still hoping someone will come up with a way to remove that stats, it's messing up my skin :(

MissKalunji 12-23-2005 06:03 AM

Quote:

Originally Posted by Yorixz
I'm still hoping someone will come up with a way to remove that stats, it's messing up my skin :(

https://vborg.vbsupport.ru/showpost....&postcount=149 ?

wtrk 01-01-2006 09:50 PM

this works pretty good. ive used it for a month, it saved 8gb of bandwidth over the previous months usage. nov. was 56gb, dec. was 48gb. of bandwidth.

Danny Diamond 01-05-2006 01:41 AM

I noticed a huge difference. Great plug.

Submerge 01-05-2006 03:43 AM

*Installed

Works great on 3.5.3!

Gripemaster 01-05-2006 03:50 AM

*Clicks install*

My pages are zinging now...even on DSL they are noticeably faster. I'll have a friend do a dialup test tomorrow and get his report. Thanks!!!

mbader71 01-05-2006 05:20 AM

thanks alot,

this is a great hack

firstrebel 01-06-2006 01:19 PM

How do I get the displayed text to use white. I presume I need to add a class to this:
Quote:

<span class="smallfont">[Output: ' . $page_kilobyte . ' Kb. compressed to <b>' . $pagenew_kilobyte . '</b> Kb. by saving <b>' . $pagesaved_kilobyte . '</b> Kb. (' . $pagesaved_perc . '%)]</span>
but what class would it be.

Bob

Julie 01-06-2006 10:21 PM

Quote:

Originally Posted by firstrebel
How do I get the displayed text to use white. I presume I need to add a class to this: but what class would it be.

Bob

You can add a colour to the smallfont class. Just go into your Style Manager, choose skin, Main CSS, and find Small Font. Just remember that any other thing using the smallfont class, will also have the same colour you specify.

firstrebel 01-07-2006 10:57 AM

Might be safer to make a new class just for this. Thanks

Bob

Gunshot 01-09-2006 05:47 AM

works well


but


after installing the left_column hack the compression stats seem to show up at the bottom of the column

and also on the "thank you for logging on" screen


how do we get rid of this or the stats altogether?

Gunshot 01-09-2006 06:00 AM

okay

I used post #149 to get rid of the stats

and post #30 to boost from 5% to 15% compression

Submerge 01-09-2006 06:20 PM

How do I get the compressor to show the line breaks when I go into Advanced Edit? It takes out the line breaks from posts in advanced edit.

rlamego 01-09-2006 06:47 PM

Submerge, that's the paragraph bug everyone is complaining about.

firstrebel 01-09-2006 07:16 PM

Quote:

Originally Posted by Gunshot
okay

I used post #149 to get rid of the stats

and post #30 to boost from 5% to 15% compression

Tried this and yes it does increase compression, but it broke my headers.

Bob

tantawi 01-09-2006 08:29 PM

Great hack, but any fix to the paragraph bug? :(

steven s 01-09-2006 10:18 PM

Quote:

Originally Posted by tantawi
Great hack, but any fix to the paragraph bug? :(

Nope. I can't use it until it is fixed. :(

jw00dy 01-09-2006 10:33 PM

Excellent mod! My dialup users will love you forever!

Julie 01-09-2006 10:47 PM

I'd like to re-install this as well... It's just the space-bug that's killing it for me. Many of my users like to add extra spacing in titles, etc, and this kills them :S

Daracon 01-11-2006 08:59 AM

Quote:

Originally Posted by 1996 328ti
Nope. I can't use it until it is fixed. :(

I'm waiting for the fix too.

ryuji 01-11-2006 10:00 AM

im using the new code, but when i used the code from the download link it didnt break the advanced editor, it didnt do more tne 3-5% tho either that or a random code edit i did earlier fixed it if this is true ill figure out what i did if you ppl want

tantawi 01-11-2006 10:04 AM

Quote:

Originally Posted by ryuji
im using the new code, but when i used the code from the download link it didnt break the advanced editor, it didnt do more tne 3-5% tho either that or a random code edit i did earlier fixed it if this is true ill figure out what i did if you ppl want

Please :) Thanks.

DruidToolz 01-11-2006 03:03 PM

Ok i am kinda having a small problem... Before i installed this plugin i didn't have this [Output: 23.91 Kb. compressed to 22.99 Kb. by saving 0.92 Kb. (3.87%)] .. Showing at the bottom of the forum.. Can someone please tell me how to edit this xml file to get rid of that info at the bottom.. Thanx

tantawi 01-11-2006 03:24 PM

Quote:

Originally Posted by DruidToolz
Ok i am kinda having a small problem... Before i installed this plugin i didn't have this [Output: 23.91 Kb. compressed to 22.99 Kb. by saving 0.92 Kb. (3.87%)] .. Showing at the bottom of the forum.. Can someone please tell me how to edit this xml file to get rid of that info at the bottom.. Thanx

Remove this:

PHP Code:

$pagenew_byte=strlen($output);
$page_kilobyte=number_format(($page_byte/1024),2);
$pagenew_kilobyte=number_format(($pagenew_byte/1024),2);
$pagesaved_byte=$page_byte-$pagenew_byte;
$pagesaved_kilobyte=number_format((($pagesaved_byte)/1024),2);
$pagesaved_perc=number_format(((100*$pagesaved_byte)/$page_byte),2);

$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); 


snakes1100 01-11-2006 03:56 PM

[Output: 70.26 Kb. compressed to 65.76 Kb. by saving 4.50 Kb. (6.41%)] - forum home

[Output: 35.66 Kb. compressed to 33.45 Kb. by saving 2.21 Kb. (6.20%)] - forum display, one of the bigger categories with a lot of forums.

[Output: 69.04 Kb. compressed to 63.66 Kb. by saving 5.38 Kb. (7.80%)] - Individual forum

This is running on 3.5.3, all edit functions with wysig work correctly.

firstrebel 01-11-2006 04:03 PM

Quote:

Originally Posted by snakes1100
[Output: 70.26 Kb. compressed to 65.76 Kb. by saving 4.50 Kb. (6.41%)] - forum home

[Output: 35.66 Kb. compressed to 33.45 Kb. by saving 2.21 Kb. (6.20%)] - forum display, one of the bigger categories with a lot of forums.

[Output: 69.04 Kb. compressed to 63.66 Kb. by saving 5.38 Kb. (7.80%)] - Individual forum

This is running on 3.5.3, all edit functions with wysig work correctly.

Is this with the standard plugin or have you modded it?

Bob

snakes1100 01-11-2006 04:12 PM

Latest download, no modifications.

Confirmed to work in 3.5.3

snakes1100 01-11-2006 04:19 PM

Two screen shots to confirm no issue with advanced editor or spacing issues with post titles.

snakes1100 01-11-2006 04:26 PM

Quote:

Originally Posted by Julie
I'd like to re-install this as well... It's just the space-bug that's killing it for me. Many of my users like to add extra spacing in titles, etc, and this kills them :S


I have tested this on 3.5.3, before the plugin, in titles adding 10 extra spaces in between two words on a new post title, the extra spacing was stripped away by default.

This addon is not the cause as far as i can tell.

Added Note:
Want to thank ShiningArcanine & Logican for their work, great mod and good savings for the site.

ryuji 01-11-2006 09:17 PM

these are the results of my experiments with the code... this one doesnt break anything and ill see if i can figure out a way to make it not bust javascript

PHP Code:

//Logician Hack:
//$page_byte=strlen($output);

//this broke scripts on my setup, if you want to test, click on 'more' smileys in advanced editor or try to bring up the user popup when you click on there name on a thread
                //$output=preg_replace ('/(\s*)\r\n(\s*)/', "", $output);
//this broke scripts on my setup, if you want to test, click on 'more' smileys in advanced editor or try to bring up the user popup when you click on there name on a thread


$output=preg_replace ('/\r\n(\s*)/'"\r\n"$output);
$output=preg_replace ('/<!-- .*? -->/',"",$output);


//$pagenew_byte=strlen($output);
//$page_kilobyte=number_format(($page_byte/1024),2);
//$pagenew_kilobyte=number_format(($pagenew_byte/1024),2);
//$pagesaved_byte=$page_byte-$pagenew_byte;
//$pagesaved_kilobyte=number_format((($pagesaved_byte)/1024),2);
//$pagesaved_perc=number_format(((100*$pagesaved_byte)/$page_byte),2);

//$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);
//Logician Hack: 

remove the comments to re-enable the compression efficiency dialog

rootnik 01-12-2006 06:05 PM

Works good, but kills javascript roll overs in my headers. :disappointed:

exegete 01-13-2006 06:58 AM

The solution to the paragraph bug is to alter the regular expression in such a way that newline characters appearing between textarea tags are left untouched.

I leave this as an exercise for the reader. :)

tantawi 01-14-2006 08:34 PM

Quote:

Originally Posted by exegete
The solution to the paragraph bug is to alter the regular expression in such a way that newline characters appearing between textarea tags are left untouched.

I leave this as an exercise for the reader. :)

Any reader in there? :D

interceptor 01-15-2006 06:44 AM

Works great on 3.5.3 Install

Ramsesx 01-15-2006 09:56 AM

Quote:

Originally Posted by rootnik
Works good, but kills javascript roll overs in my headers. :disappointed:

Installed with 3.5.0 and my button rollovers are working fine.
[Output: 177.75 Kb. compressed to 148.49 Kb. by saving 29.27 Kb. (16.46%)] Forumhome
[Output: 121.07 Kb. compressed to 115.58 Kb. by saving 5.49 Kb. (4.53%)] CMPS
[Output: 260.35 Kb. compressed to 244.70 Kb. by saving 15.64 Kb. (6.01%)] Forum Thread
[Output: 139.21 Kb. compressed to 134.20 Kb. by saving 5.01 Kb. (3.60%)] VB Gallery Home
[Output: 205.49 Kb. compressed to 203.91 Kb. by saving 1.59 Kb. (0.77%)] Links Directory

Club3G 01-15-2006 03:00 PM

As in the original XML: CMPS: [Output: 67.37 Kb. compressed to 66.30 Kb. by saving 1.07 Kb. (1.59%)]
Index: [Output: 81.60 Kb. compressed to 79.29 Kb. by saving 2.31 Kb. (2.83%)]
Forumdisplay: [Output: 104.74 Kb. compressed to 98.30 Kb. by saving 6.44 Kb. (6.15%)]

And now with this added:
Code:

$output=preg_replace ('/<!-- .*? -->/',"",$output);
CMPS: [Output: 67.15 Kb. CMP 64.81 Kb. Net 2.35 Kb. (3.50%)]
Index: [Output: 81.83 Kb. CMP 76.14 Kb. Net 5.69 Kb. (6.95%)]
Forumdisplay: [Output: 99.72 Kb. CMP 90.69 Kb. Net 9.03 Kb. (9.05%)]

Stripping the comments works really, really well. No bugs at all in 3.5.3 with plenty of mods. One thing I wouldn't mind seeing added is something that keeps a running tally of the total compressed kB savings. It'd be great to know at the end of the month just how much this is saving me. Also being able to only display this to admins would be ultimate. I'd strip the output code altogther, but I'm way too much of a dork to go without it. :D

Quick math for http://www.sevenstring.org

Average hits per day over the last week: 220880
Avg hits * 9.05k savings: 1998964
Average bandwith savings over 30 days: 1.90636 GB

Solid mod. Thanks much.

[high]* Club3G clicks install[/high]

Club3G 01-15-2006 10:54 PM

Bah, spoke too soon. Also have the paragraph bug. ;(


All times are GMT. The time now is 04:40 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.01857 seconds
  • Memory Usage 1,838KB
  • 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
  • (2)bbcode_php_printable
  • (13)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
  • (40)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