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)

Cyricx 04-15-2005 07:37 PM

I haven't tossed this onto my test site yet, but there isn't any hacks that would contradict this.

He's using add below/above rather then replace code, which is rockin and it's a total new function.

Nothing for it to clash with.

jcr 04-15-2005 07:53 PM

This hack is truly amazing, I really can feel, see and notice the difference!

Two thumbs up!

Highly recommendable!

diettalk 04-15-2005 09:20 PM

Added to my forum and it seems to be loading quicker here. My load average jumped up but it seems to be coming down.. probably just eaccelerator updating the cache.

Rambo 04-15-2005 11:43 PM

Hrm,

I think i can notice a slight difference with this installed, seem's to be working so far.

Good job

Trigunflame 04-16-2005 06:10 AM

Im almost done with an update guys, Im writing code to take care of the removing of whitespace.

Trigunflame 04-16-2005 07:15 AM

UPDATE:

Finished the new version, it works great.

Checks template line for line, removing any and all whitespace, tabs etc.. checked the result in IE/Firefox with NO Errors.

Script is made to go "around" the javascript, so its left in its natural state except the tabs.

Blam Forumz 04-16-2005 07:31 AM

This is brilliant! My forums are so much faster, thanks :D

Blam Forumz 04-16-2005 07:33 AM

Ok, I have a problem, I use this in my phpinclude_start:

Code:

switch(intval(time() / 2) % 4)
{
    case 0:
    $banner = '/designs/images/skin/boredom.gif';
    break;
    case 1:
    $banner = '/designs/images/skin/boredom1.gif';
    break;
    case 2:
    $banner = '/designs/images/skin/boredom2.gif';
    break;
    case 3:
    $banner = '/designs/images/skin/boredom3.gif';
    break;
}

and then i use $banner in my header, when I compress all templates the images dont appear, but when I uncompress them they do, any idea?

Trigunflame 04-16-2005 07:43 AM

Quote:

Originally Posted by Blam Forumz
Ok, I have a problem, I use this in my phpinclude_start:

Code:

switch(intval(time() / 2) % 4)
{
    case 0:
    $banner = '/designs/images/skin/boredom.gif';
    break;
    case 1:
    $banner = '/designs/images/skin/boredom1.gif';
    break;
    case 2:
    $banner = '/designs/images/skin/boredom2.gif';
    break;
    case 3:
    $banner = '/designs/images/skin/boredom3.gif';
    break;
}

and then i use $banner in my header, when I compress all templates the images dont appear, but when I uncompress them they do, any idea?

Im using this in mine: phpinclude_start

PHP Code:

$b = array(
  
'images/v4/banner01.jpg',
  
'images/v4/banner02.jpg'
);
$banner $b[array_rand($b)]; 

and my header is

Code:

<!-- logo -->
<a name="top"></a>
<center>
<table cellpadding='0' cellspacing='1' bgcolor='#C7C5BF' align='center' width="$stylevar[outertablewidth]">
<tr>
<td align='center' bgcolor='#F8F5F0'>
<table border="0" width='100%' cellpadding="0" cellspacing="0" align="center"><tr><td align="$stylevar[left]"><img src="$banner" border="0" alt="$vboptions[bbtitle]" /></td></tr></table>
<!-- /logo -->

<!-- content table -->
$spacer_open

$_phpinclude_output

It's working fine for me, maybe adjust yours to mine?

Blam Forumz 04-16-2005 07:52 AM

Nope, still doesnt work :(


All times are GMT. The time now is 03:30 AM.

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.01211 seconds
  • Memory Usage 1,741KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_php_printable
  • (1)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