Poll: Do you like this guide?
You do not have permission to vote in this poll.
Yes
88.33%
106 88.33%
No
11.67%
14 11.67%
Total 120 vote(s) 100%
* You voted for this item. [Show Results]

[Tutorial] 10 Steps for Achieving the Maximum Possible Speed for Your MyBB Forum!
Just followed a guide from here about a php script that does combining and compressing javascript and css files.

http://rakaz.nl/2006/12/make-your-pages-...files.html

You could make it work with css files on mybb but as the cache directory changes every time you edit the theme I wouldn't recommend it. But for javascripts it works really well.

All you need to do is add this to your .htaccess

RewriteEngine on
RewriteBase /
RewriteRule ^jscripts/(.*\.js) /combine.php?type=javascript&files=$1

Then download this php file and call it combine.php, open it up and replace javascript with jscripts. Save the file and upload it to root.

If it worked you will start seeing javascript.gzip files in you cache directory. If you don't then something isn't working. It maybe that gzip isn't installed on the server.

I haven't fully tested this yet so not sure if there is any draw backs, but it seems to be working fine for me at the moment.
[Image: Jn29h.png]
DONATE TO PINGUY OS or show some love on Flattr.com
Reply


Messages In This Thread
RE: [Tutorial] 10 Steps for Achieving the Maximum Possible Speed for Your MyBB Forum! - by pinguy - 2011-08-28, 06:19 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)