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)

Trigunflame 04-17-2005 12:20 AM

Quote:

Originally Posted by detalhe
I installed it but when I have the option to compress templates selected, I get this error on top of my sub-forum pages:

PHP Code:

Warningin_array(): Wrong datatype for second argument in /showthread.php on line 955

Warning
in_array(): Wrong datatype for second argument in /showthread.php on line 955

Warning
in_array(): Wrong datatype for second argument in /showthread.php on line 955

Warning
in_array(): Wrong datatype for second argument in /showthread.php on line 955

Warning
in_array(): Wrong datatype for second argument in /showthread.php on line 1705 

If I uncompress everything goes back to normal

:ermm:

Create a new style/template set, compress templates and check if you still get the same error; it may be something that you have customized.

vulture 04-17-2005 12:43 AM

Installed, but this quick hack from vbulletin.com no longer works:

http://www.vbulletin.com/forum/showthread.php?t=101600

Without compress: 1000 new posts
With compress: new posts

The figure just vanishes!

Trigunflame 04-17-2005 01:00 AM

Quote:

Originally Posted by vulture
Installed, but this quick hack from vbulletin.com no longer works:

http://www.vbulletin.com/forum/showthread.php?t=101600

Without compress: 1000 new posts
With compress: new posts

The figure just vanishes!

This was a problem in the earlier version of the hack, make sure you are using the absolute latest version of the code.

IE. Copy what I have up there now, and uncompress/recompress. If you still have a problem, contact me on

AIM: Trigunflame
MSN: Trigunflame@msn.com

Trigunflame 04-17-2005 01:45 AM

Update:

Everyone should update to latest script if they use php_include, the new version adds php_include_start and php_include_end to the bad templates array.

detalhe 04-17-2005 09:33 AM

Works great now, thanks!

uae 04-17-2005 11:35 AM

Works just fine, clicked install :)

Trigunflame 04-17-2005 11:36 AM

Quote:

Originally Posted by uae
Works just fine, clicked install :)

That's good to know :), vote for Backup Pro while you're at it XD :ninja:

Oblivion Knight 04-17-2005 12:11 PM

I made the switch from buro9's mod to yours (as per his advise!).

Everything seems to be working perfectly.. :)

Trigunflame 04-17-2005 01:38 PM

Update, Good News.

----------------------

Support for compressing phrases has been added; this will give additional page compression to certain pages that use multi-line phrases, such as user-cp/faq/ etc..

Also added support to both for removing the ascii \n that some templates/phrases have; give even more compression.

Enjoy !

Trigunflame 04-17-2005 01:49 PM

Bah Another Update:

Bug reported; Had to add editor_jsoptions_size to the Bad Templates array, it was causing problems selecting font size.


All times are GMT. The time now is 12:50 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.02562 seconds
  • Memory Usage 1,744KB
  • 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_php_printable
  • (3)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