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)

stan111 09-14-2005 06:59 AM

damn, this works like a champ
my board is heavily modified and i dont have any experience in coding or anything
i mod it and it works at the first time. my board load so fast now

thanks a million for writting this code

edit: i just check my board again, and somehow, my quickreply text box disappeared :nervous:
anyone know wat happen ?

stan111 09-14-2005 07:13 AM

above it, i did that and it works

HTML Code:

//#############################################################################
// edit form for an existing template
if ($_REQUEST['do'] == 'edit')


Andreas 09-14-2005 07:31 AM

Any chance for a 3.5 Version?

stan111 09-15-2005 06:20 AM

Quote:

Originally Posted by stan111

edit: i just check my board again, and somehow, my quickreply text box disappeared :nervous:
anyone know wat happen ?

anyone ?

buro9 09-15-2005 07:10 AM

Quote:

Originally Posted by KirbyDE
Any chance for a 3.5 Version?

It's really simple to migrate.

Just copy the block of code into the foot of admincp/template.php

And then add this XML to includes/xml/cpnav_vbulletin.xml
Code:

                <navoption comment="HACK : COMPRESS TEMPLATES" displayorder="51">
                        <phrase>compressall</phrase>
                        <link>template.php?do=compressall</link>
                </navoption>

    <navoption link="template.php?do=compressall&amp;revert=1" comment="HACK : COMPRESS TEMPLATES" displayorder="52">
                        <phrase>uncompressall</phrase>
                </navoption>

That needs to go ABOVE this piece:
Code:

        </navgroup>

        <navgroup phrase="languages_and_phrases" permissions="canadminlanguages" displayorder="30">

Which places it in the styles_and_templates group.

The hack continues to work perfectly in vb3.5 :)

buro9 09-15-2005 07:11 AM

Oh, and I added the 'comment' attribute as I like being able to search the whole code base and see instantly what modifications I need to migrate at update time by simply looking for the word HACK. :)

hidjra 10-05-2005 04:42 PM

Quote:

Originally Posted by buro9
It's really simple to migrate.

Just copy the block of code into the foot of admincp/template.php

And then add this XML to includes/xml/cpnav_vbulletin.xml
Code:

                <navoption comment="HACK : COMPRESS TEMPLATES" displayorder="51">
                        <phrase>compressall</phrase>
                        <link>template.php?do=compressall</link>
                </navoption>

    <navoption link="template.php?do=compressall&amp;revert=1" comment="HACK : COMPRESS TEMPLATES" displayorder="52">
                        <phrase>uncompressall</phrase>
                </navoption>

That needs to go ABOVE this piece:
Code:

        </navgroup>

        <navgroup phrase="languages_and_phrases" permissions="canadminlanguages" displayorder="30">

Which places it in the styles_and_templates group.

The hack continues to work perfectly in vb3.5 :)

This won't work. You'll need to change the queries to:
if it's a select/read querie:
from '$DB_site->query' to '$db->query_read'

if it's a update/write querie:
from '$DB_site->query' to '$db->query_write'

You also need to add the phrases 'compressall' and 'uncompressall'. otherwise they won't show up in de navigation-menu of your adminCP.

You can also remove the badtemplates 'phpinclude_start' and 'phpinclude_end'. They don't exist in vb3.5 gold


Hidjra

stan111 10-13-2005 10:05 AM

this mod rocks, i luv it so much, it speeds up the forum like crazy
but does anyone here have the same problem like me after you compress the template, your text message box disappears. Here is a pic of my quick reply after the template compression
https://vborg.vbsupport.ru/

buro9 10-13-2005 10:15 AM

Quote:

Originally Posted by stan111
this mod rocks, i luv it so much, it speeds up the forum like crazy
but does anyone here have the same problem like me after you compress the template, your text message box disappears. Here is a pic of my quick reply after the template compression
http://img411.imageshack.us/img411/7736/untitled7lo.jpg

Nope... don't have that at all.

Have you hacked that template though? Put anything in there that might make it less than rock solid (stacks of JavaScript and weird HTML for example?).

You can just figure out what the template name for that is and add it to the array of templates to skip. However it shouldn't be an issue, figure out where you've broken it and fix that would be the better solution :)

buro9 10-13-2005 10:16 AM

Oh... and an example of the before and after HTML would be appreciated... at least we'd be able to understand what went wrong then.


All times are GMT. The time now is 11:46 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.01167 seconds
  • Memory Usage 1,750KB
  • 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
  • (1)bbcode_html_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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