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)

mutus123 10-15-2005 04:18 PM

Piecing together instructions of both buro9 and hidjra, I was able to install this for 3.5.

I hope it's not wrong of me to do this but I went ahead and updated the text file instructions for 3.5.

This is a great hack, again many thanks.

Edit: Text file removed, as I discovered what I did is frowned upon here.

buro9 10-15-2005 06:28 PM

Quote:

Originally Posted by mutus123
Piecing together instructions of both buro9 and hidjra, I was able to install this for 3.5.

I hope it's not wrong of me to do this but I went ahead and updated the text file instructions for 3.5, as the current installation file is obsolete. I'm posting it here to maybe help some others.

This is a great hack, again many thanks.

To be fair, the 3.5 install is virtually identical to the 3.0 install ;)

The only real difference is adding the elements to the admincp.

I'm sure most of us simply upgraded manually ;) Though I'm also sure that your file will be very appreciated by those who would prefer a fuller set of instructions :)

mutus123 10-15-2005 08:14 PM

Quote:

Originally Posted by buro9
To be fair, the 3.5 install is virtually identical to the 3.0 install ;)

The only real difference is adding the elements to the admincp.

I'm sure most of us simply upgraded manually ;) Though I'm also sure that your file will be very appreciated by those who would prefer a fuller set of instructions :)

Understood. I realize this particular hack is for 3.0.x, therefor the install file is perfectly fine. I meant no offense.

But it won't work for 3.5, so I just thought it may help a few people to outline the process of making this work in 3.5. It's not a big deal, but like you said, many prefer a full set of instructions, and are not always confident in manipulating code, nor able to solve a problem when an error occurs. So I just combined yours and hidjra's instructions.

Cheers and thank you again for this wonderful hack :)

buro9 10-16-2005 08:22 AM

Quote:

Originally Posted by mutus123
Cheers and thank you again for this wonderful hack :)

Oh, it's not mine, it's Trigunflames. Next time I see him on messenger I'm gonna bug him to re-package for 3.5. The live compress hack out there needs to be taken down by this one... this one is just so much more efficient (less overhead as you only do when you change things, not on every page hit).

stan111 10-16-2005 11:04 PM

thanks a lot , buro9
i have template mod like background picture in the quick reply text message area
https://vborg.vbsupport.ru/showthrea...und+quickreply

i dont know if this would make it disappear

buro9 10-17-2005 07:10 AM

Quote:

Originally Posted by stan111
thanks a lot , buro9
i have template mod like background picture in the quick reply text message area
https://vborg.vbsupport.ru/showthrea...und+quickreply

i dont know if this would make it disappear

It's very likely.

I can't see the source code of the template to be able to see what it might do. The hack you linked to is very old and the original zip file attached to that thread is no longer there.

I would suggest that you either add this template to the array of bad_templates so that it doesn't get compressed (everything else still will), or that you uninstall that hack or revert the template.

stan111 10-17-2005 07:56 AM

thanks again for a fast reply, buro9
i added too many hacks and now i have no idea how to uninstall that
so would you please show me how to add that template to array of bad_templates ?

buro9 10-17-2005 08:01 AM

Quote:

Originally Posted by stan111
thanks again for a fast reply, buro9
i added too many hacks and now i have no idea how to uninstall that
so would you please show me how to add that template to array of bad_templates ?

Just take the name of the template that is breaking, and find this piece of code in the compression hack above:
PHP Code:

    $badTemplates = array(
        
'editor_jsoptions_font',
        
'editor_jsoptions_size',
        
'phpinclude_start',
        
'phpinclude_end'
    
); 

Simply add the name of the template that is causing problems to that array... which means adding a line like this at the end of the array (but within the brackets):
PHP Code:

,'templateName' 

And then upload and re-run the admincp thingy and it will skip compressing that template.

Oh, one more thing... if you have already applied the hack and it is still broken, uncompress the templates, apply this change, and the re-compress the templates :)

stan111 10-17-2005 08:03 AM

omg, u r so fast, man
you rock
thanks a ton
let me go try that now

stan111 10-17-2005 08:15 AM

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


All times are GMT. The time now is 11:11 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.01303 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
  • (2)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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