vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Compress Forum Templates (Speed up your Forums & Save Bandwidth) (https://vborg.vbsupport.ru/showthread.php?t=79923)

buro9 10-17-2005 08:32 AM

Quote:

Originally Posted by stan111
yeah, it works like a champ
it skips that template, now my forum going way faster
thanks a million for all your help, buro9

It could go even faster if you did two things:
  1. Move your stylesheets to files. The option for this is in the AdminCP.
  2. Much more time consuming... validate your pages with the W3C Validation service: http://validator.w3.org/check?uri=ht...elyviet.com%2F
Currently your pages are not coming back XHTML Transitional compliant, in fact on your home page there were 653 errors (probably only 20 or 30 things in actual templates). The cleaner your HTML is, the faster a browser will render it. Force the browser to have to deal with your errors, and it will slow down as it has to spend time trying to guess what you want.

vBulletin ships valid XHTML Transitional code... so it's just up to you to make sure when you hack it that things are still cool.

Examples:
Close your tags: <p> should always have an end </p>, <img> should always have a self-closing slash <img />.

Include required attributes: <script> has to have a type: <script type="text/javascript">

Comment out your JavaScript for non-capable browsers: <script type="text/javascript"><!--
function boo() {alert('boo');}
// --></script>

Lots of TR tags are missing.

Etc, etc.

If your HTML is clean, it will render much faster as the browsers job is much easier.

stan111 10-17-2005 12:50 PM

i didn't know that i got that many errors on my page. i keep wondering why my homepage load so damn slow
thanks a lot for showing me all of those stuffs, buro9
that will be my next project
:up: buro9

Wisch 10-20-2005 12:45 AM

Awesome, optimized my forums, no errors, very smooth and efficient as always but with a noticable loading speed increase.
Thanks / *INSTALLED*

kzap 11-13-2005 01:44 AM

can anyone convert this into a xml plugin for 3.5?

Anyway just to add to the others who posted instructions to install on vb3.5

1.) https://vborg.vbsupport.ru/showpost....&postcount=165

2.) https://vborg.vbsupport.ru/showpost....&postcount=167

3.) add the code above
Code:

// #############################################################################
// form to edit a style
if ($_REQUEST['do'] == 'editstyle')

4.) Replace $DB_site->fetch_array with $db->fetch_array

That should do it, works like a charm :)

mutus123 11-13-2005 12:06 PM

Quote:

Originally Posted by kzap
can anyone convert this into a xml plugin for 3.5?

I have it installed on my 3.5.1 as a stand-alone product (no file edits).

I offered to either release it or give it to the original author to release, but got no response.

buro9 11-14-2005 07:38 AM

Quote:

Originally Posted by mutus123
I offered to either release it or give it to the original author to release, but got no response.

I have him in trillian, I'll ask for you :)

noj75 12-14-2005 10:20 AM

Hi all,

I have 3.5.2 but the area thats requires this edit:
PHP Code:

construct_nav_option($vbphrase['find_updated_templates'], 'template.php?do=findupdates''<br />'); 

actually reads like this in my admincp/index.php
PHP Code:

construct_nav_option($navoption['text'], $navoption['link']); 

Any ideas where i have to place this addition of code?
PHP Code:

  construct_nav_option("Compress Templates"'template.php?do=compressall''<br />'); 
construct_nav_option("Uncompress Templates"'template.php?do=compressall&revert=1''<br />'); 

Best regards

T3MEDIA 02-04-2006 01:25 PM

wow this really really works. Nice. Real nice.

Trigunflame 02-04-2006 02:12 PM

Quote:

Originally Posted by mutus123
I have it installed on my 3.5.1 as a stand-alone product (no file edits).

I offered to either release it or give it to the original author to release, but got no response.

Im finally back from my hiatus and play to fix a lot of the bugs and release some stuff again.

Ill try to wokr on whatever I can today and tomorrow; im working on the backup system right now.

Trigunflame 02-04-2006 02:30 PM

Quote:

Originally Posted by T3MEDIA
wow this really really works. Nice. Real nice.

You just now tried it ......... lol :ninja: think i made this many months ago


All times are GMT. The time now is 04:25 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.01228 seconds
  • Memory Usage 1,749KB
  • 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
  • (3)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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