Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
United-Forum CSS Sprites - ludicrous speed - NOW! Details »
United-Forum CSS Sprites - ludicrous speed - NOW!
Mod Version: 0.7.2, by Osbes (Member) Osbes is offline
Developer Last Online: Feb 2013 I like it Show Printable Version Email this Page

vB Version: 4.x.x Rating: (31 votes - 4.55 average) Installs: 268
Released: 12 Jul 2011 Last Update: 06 Aug 2011 Downloads: 2871
Not Supported Uses Plugins Auto-Template Additional Files Is in Beta Stage  

tl;dr Makes your forum faster.

Want an easy one-click installation for this addon? . Vote for this jira-entry

Add on currently is in beta stage

When visiting a website, speed is a very important factor not only for users but crawlers as well. Long loading times are a nuisance since your time is basically wasted during the waiting period. Hence, we are trying everything we can in order to speed up our site. One great way to improve loading times is by the use of css sprites. Unfortunately these are not implemented by vBulletin.

We therefore decided to develop our own css-sprite add on for vBulletin boards and want to share this code with the worldwide vBulletin community.

Live demo
The add on is permanently running in our vBulletin board ( > 2.000.000 posts), take a look:
http://www.united-forum.de

The add on will be supported via this thread. If you have any questions, issues, improvements or feedback regarding this add on, please feel free to post a comment or write us a pm at any time. We are happy to discuss

vBulletin performance using css sprites
Our tests are based on version 0.7.0. We used the analytic tools firebug network utility and the googlelabs.com page speed site

on the client side the following parameter were used:
download speed: 5.7 MBit/s
ping: 31ms




css sprites - what are they?
The intention behind css sprites is the bundling of many small graphics into one large graphic in order to decrease the number of required http requests. This shortens the loading times of the given website. In addition, the the accumulated size of all small graphics is higher than the size of the sprite due to reasons of compression.
You can find further information in a great article by Chris Coyier.
What is the gain in using css sprites?
Aside from the technical implementation, the question on how much one actually does gain by using css sprites is of the most interest. Obviously they decrease loading times - but how important are small loading times and what is the impact on vBulletin overall loading times?

A short time ago, Jasper Aguila pointed out that speed is one crucial stickiness factor in his blog on vBulletin.com.
Originally Posted by Jasper Aguila vBulletin Support
The internet has unfortunately contributed to the exponential decrease in attention span for many individuals. That's why this decade is seeing a trend in emerging technologies emphasizing the importance of speed request. It's crucial for your content to be promptly distributed in a timely manner, else bounce rate will increase - making you lose returning visitors. It's also important to note that slow sites may be penalized by search engines.

With better browsers, more powerful processors, and improved technologies constantly releasing each year, it's becoming quite difficult to provide excuses for slow loading pages. Therefore, try optimizing your server for speed. Read up and learn optimization techniques at vBulletin.com's Server Configuration forum.
In addition, the google ranking is influenced by the site speed as well.

Google Webmaster Central Blog
Originally Posted by 09.04.2010 - Google Webmaster Central Blog
You may have heard that here at Google we're obsessed with speed, in our products and on the web. As part of that effort, today we're including a new signal in our search ranking algorithms: site speed. Site speed reflects how quickly a website responds to web requests.
vBseo Webmaster Mert Gökçeimam
CSS sprites is a huge bonus for big boards , any big board owner definately should use it.
Last but not least, not only the user's loading time is reduced, but also does the server load decrease as the server will have to handle a lot less of http requests. This clears available connections and cpu time.
Add on features
In the current released beta version 0.7.2, sprites are available for FORUMHOME and FORUMDISPLAY. Coming up next SHOWTHREAD.

Sprites are created style based for all forum styles and saved in a folder which you can set via the imgdir_sprite stylevar. You have one additional button in the ACP (CSS-Sprites -> Refresh) which automatically creates all sprites, the according css definitions and includes those css definitions in the vBulletin css rollup files.
Installation

First of all, if you didnt want to change the templates manually, install the Template Modification System (TMS). Now proceed with the installation:
  • upload the contents of the upload folder into your forum home directory.
  • import the add on in the ACP
  • upon installation a new stylevar imgdir_sprite will be created. Update this stylevar based on your file structure - default value is the vbulletin sprite directory. Make sure the folder is writable, else the sprites can't be saved!
  • create the sprites via the ACP at CSS-Sprite using the Refresh option.
  • If you have installed TMS, you are done now. This was an easy gained speed up, not? If you didnt installed TMS and didnt want to do it, proceed with the next point:
  • in order to use the sprites, you then will have to edit some templates. The diffs (xou will find it in the do_not_upload folder show which parts you have to delete '<' and which parts to add '>' In addition, on top find the lines in which you will find the respective code.[/b]

Download Now

Only licensed members can download files, Click Here for more information.

Supporters / CoAuthors

Screenshots

Click image for larger version

Name:	forumdisplay_default.jpg
Views:	2219
Size:	151.3 KB
ID:	131565   Click image for larger version

Name:	forumdisplay_sprites_070.png
Views:	1617
Size:	70.8 KB
ID:	131566   Click image for larger version

Name:	forumhome_default.jpg
Views:	1307
Size:	145.6 KB
ID:	131567   Click image for larger version

Name:	forumhome_sprites_070.png
Views:	1160
Size:	66.6 KB
ID:	131568  

Click image for larger version

Name:	nachher_forumdisplay.jpg
Views:	1551
Size:	96.6 KB
ID:	131570   Click image for larger version

Name:	nachher_forumhome.jpg
Views:	1168
Size:	94.1 KB
ID:	131572  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
  #286  
Old 09 Aug 2011, 17:48
Taurus1's Avatar
Taurus1 Taurus1 is offline
 
Join Date: Dec 2009
Originally Posted by Osbes View Post
Hello Taurus1,

the latest version of the gd library is 2.0.36 (from 2007) in which this bug was fixed.

I think gd 2.0.33 was released 2004. It may be the latest version with CentOS 5.

Debian uses gd 2.0.36 since Debain Lenny.

Best regards
Sebastian
Thank you very much. (Sent you some bucks to say thanks for everything!)
__________________
For custom designed Windows 7 Visual Styles/Themes, please visit CreativX!
Reply With Quote
  #287  
Old 09 Aug 2011, 17:55
Taurus1's Avatar
Taurus1 Taurus1 is offline
 
Join Date: Dec 2009
Sorry, I have one question. If I disable TMS now, after this is already installed, will I loose all template edits?
And then can I just enable it again if there is an update?

Thanks.
__________________
For custom designed Windows 7 Visual Styles/Themes, please visit CreativX!
Reply With Quote
  #288  
Old 11 Aug 2011, 16:43
steeler7 steeler7 is offline
 
Join Date: Oct 2009
Question..

My "goto last post" button isn't showing up which is likely caused by me forgetting to edit code... any idea what bit of code there was to edit in order to get this to appear?
Reply With Quote
  #289  
Old 12 Aug 2011, 14:12
Osbes Osbes is offline
 
Join Date: Jul 2008
Hello Taurus1,

THANKS for your donation, its really really nice, big thanks!

I which i could have answered sooner, but i had a lot work to do this week.

I dont know if TMS will remove the template-changes if you disable it, but i think it will remove them, if you deinstall it.
I think Andreas will answer this, if you ask him in the corresponding thread: http://www.vbulletin.org/forum/showt...152931&page=44

Again, Thank you very much!

Best wishes
Sebastian
Reply With Quote
  #290  
Old 12 Aug 2011, 14:16
Osbes Osbes is offline
 
Join Date: Jul 2008
Hello steeler7,

sorry for my late answer.

It seems you have already find the solution? Just to make sure, this are the needed template changes:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Best regards
Sebastian
Reply With Quote
  #291  
Old 12 Aug 2011, 17:16
steeler7 steeler7 is offline
 
Join Date: Oct 2009
Originally Posted by Osbes View Post
Hello steeler7,

sorry for my late answer.

It seems you have already find the solution? Just to make sure, this are the needed template changes:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Best regards
Sebastian
Thanks!

i'll go check those out.

One other question. I've been having the issue with the Attachment clip graphic that was mentioned earlier in this thread. I asked my host to upgrade my GD to 2.0.36 like you had recommended and this was the response I received :

The version of the 'gd' package installed on your VPS is 2.0.33. As we have found out from the official repository https://bitbucket.org/pierrejoye/gd-libgd, this is the latest stable version. So the version 2.0.36 of this library couldn't be installed.
Reply With Quote
  #292  
Old 12 Aug 2011, 18:15
Osbes Osbes is offline
 
Join Date: Jul 2008
Hello steeler7,

the versioning in the repo is a little bit messed up, since the tags shown by bitbucket (latest 2.0.33 / 2.0.34RC1) dont correspond to the .hgtags (latest 2.0.35) and it also didnt correspond to the NEWS (latest 2.0.36).

To bring some order in this mess, its best to look at the official site for this. Since this site is currently down, please us the waybackmachine for this:
http://web.archive.org/web/201012240....org/Main_Page

As you can see, the latest official release is 2.0.36 RC1 and the latest stable release is 2.0.35.

Since 2.0.36 RC1 is now nearly 4 years old and fixes some security issues, it is mostly addressed as 2.0.36 and - as example - used by the stable release of debian (http://packages.debian.org/squeeze/libgd2-noxpm) and was even used two years before by the oldstable release (http://packages.debian.org/lenny/libgd2-noxpm).

If you use gd2 embeded in php and want to know which is the minimum required php-version which had this patch embeded, we need to look a little bit closer.

This was the patch for the support of png "gray+alpha": https://bitbucket.org/pierrejoye/gd-...g-src/gd_png.c
Now we need to look into the php repo to make sure since which php version this patch was included.

You will find, that this patch is included in the embeded version since PHP 5.3.0 (https://svn.php.net/repository/php/p...libgd/gd_png.c).

For comparison PHP 5.2.17 (latest version before 5.3.0) in which this patch wasn't included: https://svn.php.net/repository/php/p...libgd/gd_png.c


If it isn't possible to update the gdlib, you can always switch your images from "gray+alpha" with an version using "color RGBA". But i mostly recommend the update of the gdlib, since 3.0.36(RC1) also fixes some serious security issues.

I hope this helps you

Best regards
Sebastian

Last edited by Osbes; 12 Aug 2011 at 18:44.
Reply With Quote
  #293  
Old 12 Aug 2011, 22:46
steeler7 steeler7 is offline
 
Join Date: Oct 2009
Originally Posted by Osbes View Post
Hello steeler7,

the versioning in the repo is a little bit messed up, since the tags shown by bitbucket (latest 2.0.33 / 2.0.34RC1) dont correspond to the .hgtags (latest 2.0.35) and it also didnt correspond to the NEWS (latest 2.0.36).

To bring some order in this mess, its best to look at the official site for this. Since this site is currently down, please us the waybackmachine for this:
http://web.archive.org/web/201012240....org/Main_Page

As you can see, the latest official release is 2.0.36 RC1 and the latest stable release is 2.0.35.

Since 2.0.36 RC1 is now nearly 4 years old and fixes some security issues, it is mostly addressed as 2.0.36 and - as example - used by the stable release of debian (http://packages.debian.org/squeeze/libgd2-noxpm) and was even used two years before by the oldstable release (http://packages.debian.org/lenny/libgd2-noxpm).

If you use gd2 embeded in php and want to know which is the minimum required php-version which had this patch embeded, we need to look a little bit closer.

This was the patch for the support of png "gray+alpha": https://bitbucket.org/pierrejoye/gd-...g-src/gd_png.c
Now we need to look into the php repo to make sure since which php version this patch was included.

You will find, that this patch is included in the embeded version since PHP 5.3.0 (https://svn.php.net/repository/php/p...libgd/gd_png.c).

For comparison PHP 5.2.17 (latest version before 5.3.0) in which this patch wasn't included: https://svn.php.net/repository/php/p...libgd/gd_png.c


If it isn't possible to update the gdlib, you can always switch your images from "gray+alpha" with an version using "color RGBA". But i mostly recommend the update of the gdlib, since 3.0.36(RC1) also fixes some serious security issues.

I hope this helps you

Best regards
Sebastian
Here's my hosts response after providing to them your explanation :

As you know you have cPanel on the server and we use all libraries from the official repositories. And the latest version of GD library in the official repositories is 2.0.33-9.4, which is currently installed on your VPS. Any custom install may cause problems to Apache + PHP, so this can be done at your own risk and we can't guarantee that everything will be working properly after the upgrade.
I';m to novice to install stuff like this myself , but I figured posting this for you and others just in case anyone else happens to run into this issue
Reply With Quote
  #294  
Old 13 Aug 2011, 03:10
FReeSTER FReeSTER is offline
 
Join Date: Jun 2006
I might be dumm but do I have to do all those template edits on the dfff file?

I dont get the way is been done, which templates I edit, or remove?
Reply With Quote
  #295  
Old 13 Aug 2011, 06:38
FReeSTER FReeSTER is offline
 
Join Date: Jun 2006
damn the more I try with this mod the more problems I get. errr
Reply With Quote
  #296  
Old 13 Aug 2011, 09:38
Osbes Osbes is offline
 
Join Date: Jul 2008
Hello FReeSTER,

the easiest way is to install the Template Modification System and than install this addon. Than all template-changes will be done automatically.



If you do it manually you need to do all the template-changes within the TEMPLATE_CHANGES.diff.

In the diff-format, "<" means remove and ">" means add. in a combination like


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

It would mean

replace

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

with

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Best regards
Sebastian
Reply With Quote
  #297  
Old 13 Aug 2011, 17:22
kingMOB kingMOB is offline
 
Join Date: Nov 2007
Up there is saying "vB Version: 4.x.x", but when trying to install in a 4.0.8 version the plugin says it is incompatible.
Reply With Quote
  #298  
Old 13 Aug 2011, 17:28
Mooff Mooff is offline
 
Join Date: Mar 2010
nvm.

Last edited by Mooff; 13 Aug 2011 at 17:45.
Reply With Quote
  #299  
Old 13 Aug 2011, 17:39
Osbes Osbes is offline
 
Join Date: Jul 2008
Hello kingMOB,

the addon has internally vBulletin 4.1.3 and above as depency.

product-sprite-0.7.2.xml

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

You can change this to

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

or lower to run it with vBulletin 4.0.8.

I have set this thread to vB Version: 4.x.x, since it should work with 4.x.x theoretically (as far as i can see), but until now it wasnt independent and practically confirmed, thats why the minversion is currently set to 4.1.3, the lowest vBulletin version for which it was confirmed in a live system.

Best regards
Sebastian
Reply With Quote
  #300  
Old 14 Aug 2011, 04:23
FReeSTER FReeSTER is offline
 
Join Date: Jun 2006
Originally Posted by Osbes View Post
Hello FReeSTER,

the easiest way is to install the Template Modification System and than install this addon. Than all template-changes will be done automatically.



If you do it manually you need to do all the template-changes within the TEMPLATE_CHANGES.diff.

In the diff-format, "<" means remove and ">" means add. in a combination like


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

It would mean

replace

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

with

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Best regards
Sebastian
Got it mate, thanks

I went to page speed from google and Im getting this

Suggestions for this page
The following images served from myfreeneeds.com should be combined into as few images as possible using CSS sprites.

Suggestions for this page

The following images served from myfreeneeds.com should be combined into as few images as possible using CSS sprites.
I also have this problem on the subforums showing no images

Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 10:27.

Layout Options | Width: Wide Color: