Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
United-Forum CSS Sprites - ludicrous speed - NOW! Details »»
United-Forum CSS Sprites - ludicrous speed - NOW!
Version: 0.7.2, by Osbes Osbes is offline
Developer Last Online: Feb 2013 Show Printable Version Email this Page

Category: Board Optimization - Version: 4.x.x Rating:
Released: 07-11-2011 Last Update: 08-05-2011 Installs: 267
Uses Plugins Auto-Templates
Additional Files Is in Beta Stage  
No support by the author.

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.
Quote:
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
Quote:
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
Quote:
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

File Type: xml product-sprite-0.7.2.xml (51.9 KB, 1699 views)
File Type: zip sprite_0.7.2.zip (22.0 KB, 2769 views)

Screenshots

File Type: jpg forumdisplay_default.jpg (151.3 KB, 0 views)
File Type: png forumdisplay_sprites_070.png (70.8 KB, 0 views)
File Type: jpg forumhome_default.jpg (145.6 KB, 0 views)
File Type: png forumhome_sprites_070.png (66.6 KB, 0 views)
File Type: jpg nachher_forumdisplay.jpg (96.6 KB, 0 views)
File Type: jpg nachher_forumhome.jpg (94.1 KB, 0 views)

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #232  
Old 08-04-2011, 07:50 PM
steeler7 steeler7 is offline
 
Join Date: Oct 2009
Posts: 141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Osbes View Post
Hello steeler7,

with 0.7.2 i will add a solution for you, so that it will work with using folders for the Prefix for Forum Status Images.

I will build it tomorrow or the day after it.

Best regards
Sebastian
I just ended up figuring it all out and making the fixes on my end. I took a while renaming a ton of files and such but I eliminated the folders all together and just renamed the Files after doing a search here at VB.org and stumbling upon how.

Thanks for the option! I'm sure that someone else might find it handy that was using the folder setup as I was.

I do however have one problem remaining. Fix one and another pops up

My Thread Icons are either showing up, not showing up or showing the entire sprite image. I think it's called a Thread Icon. Basically the icon next to the Thread Titles..

You can have a look here :

http://www.pittsburghsportstavern.co...-Steelers-Talk
Reply With Quote
  #233  
Old 08-04-2011, 07:58 PM
Osbes Osbes is offline
 
Join Date: Jul 2008
Posts: 106
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi steeler7,

you are missing these template-edits:

Code:
Template: threadlist.css
368d354
<    background-position: {vb:stylevar padding} 4px;
376,394d361
<    .threadbit .threadstatus { background-image: url({vb:stylevar imgdir_statusicon}/thread_old-30.png); }
<    .threadbit.dot .threadstatus { background-image: url({vb:stylevar imgdir_statusicon}/thread_dot-30-{vb:stylevar right}.png); }
<    .threadbit.dot.hot .threadstatus { background-image: url({vb:stylevar imgdir_statusicon}/thread_dot_hot-30-{vb:stylevar right}.png); }
<    .threadbit.dot.hot.lock .threadstatus { background-image: url({vb:stylevar imgdir_statusicon}/thread_dot_hot_lock-30-{vb:stylevar right}.png); }
<    .threadbit.dot.hot.lock.new .threadstatus { background-image: url({vb:stylevar imgdir_statusicon}/thread_dot_hot_lock_new-30-{vb:stylevar right}.png); }
<    .threadbit.dot.hot.new .threadstatus { background-image: url({vb:stylevar imgdir_statusicon}/thread_dot_hot_new-30-{vb:stylevar right}.png); }
<    .threadbit.dot.lock .threadstatus { background-image: url({vb:stylevar imgdir_statusicon}/thread_dot_lock-30-{vb:stylevar right}.png); }
<    .threadbit.dot.lock.new .threadstatus { background-image: url({vb:stylevar imgdir_statusicon}/thread_dot_lock_new-30-{vb:stylevar right}.png); }
<    .threadbit.dot.new .threadstatus { background-image: url({vb:stylevar imgdir_statusicon}/thread_dot_new-30-{vb:stylevar right}.png); }
<    .threadbit.hot .threadstatus { background-image: url({vb:stylevar imgdir_statusicon}/thread_hot-30.png); }
<    .threadbit.hot.lock .threadstatus { background-image: url({vb:stylevar imgdir_statusicon}/thread_hot_lock-30.png); }
<    .threadbit.hot.lock.new .threadstatus { background-image: url({vb:stylevar imgdir_statusicon}/thread_hot_lock_new-30.png); }
<    .threadbit.hot.new .threadstatus { background-image: url({vb:stylevar imgdir_statusicon}/thread_hot_new-30.png); }
<    .threadbit.lock .threadstatus { background-image: url({vb:stylevar imgdir_statusicon}/thread_lock-30.png); }
<    .threadbit.lock.new .threadstatus { background-image: url({vb:stylevar imgdir_statusicon}/thread_lock_new-30.png); }
<    .threadbit.moved .threadstatus { background-image: url({vb:stylevar imgdir_statusicon}/thread_moved-30.png); }
<    .threadbit.moved.new .threadstatus { background-image: url({vb:stylevar imgdir_statusicon}/thread_moved_new-30.png); }
<    .new .threadstatus { background-image: url({vb:stylevar imgdir_statusicon}/thread_new-30.png); }
396d362
<    background: url({vb:stylevar imgdir_statusicon}/thread_deleted_30-{vb:stylevar right}.png) no-repeat {vb:stylevar padding} 4px;
These definitions overwrites the background-definition used by the sprites, thats why it isnt shown correctly. So please remove these definitons.

Best regards
Sebastian
Reply With Quote
  #234  
Old 08-04-2011, 08:00 PM
Crotan's Avatar
Crotan Crotan is offline
 
Join Date: Feb 2010
Posts: 249
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

disregard
Reply With Quote
  #235  
Old 08-04-2011, 10:55 PM
fukdawrld fukdawrld is offline
 
Join Date: Nov 2005
Posts: 147
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have 9 different skins most with different icons. I couldn't get this to work so i uninstalled. Now my icons are missing as well. I will pm you my info If you have time could you look into it? I would love to use this but I couldn't get it to work.
Reply With Quote
  #236  
Old 08-05-2011, 12:05 AM
fukdawrld fukdawrld is offline
 
Join Date: Nov 2005
Posts: 147
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My icons came back after a while for all my skins. I would love to get this working though. I'll try again later.
Reply With Quote
  #237  
Old 08-05-2011, 12:31 AM
Crotan's Avatar
Crotan Crotan is offline
 
Join Date: Feb 2010
Posts: 249
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by fukdawrld View Post
My icons came back after a while for all my skins. I would love to get this working though. I'll try again later.
You should refresh the page after hitting refresh in the admincp for the mod, you saying after a while sounds like browser caching. It might have been working fine the whole time you just never reloaded the images.

F5
Reply With Quote
  #238  
Old 08-05-2011, 01:47 AM
fukdawrld fukdawrld is offline
 
Join Date: Nov 2005
Posts: 147
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I did do that...I also cleared my cache and opened a new browser (opera) just to see. I'm not sure why it did that.

Thank u though.
Reply With Quote
  #239  
Old 08-05-2011, 04:58 AM
FReeSTER FReeSTER is offline
 
Join Date: Jun 2006
Location: Rome
Posts: 730
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Osbes View Post
Hello FReeSTER,

this is a weird behavior, have you look into it via firebug or something else?

I would assume that your cache played a trick on you. If you want me to look into it, please give a link were you are using sprites and have this kind of problem, then i can give you a solution

Best regards
Sebastian
Ok I will re-install the Mod and let you know later when ready. Thanks mate
Reply With Quote
  #240  
Old 08-05-2011, 05:55 AM
Osbes Osbes is offline
 
Join Date: Jul 2008
Posts: 106
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi fukdawrld,

i send you a new pm, please inform me, when you have uploaded the files

Best regards
Sebastian
Reply With Quote
  #241  
Old 08-05-2011, 06:16 AM
iask iask is offline
 
Join Date: Jan 2010
Location: Home
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i use cdn

0 custom icons added.
0 imageprefixes for forums found.
Processing post icons.
14 post icons found.
116 icon candidates added.
/home/xxxxxx/domains/xxxxxxxxx/public_html/images/styles/ShinyBlue/statusicon/forum_new_lock-16.png (with bburl_path / ) does not exist or is not readable.
/home/xxxxx/domains/pctuts.be/public_html/images/styles/ShinyBlue/statusicon/forum_old_lock-16.png (with bburl_path / ) does not exist or is not readable.
/home/xxxxxx/domains/pctuts.be/public_html/images/styles/ShinyBlue/buttons/search_rtl.png (with bburl_path / ) does not exist or is not readable.
Starting with images/sprites/sprite-213-main.png.
91 icons added.
Creating sprite (width:1000px height:116px).
Sprite saved, updating css-rules.
Starting with images/sprites/sprite-213-main_rtl.png.
90 icons added.
Creating sprite (width:1000px height:116px).
Sprite saved, updating css-rules.
CSS template successfully updated.
Starting with images/sprites/sprite-213-forumdisplay.png.
0 icons added.
Sprite was not created.
Starting with images/sprites/sprite-213-forumdisplay_rtl.png.
0 icons added.
Sprite was not created.
CSS template successfully updated.
Starting with images/sprites/sprite-213-forumhome.png.
0 icons added.
Sprite was not created.
Starting with images/sprites/sprite-213-forumhome_rtl.png.
0 icons added.
Sprite was not created.
CSS template successfully updated.
Starting with images/sprites/sprite-213-showthread.png.
0 icons added.
Sprite was not created.
Starting with images/sprites/sprite-213-showthread_rtl.png.
0 icons added.
Sprite was not created.
CSS template successfully updated.
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 03:03 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05046 seconds
  • Memory Usage 2,387KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (17)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (8)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete