Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons

Reply
 
Thread Tools
Compress Forum Templates Details »»
Compress Forum Templates
Version: 4.0, by Trigunflame Trigunflame is offline
Developer Last Online: Nov 2019 Show Printable Version Email this Page

Version: 3.5.3 Rating:
Released: 02-09-2006 Last Update: 02-11-2006 Installs: 164
Uses Plugins
Code Changes Additional Files  
No support by the author.

Compress Forum Templates
Speed up your Forums & Save Bandwidth



Description:

This hack compresses your sites Templates into the database resulting in a significantly smaller page size and faster loading pages.
The benefits of this Template Compressor as opposed to virtually any other that you have installed is that this compresses the templates into the database.

Other hacks compress the pages on every page load which takes CPU/Memory usage as well as slows down the actual output of the page.

PS. Use this in conjunction with my Other Hack (Accelerated Plugins) for speeding up your forum even more (If you use plugins especially).
https://vborg.vbsupport.ru/showthread.php?t=107315
PS. Use this in conjunction with my Other Hack (Template Cache System) for speeding up your forum by caching its templates.
https://vborg.vbsupport.ru/showthread.php?t=110144


Background:

This is a semi-port from my Vbulletin 3 Version: https://vborg.vbsupport.ru/showthread.php?t=79923


Instructions:

1. Download Zip File, Extract files..
2. Read install.txt and follow it
3. Note: Anytime you update your templates, make sure to click "Compress Templates".
4. If you have any problems with certain hacks not working, add affected templates to "Template Ignore" setting in the Admin Control Panel settings.


Common Templates That May Need To Be Added to Ignore Settings:

phpinclude_start phpinclude_end editor_jsoptions_font editor_jsoptions_size forumhome navbar forumhome_vbshout forumhome_vbshout_shout


Updates:

Version 4.2: Forgot to upload ZIP File..
Version 4.1:
Changed setting location, you now modify them in the Admin Control Panel under Template Compressor Settings; there you can specify the templates to ignore.
Flashchat, others sometimes cause problems; so by default a few vbchat templates are listed in the ignore setting.
If you have problems with any other hacks not showing, trying add the 'forumhome' template to the ignore setting and recompress your templates.

Version 4: Integrating Hellcats regex, hopefully will solve some problems.

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #122  
Old 03-15-2006, 03:09 AM
MissKalunji's Avatar
MissKalunji MissKalunji is offline
 
Join Date: Aug 2003
Location: Canada
Posts: 2,845
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

works fine! thanks
Reply With Quote
  #123  
Old 03-15-2006, 09:03 AM
Trigunflame's Avatar
Trigunflame Trigunflame is offline
 
Join Date: Aug 2002
Posts: 742
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by DementedMindz
i was wondering if you would do anything like Hellcat's Page Compression hack
https://vborg.vbsupport.ru/showt...hlight=hellcat where it shows on the footer how much is compressed? i kinda liked that so i could tell but in the end its your call just thought it would be nice to see
Hellcats does the compression every page load, which also slows down the page..

Mine precompiles the output in the database, saving you overhead; thus you get some speed improvement as while as compression.

Choose whichever you want, I care not
Reply With Quote
  #124  
Old 03-15-2006, 07:32 PM
Trigunflame's Avatar
Trigunflame Trigunflame is offline
 
Join Date: Aug 2002
Posts: 742
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Reply With Quote
  #125  
Old 03-15-2006, 11:31 PM
Tralala's Avatar
Tralala Tralala is offline
 
Join Date: Jan 2006
Posts: 1,207
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Trigunflame
Hellcats does the compression every page load, which also slows down the page..

Mine precompiles the output in the database, saving you overhead; thus you get some speed improvement as while as compression.
He wasn't asking for you to incorporate the same compression strategy, he was asking if you could have it display in the footer how much was compressed. To see how much of an affect your add-on really has. That's what Hellcat's does, and it's nice.
Reply With Quote
  #126  
Old 03-15-2006, 11:56 PM
DementedMindz DementedMindz is offline
 
Join Date: Jan 2006
Posts: 1,474
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Tralala
He wasn't asking for you to incorporate the same compression strategy, he was asking if you could have it display in the footer how much was compressed. To see how much of an affect your add-on really has. That's what Hellcat's does, and it's nice.
that is what i mean would be nice to see the stats in the footer kinda like his does to truely see what we save
Reply With Quote
  #127  
Old 03-17-2006, 12:18 PM
Bellinis's Avatar
Bellinis Bellinis is offline
 
Join Date: Aug 2005
Location: Amsterdam, the Netherland
Posts: 130
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I removed this mod because it messed up my line spacing between paragraphs. As soon as I did a preview of my post or wanted to edit my post after I've posted it, the line spacings were removed.
Reply With Quote
  #128  
Old 03-17-2006, 01:05 PM
Trigunflame's Avatar
Trigunflame Trigunflame is offline
 
Join Date: Aug 2002
Posts: 742
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Bellinis
I removed this mod because it messed up my line spacing between paragraphs. As soon as I did a preview of my post or wanted to edit my post after I've posted it, the line spacings were removed.
All you had to do was add that template to the ignore templates setting; dont blame a mod for not following directions.
Reply With Quote
  #129  
Old 03-17-2006, 01:05 PM
Trigunflame's Avatar
Trigunflame Trigunflame is offline
 
Join Date: Aug 2002
Posts: 742
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Tralala
He wasn't asking for you to incorporate the same compression strategy, he was asking if you could have it display in the footer how much was compressed. To see how much of an affect your add-on really has. That's what Hellcat's does, and it's nice.
I would have to add a template or a phrase or a datastore item that stored that little bit of information, and it wouldnt change.. it would stay the same.

Like Ive already said 1000000000000000 times; it does the compression once and saves them in your template table. You would just be looking at a static number everytime you loaded the page.
Reply With Quote
  #130  
Old 03-20-2006, 03:33 PM
mixer66 mixer66 is offline
 
Join Date: May 2003
Location: Belgium
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This plugin seems to running almost perfectly but i found 2 details and not sure if this plugin cause this details that goes wrong on by board. When you want to edit a post , you have to press 2 x the edit button, the first attempt gives a error in the browser, and first i had quick edit box inside the post (ajax ), right now it opens the advanced edit box ??? And on the PM create msg box is some extra functional ajax issues dissappered. It happen after i install the compress combo plugin's this past weekend. It's not a disaster but this where nice extra items after the 3.5.4 upgrade that i miss now. Can someone help me with this ?

Update: I did some mor investiagtion on this "Ajax Quick Edit" error. My FF error console says there is an JavaScript error:

Error: vB_Editor[vB_QuickEditor.editorid] has no properties
sourcecode: http://www.eurovan2.com/forum/client..._quick_edit.js
line: 246
Reply With Quote
  #131  
Old 03-21-2006, 07:50 PM
Trigunflame's Avatar
Trigunflame Trigunflame is offline
 
Join Date: Aug 2002
Posts: 742
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mixer66
This plugin seems to running almost perfectly but i found 2 details and not sure if this plugin cause this details that goes wrong on by board. When you want to edit a post , you have to press 2 x the edit button, the first attempt gives a error in the browser, and first i had quick edit box inside the post (ajax ), right now it opens the advanced edit box ??? And on the PM create msg box is some extra functional ajax issues dissappered. It happen after i install the compress combo plugin's this past weekend. It's not a disaster but this where nice extra items after the 3.5.4 upgrade that i miss now. Can someone help me with this ?

Update: I did some mor investiagtion on this "Ajax Quick Edit" error. My FF error console says there is an JavaScript error:

Error: vB_Editor[vB_QuickEditor.editorid] has no properties
sourcecode: http://www.eurovan2.com/forum/client..._quick_edit.js
line: 246
Find the associated template names and add them to the Ignore Setting, and recompress the templates.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:19 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.04531 seconds
  • Memory Usage 2,313KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete