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: 2878
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:	2235
Size:	151.3 KB
ID:	131565   Click image for larger version

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

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

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

Click image for larger version

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

Name:	nachher_forumhome.jpg
Views:	1173
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.
  #91  
Old 01 Aug 2011, 02:26
final kaoss final kaoss is offline
 
Join Date: Apr 2006
There's one thing I would like to see added to this.

Domain Sharding

As we've been discussing this and other tweaks here.

And please... if your going to post in english at least put the screenshots in english too... thanks.
Reply With Quote
  #92  
Old 01 Aug 2011, 06:14
Osbes Osbes is offline
 
Join Date: Jul 2008
Hello extreme-gaming,

sorry, since we are from germany our tools are also in german, but we will try to use an english version for the screenshots next time

Since Version 0.6.2 i have added support for URLs within the imgdir_* Stylevars, so you can use this addon with CDNs. So i would assume, that Domain Sharding also works.

How is Domain Sharding implemented on your site, whats the content of the imgdir_* StyleVars?

Best regards
Sebastian
Reply With Quote
  #93  
Old 01 Aug 2011, 06:25
8thos's Avatar
8thos 8thos is offline
 
Join Date: Aug 2010
Real name: DRE
Originally Posted by Osbes View Post
Hello extreme-gaming,

sorry, since we are from germany our tools are also in german, but we will try to use an english version for the screenshots next time

Since Version 0.6.2 i have added support for URLs within the imgdir_* Stylevars, so you can use this addon with CDNs. So i would assume, that Domain Sharding also works.

How is Domain Sharding implemented on your site, whats the content of the imgdir_* StyleVars?

Best regards
Sebastian
I plan on using this modification in conjunction with domain sharding. I want an A across the board on webpagetest.org. First Byte Time is killing me. I keep getting an F.
__________________
www.8thos.com
www.qapla.com
Reply With Quote
  #94  
Old 01 Aug 2011, 07:26
final kaoss final kaoss is offline
 
Join Date: Apr 2006
I have them all set to (via stylevars)


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

like /i1/icons
/i1/sprites

And now your plugin says:

DF2
0 custom icons added.
0 imageprefixes for forums found.
38 icon candidates added.
/home/username/public_html/forum/i1/statusicon/category-16.png does not exist or is not readable.
/home/username/public_html/forum/i1/statusicon/category_forum_link.png does not exist or is not readable.
/home/username/public_html/forum/i1/statusicon/category_forum_new.png does not exist or is not readable.
/home/username/public_html/forum/i1/statusicon/category_forum_old_lock.png does not exist or is not readable.
/home/username/public_html/forum/i1/statusicon/category_forum_old.png does not exist or is not readable.
/home/username/public_html/forum/i1/statusicon/forum_link-16.png does not exist or is not readable.
/home/username/public_html/forum/i1/statusicon/forum_new-16.png does not exist or is not readable.
/home/username/public_html/forum/i1/statusicon/forum_old-16.png does not exist or is not readable.
/home/username/public_html/forum/i1/statusicon/forum_new_lock-16.png does not exist or is not readable.
/home/username/public_html/forum/i1/statusicon/forum_old_lock-16.png does not exist or is not readable.
/home/username/public_html/forum/i1/statusicon/forum_link-48.png does not exist or is not readable.
/home/username/public_html/forum/i1/statusicon/forum_new-48.png does not exist or is not readable.
/home/username/public_html/forum/i1/statusicon/forum_new_lock-48.png does not exist or is not readable.
/home/username/public_html/forum/i1/statusicon/forum_old-48.png does not exist or is not readable.
/home/username/public_html/forum/i1/statusicon/forum_old_lock-48.png does not exist or is not readable.
/home/username/public_html/forum/i1/statusicon/subforum_link-48.png does not exist or is not readable.
/home/username/public_html/forum/i1/statusicon/subforum_new-48.png does not exist or is not readable.
/home/username/public_html/forum/i1/statusicon/subforum_old-48.png does not exist or is not readable.
/home/username/public_html/forum/i1/statusicon/subforum_link.png does not exist or is not readable.
/home/username/public_html/forum/i1/statusicon/subforum_new.png does not exist or is not readable.
/home/username/public_html/forum/i1/statusicon/subforum_old.png does not exist or is not readable.
/home/username/public_html/forum/i1/buttons/lastpost-left.png does not exist or is not readable.
/home/username/public_html/forum/i1/buttons/lastpost-right.png does not exist or is not readable.
/home/username/public_html/forum/i1/misc/rss_40b.png does not exist or is not readable.
/home/username/public_html/forum/i1/misc/subscribed_40b.png does not exist or is not readable.
/home/username/public_html/forum/i1/site_icons/profile.png does not exist or is not readable.
/home/username/public_html/forum/i1/site_icons/forum.png does not exist or is not readable.
/home/username/public_html/forum/i1/site_icons/message.png does not exist or is not readable.
/home/username/public_html/forum/i1/site_icons/blog.png does not exist or is not readable.
/home/username/public_html/forum/i1/site_icons/homepage.png does not exist or is not readable.
/home/username/public_html/forum/i1/site_icons/article.png does not exist or is not readable.
/home/username/public_html/forum/i1/site_icons/add.png does not exist or is not readable.
/home/username/public_html/forum/i1/site_icons/email.png does not exist or is not readable.
/home/username/public_html/forum/i1/misc/users_online.png does not exist or is not readable.
/home/username/public_html/forum/i1/misc/event.png does not exist or is not readable.
/home/username/public_html/forum/i1/misc/birthday.png does not exist or is not readable.
/home/username/public_html/forum/i1/misc/forum_stats.png does not exist or is not readable.
/home/username/public_html/forum/i1/misc/legend.png does not exist or is not readable.
Starting with main.
0 icons added.
Creating sprite (width:1000px height:1px).

Warning: imagepng() [function.imagepng]: Unable to open '[path]/i1/sprites/sprite-16-main.png' for writing: No such file or directory in [path]/admincp/sprite.php on line 798
Error occurred: Unable to save sprite in /i1/sprites/sprite-16-main.png.
CSS template successfully updated.
Starting with forumdisplay.
0 icons added.
Creating sprite (width:1000px height:1px).

Warning: imagepng() [function.imagepng]: Unable to open '[path]/i1/sprites/sprite-16-forumdisplay.png' for writing: No such file or directory in [path]/admincp/sprite.php on line 798
Error occurred: Unable to save sprite in /i1/sprites/sprite-16-forumdisplay.png.
CSS template successfully updated.
Starting with forumhome.
0 icons added.
Creating sprite (width:1000px height:1px).

Warning: imagepng() [function.imagepng]: Unable to open '[path]/i1/sprites/sprite-16-forumhome.png' for writing: No such file or directory in [path]/admincp/sprite.php on line 798
Error occurred: Unable to save sprite in /i1/sprites/sprite-16-forumhome.png.
CSS template successfully updated.
Starting with showthread.
0 icons added.
Creating sprite (width:1000px height:1px).

Warning: imagepng() [function.imagepng]: Unable to open '[path]/i1/sprites/sprite-16-showthread.png' for writing: No such file or directory in [path]/admincp/sprite.php on line 798
Error occurred: Unable to save sprite in /i1/sprites/sprite-16-showthread.png.
CSS template successfully updated.
Originally Posted by Osbes View Post
Hello extreme-gaming,

sorry, since we are from germany our tools are also in german, but we will try to use an english version for the screenshots next time

Since Version 0.6.2 i have added support for URLs within the imgdir_* Stylevars, so you can use this addon with CDNs. So i would assume, that Domain Sharding also works.

How is Domain Sharding implemented on your site, whats the content of the imgdir_* StyleVars?

Best regards
Sebastian
Reply With Quote
  #95  
Old 01 Aug 2011, 10:51
Mooff Mooff is offline
 
Join Date: Mar 2010
Are those files readable and the folder writeable for the username/group you are using for php?
Reply With Quote
  #96  
Old 01 Aug 2011, 10:56
DNCL DNCL is offline
 
Join Date: Jul 2011
Originally Posted by Mooff View Post
If that doesn't work hit the sprite-refresh button in the acp and send us the output.
1 styles found.

Default Style
0 custom icons added.
0 imageprefixes for forums found.
Processing post icons.
14 post icons found.
Adding sidebar icons.
122 icon candidates added.
/forum/images/statusicon/forum_new_lock-16.png does not exist or is not readable.
/forum/images/statusicon/forum_old_lock-16.png does not exist or is not readable.
Starting with images/sprites/sprite-1-main.png.
97 icons added.
Creating sprite (width:1000px height:117px).
Sprite saved, updating css-rules.
Starting with images/sprites/sprite-1-main_rtl.png.
97 icons added.
Creating sprite (width:1000px height:117px).
Sprite saved, updating css-rules.
CSS template successfully updated.
Starting with images/sprites/sprite-1-forumdisplay.png.
0 icons added.
Sprite was not created.
Starting with images/sprites/sprite-1-forumdisplay_rtl.png.
0 icons added.
Sprite was not created.
CSS template successfully updated.
Starting with images/sprites/sprite-1-forumhome.png.
0 icons added.
Sprite was not created.
Starting with images/sprites/sprite-1-forumhome_rtl.png.
0 icons added.
Sprite was not created.
CSS template successfully updated.
Starting with images/sprites/sprite-1-showthread.png.
0 icons added.
Sprite was not created.
Starting with images/sprites/sprite-1-showthread_rtl.png.
0 icons added.
Sprite was not created.
CSS template successfully updated.
Reply With Quote
  #97  
Old 01 Aug 2011, 11:39
giorgino giorgino is offline
 
Join Date: Dec 2009
Hi guys this template changes don't match:


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

Reply With Quote
  #98  
Old 01 Aug 2011, 12:15
giorgino giorgino is offline
 
Join Date: Dec 2009
I've upgraded from 0.6.3 to 0.7.0 and I've this issue
Attached Images
File Type: png Schermata 08-2455775 alle 14.13.51.png (223.1 KB, 37 views)
Reply With Quote
  #99  
Old 01 Aug 2011, 12:56
nikosb nikosb is offline
 
Join Date: Dec 2008
Real name: Nikos
Originally Posted by giorgino View Post
I've upgraded from 0.6.3 to 0.7.0 and I've this issue
the same on 0.7.0
__________________
Supa mou pes
Reply With Quote
  #100  
Old 01 Aug 2011, 13:19
Osbes Osbes is offline
 
Join Date: Jul 2008
Sorry for the problems, there is update missing for the css-rule .threadbit .nonsticky a.threadstatus, .threadbit .sticky a.threadstatus in threadlist.css

Please change the original


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

to


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

I will update to 0.7.0a which include this change in the TMS-rules in a few minute.
Reply With Quote
  #101  
Old 01 Aug 2011, 13:27
Osbes Osbes is offline
 
Join Date: Jul 2008
0.7.0a is uploaded.

This should solve the problem
Reply With Quote
  #102  
Old 01 Aug 2011, 13:32
giorgino giorgino is offline
 
Join Date: Dec 2009
My thread.css is


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

Reply With Quote
  #103  
Old 01 Aug 2011, 13:41
Osbes Osbes is offline
 
Join Date: Jul 2008
Hello giorgino,

please remove

background-position: {vb:stylevar padding} 4px;

This overwrites the background-position of our sprites.

Best regards
Sebastian

Last edited by Osbes; 01 Aug 2011 at 14:03.
Reply With Quote
  #104  
Old 01 Aug 2011, 13:49
final kaoss final kaoss is offline
 
Join Date: Apr 2006
No they aren't because my images aren't located there. They are at i1.vgchat.info

Originally Posted by Mooff View Post
Are those files readable and the folder writeable for the username/group you are using for php?
Reply With Quote
  #105  
Old 01 Aug 2011, 13:52
giorgino giorgino is offline
 
Join Date: Dec 2009
Perfect Osbes Thank you, great work!

What about this issue?
http://www.vbulletin.org/forum/showp...9&postcount=97
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 03:39.

Layout Options | Width: Wide Color: