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)

Yorixz 10-05-2005 01:48 PM

Thanks a lot; up to 9% is still 18gb on 200gb monthly traffic ;)

richard4339 10-06-2005 07:22 PM

I didn't like the wording at the bottom, so I modified it to:

52.24 Kb. compressed to 49.95 Kb. eliminating 2.29 Kb. of data. (4.39% compression)

I know thats not technically a correct statement, but I find it to be more readable. Also, thanks, I like this.

Note: I'm getting 4.39% compression. Must be my intensive forums.

Funchiestz 10-07-2005 07:36 PM

Quote:

Originally Posted by richard4339
I didn't like the wording at the bottom, so I modified it to:

52.24 Kb. compressed to 49.95 Kb. eliminating 2.29 Kb. of data. (4.39% compression)

I know thats not technically a correct statement, but I find it to be more readable. Also, thanks, I like this.

Note: I'm getting 4.39% compression. Must be my intensive forums.

Ehm.. dunt know when i try to active my plugin, i can not press quick reply

i use 3.5 GOLD, can somebody help me?

smokering 10-08-2005 01:50 AM

smokering clicks install and heads off to plug it in plug it in

Neal-UK 10-08-2005 07:55 AM

Quote:

Originally Posted by smokering
smokering clicks install and heads off to plug it in plug it in

appears to be working on vb 3.5 gold

vibe 10-09-2005 06:22 AM

works
thanks

michaelbenson 10-09-2005 09:01 AM

Fantastic i have added the modification in right now, and there certainly seems to be a noticable difference in the load times of especially the forumhome page.

Allan 10-09-2005 09:05 AM

work with vB 3.5 gold ?

piXelatedEmpire 10-09-2005 09:18 AM

Quote:

Originally Posted by Fenriz
I think that you also can remove
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);

and leave only
Code:

$page_byte=strlen($output);
$output=preg_replace ('/\r\n(\s*)/', "\r\n", $output);


Has this been confirmed to work? I only ask as the poster said they 'think' you can remove the listed variables...

hotrod1 10-10-2005 01:32 AM

Great hack, thanks!!!

PennylessZ28 10-10-2005 03:20 AM

I just wanted to say I've been using this and it's a great hack.

I'm seeing Output compression saving 3.2% to 15.57%

Excellent work.

:Judge: 10-10-2005 03:52 AM

Well so far so good, I am not getting 20% or even 10% but it seems a little better. Thank You

piXelatedEmpire 10-10-2005 08:32 AM

Quote:

Originally Posted by Fenriz
I think that you also can remove
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);

and leave only
Code:

$page_byte=strlen($output);
$output=preg_replace ('/\r\n(\s*)/', "\r\n", $output);


tested this plugin after removing said variables and code, and still seems to function well

Julie 10-11-2005 01:47 PM

Works for me, thanks! :)

Andreas 10-11-2005 03:25 PM

This Hack causes a Division by Zero PHP Error if a totally blank page is being output (due to missing Template or wrong action for example).
Fixed Code attached.

dutchbb 10-11-2005 04:45 PM

This looks really usefull knowing that we need to cut down on bandwidth!!
Thanks again ShiningArcanine, KirbyDE and others for working on this.

Does anyone know how (or where) to add the if conditional to show the stats on pages only to admins?

monstergamer 10-11-2005 04:51 PM

thanks kirby for the update

Emil 10-11-2005 08:33 PM

Quote:

Originally Posted by KirbyDE
This Hack causes a Division by Zero PHP Error if a totally blank page is being output (due to missing Template or wrong action for example).
Fixed Code attached.

Thanks! A little question though. I've never installed a plugin before, only products. So what do I choose in the "Hook Location
This specifies the location within the vBulletin code of the hook that will fire this plugin function."
option field?

dethfire 10-12-2005 02:36 PM

Paragraph breaks in text are not showing up
when that text is nested within [ quote ] tags.

I also noticed that when I previewed a post containing other tags (in this case, I had [ size] tags), the paragraph break/space just before the tags disappeared. It doesn't do it if you don't preview the post. So, what happens is that the text shows up okay in the preview, but the space is gone from your actual reply, so when you click on "submit," you don't get the same thing that showed up in preview.

dutchbb 10-12-2005 04:36 PM

Quote:

Originally Posted by Triple_T
Does anyone know how (or where) to add the if conditional to show the stats on pages only to admins?

anyone?

Julie 10-12-2005 05:15 PM

Quote:

Originally Posted by Triple_T
This looks really usefull knowing that we need to cut down on bandwidth!!
Thanks again ShiningArcanine, KirbyDE and others for working on this.

Does anyone know how (or where) to add the if conditional to show the stats on pages only to admins?

I couldn't find where the code bit itself was at the moment, but:

PHP Code:

<if condition="($bbuserinfo['usergroupid'] == 6)">
    <
p>Code here for compressor</p>
<else />
    <
p>Something else perhaps?</p>
</if> 

If 6 is your admin group...

Julie 10-12-2005 05:18 PM

Quote:

Originally Posted by Emil
Thanks! A little question though. I've never installed a plugin before, only products. So what do I choose in the "Hook Location
This specifies the location within the vBulletin code of the hook that will fire this plugin function."
option field?

Hey,

In your AdminCP, just find Plugin System and then Download / Upload Plugins. And just upload the files there, and it does all the work for ya! :)

Emil 10-12-2005 07:11 PM

Quote:

Originally Posted by Julieh
Hey,

In your AdminCP, just find Plugin System and then Download / Upload Plugins. And just upload the files there, and it does all the work for ya! :)

:nervous: ahh thank you!

Emil 10-12-2005 08:58 PM

It always says "saving 0.00 Kb. (0.00%)" for me. Do I do something wrong or is there just nothing to save on? lol

dutchbb 10-14-2005 12:24 PM

Quote:

Originally Posted by Julieh
I couldn't find where the code bit itself was at the moment, but:

PHP Code:

<if condition="($bbuserinfo['usergroupid'] == 6)">
    <
p>Code here for compressor</p>
<else />
    <
p>Something else perhaps?</p>
</if> 

If 6 is your admin group...

Thanks, already tried that with no luck. The code or variable isn't in the templates but in the plugin, if I add the conditional there, it has no effect :(

glorify 10-17-2005 08:54 PM

Advanced Thread Previews get all the paragraphs stripped if you edit a thread. Quick AJAX edits keep the paragraphs. Fix?

dethfire 10-17-2005 10:53 PM

Quote:

Originally Posted by glorify
Advanced Thread Previews get all the paragraphs stripped if you edit a thread. Quick AJAX edits keep the paragraphs. Fix?

Yeah I mentioned this problem earlier.

glorify 10-22-2005 12:29 AM

Anyone with a fix on this or should I uninstall?

Samira 10-25-2005 11:34 PM

Had to uninstall until the editor issue is fixed.

glorify 10-25-2005 11:48 PM

Me too. :(

FleaBag 10-27-2005 11:04 PM

I actually reported this as a 3.5 Beta bug oops heh... I have uninstalled until a fix comes along also. :)

PET 11-09-2005 07:01 AM

so it's not safe to install ?

steven s 11-09-2005 09:42 AM

You can use it but multiple paragraph returns are stripped.
The post will still be thre, just the formatting changes.
Most messages you won't notice anything.

I've disabled it because people are unable to format some messages clearly without using multiple paragraph returns. It's not a big deal but the I have had users complain.

TJFweb 11-09-2005 10:22 AM

I haven't been having any problems with paragraph stripping. Then again, everyone uses the AJAX editing function. I heard problems only occur with advanced editing, etc.

Anyway, no problems so far here (and I've used it for over 2 weeks on a very active board).

On average it saves about 3%. A tiny amount but nevertheless an optimization.

cbr929rrerion 11-09-2005 10:33 AM

sounds like it has alot of bugs.. let us know when the Final Release is ready...

steven s 11-19-2005 10:03 PM

Quote:

Originally Posted by TJFweb
On average it saves about 3%. A tiny amount but nevertheless an optimization.

Not worth the complaints I get though. I hope there is eventually an update.

TJFweb 11-20-2005 12:56 AM

Quote:

Originally Posted by 1996 328ti
Not worth the complaints I get though. I hope there is eventually an update.

What are people's main compaints about this hack? The problem with paragraph returns?

I use it on a medium sized 3.5.1 board (which is also heavily modded) and I honestly haven't found any bugs or problems with it.

steven s 11-20-2005 01:07 AM

Quote:

Originally Posted by TJFweb
What are people's main compaints about this hack? The problem with paragraph returns?

Yes. I know it's minor. One of my boards don't get a lot of traffic but when a few people complain I can't justify it.

aSeEr 11-21-2005 03:27 AM

works fine on 3.5.1 forum .. no bugs or complains :)

Unexplained.tv 11-21-2005 04:07 AM

I would only use this if/when there is a new version out for the latest Vbulletin. I used it before and it worked like it should, I would just like to see an updated version before I allow this to be running on my site again.


All times are GMT. The time now is 04:18 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
  • Page Generation 0.01479 seconds
  • Memory Usage 1,827KB
  • 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
  • (4)bbcode_code_printable
  • (2)bbcode_php_printable
  • (14)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