Results 1 to 1 of 1
-
13th Jan 2008, 01:30 AM #1OPMember
[TUT]Invision Power Board Optimization
Please make sure to backup all necessary files before performing edits.
-------------------------
Please do NOT do the following tip if you use the subscription manager - payment validations will not return properly to your site because the url is not valid. This tip can also cause other similar problems.
Open ./index.php:
(Around Line 295)
****
Find:
*****
Code://=========================================================================== // Set up the session ID stuff //=========================================================================== if ( $ipsclass->session_type == 'cookie' ) { $ipsclass->session_id = ""; $ipsclass->base_url = $ipsclass->vars['board_url'].'/index.'.$ipsclass->vars['php_ext'].'?'; }
Replace With:
*****
Code://=========================================================================== // Set up the session ID stuff //=========================================================================== if ( $ipsclass->session_type == 'cookie' ) { $ipsclass->session_id = ""; $ipsclass->base_url = 'index.php?'; }
Open ./init.php:
(Around Line 90)
*****
Find:
*****
Code:define( 'CUSTOM_ERROR', 1 );
Replace With:
*****
Code:define( 'CUSTOM_ERROR', 0 );
| Create New PHP File |
./style_images/gzip-css.php
*****
Contents:
*****
Code:<?php ob_start ("ob_gzhandler"); header("Content-type: text/css; charset: UTF-8"); header("Cache-Control: must-revalidate"); $offset = 60 * 60; $ExpStr = "Expires: " . gmdate("D, d M Y H:i:s", time() + $offset) . " GMT"; header($ExpStr); ?>
| Create New PHP File |
./style_images/.htaccess
*****
Contents:
*****
Code:AddHandler application/x-httpd-php .css (EDIT: This breaks CSS on version 2.3.x) php_value auto_prepend_file gzip-css.php php_flag zlib.output_compression On
1 - The first line tells Apache to send all .css files to the PHP script handler.
2 - The second line prepends the code snippet to your CSS file.
3 - Optional: The third line tells PHP to use its built-in negotiated output compression automatically for every page it parses. If you use this method for compression, there is no need for having ob_start ("ob_gzhandler"); in the code snippet. So choose one or method or the other...
Full Source
-------------------------
ACP > Look & Feel > Skins & Templates > Skin Manager > *SKIN* > Edit Settings
(Second Section - CSS Options)
*****
Find:
*****
Cache CSS to text files?
*****
Change To:
*****
Yes
-------------------------
-OPTIONAL-
The following edit CAN actually decrease your board speed in certain instances, especially with larger boards.
In addition, some hosts do not allow (or like) persistant connections being enabled. If you are contacted by your host for resource consumption and/or your board is slowed down after following this tutorial - please disable persistant connections FIRST.
Open ./ips_kernel/class_db.php:
(Around Line 87)
*****
Find:
*****
Code:"persistent" => "0" ,
Replace With:
*****
Code:"persistent" => "1" ,
If you experience any problems with these edits, revert back.Lease Reviewed by Lease on . [TUT]Invision Power Board Optimization Please make sure to backup all necessary files before performing edits. ------------------------- Please do NOT do the following tip if you use the subscription manager - payment validations will not return properly to your site because the url is not valid. This tip can also cause other similar problems. Open ./index.php: (Around Line 295) **** Rating: 5Extremely helpful article about hiding your identity here
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
How to install Invision Power Board
By NewEraCracker in forum Tutorials and GuidesReplies: 8Last Post: 31st Jul 2010, 11:37 AM -
Need a Invision Power Board ******* OR a *****
By vingoradov in forum General DiscussionReplies: 1Last Post: 6th Aug 2009, 07:12 PM -
Problem with Invision Power Board.
By ACiD in forum IP.BoardReplies: 4Last Post: 15th Mar 2009, 09:11 PM -
[TUT]Invision Power Board 2.0+ And 1.3 - Css Guides
By Lease in forum IP.BoardReplies: 0Last Post: 8th Jan 2008, 09:21 AM
themaPoster - post to forums and...
Version 5.35 released. Open older version (or...