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
  #22  
Old 07-17-2011, 09:25 PM
Osbes Osbes is offline
 
Join Date: Jul 2008
Posts: 106
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Version 0.6.2 released.
  • Added support for http filepaths and therefore one-way support for CDNs
  • Templates are now using the cache system

cherylferraro, your problem should be solved in 0.6.2.
Reply With Quote
  #23  
Old 07-17-2011, 09:38 PM
final kaoss final kaoss is offline
 
Join Date: Apr 2006
Posts: 1,314
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Now if you can automate the template changes, alot more people would be interested. Thanks.
Reply With Quote
  #24  
Old 07-17-2011, 09:45 PM
Osbes Osbes is offline
 
Join Date: Jul 2008
Posts: 106
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Andreas has added the corresponding XML-File for the Template Modification System.
http://www.vbulletin-germany.org/sho...5100#post75100

Beside the use of the TMS, i didnt know another way, cause you actually need to replace these lines.
Reply With Quote
  #25  
Old 07-17-2011, 10:30 PM
final kaoss final kaoss is offline
 
Join Date: Apr 2006
Posts: 1,314
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok. Do you mind putting up the template changes in codeboxes again? This is nearly unreadable..

Code:
Template: FORUMHOME
72d72
<    <h3 class="blocksubhead"><img src="{vb:stylevar imgdir_misc}/users_online.png" alt="{vb:rawphrase currently_active_users}" />{vb:rawphrase currently_active_users}</h3>
---
>    <h3 class="blocksubhead"><span class="sprite_misc_users_online" title="{vb:rawphrase currently_active_users}" ></span>{vb:rawphrase currently_active_users}</h3>
90c90
<    <h3 class="blocksubhead"><img src="{vb:stylevar imgdir_misc}/event.png" alt="{vb:rawphrase todays_events}" /><vb:if condition="$show['todaysevents']">{vb:rawphrase todays_events}<vb:else />{vb:rawphrase upcoming_events_for_the_next_x_days, {vb:raw vboptions.showevents}}</vb:if></h3>
---
>    <h3 class="blocksubhead"><span class="sprite_misc_event" title="{vb:rawphrase todays_events}" ></span><vb:if condition="$show['todaysevents']">{vb:rawphrase todays_events}<vb:else />{vb:rawphrase upcoming_events_for_the_next_x_days, {vb:raw vboptions.showevents}}</vb:if></h3>
100c100
<    <h3 class="blocksubhead"><img src="{vb:stylevar imgdir_misc}/birthday.png" alt="{vb:rawphrase todays_birthdays}" />{vb:rawphrase todays_birthdays}</h3>
---
>    <h3 class="blocksubhead"><span class="sprite_misc_birthday" title="{vb:rawphrase todays_birthdays}" ></span>{vb:rawphrase todays_birthdays}</h3>
109c109
<    <h3 class="blocksubhead"><img src="{vb:stylevar imgdir_misc}/forum_stats.png" alt="{vb:rawphrase x_statistics, {vb:raw vboptions.bbtitle}}" />{vb:rawphrase x_statistics, {vb:raw vboptions.bbtitle}}</h3>
---
>    <h3 class="blocksubhead"><span class="sprite_misc_forum_stats" title="{vb:rawphrase x_statistics, {vb:raw vboptions.bbtitle}}" ></span>{vb:rawphrase x_statistics, {vb:raw vboptions.bbtitle}}</h3>
128c128
<    <h3 class="blocksubhead"><img src="{vb:stylevar imgdir_misc}/legend.png" alt="{vb:rawphrase icon_legend}" />{vb:rawphrase icon_legend}</h3>
---
>    <h3 class="blocksubhead"><span class="sprite_misc_legend" title="{vb:rawphrase icon_legend}" ></span>{vb:rawphrase icon_legend}</h3>
131,134c131,134
<    <dt><img src="{vb:stylevar imgdir_statusicon}/forum_new-16.png" alt="{vb:rawphrase new_posts_forum}" /></dt><dd>{vb:rawphrase new_posts_forum}</dd>
<    <dt><img src="{vb:stylevar imgdir_statusicon}/forum_old-16.png" alt="{vb:rawphrase no_new_posts_forum}" /></dt><dd>{vb:rawphrase no_new_posts_forum}</dd>
<    <dt><img src="{vb:stylevar imgdir_statusicon}/category-16.png" alt="{vb:rawphrase category_forum}" /></dt><dd>{vb:rawphrase category_forum}</dd>
<    <dt><img src="{vb:stylevar imgdir_statusicon}/forum_link-16.png" alt="{vb:rawphrase link_forum}" /></dt><dd>{vb:rawphrase link_forum}</dd>
---
>    <dt><span class="sprite_statusicon_forum_new_16"></span></dt><dd>{vb:rawphrase new_posts_forum}</dd>
>    <dt><span class="sprite_statusicon_forum_old_16"></span></dt><dd>{vb:rawphrase no_new_posts_forum}</dd>
>    <dt><span class="sprite_statusicon_category_16"></span></dt><dd>{vb:rawphrase category_forum}</dd>
>    <dt><span class="sprite_statusicon_forum_link_16"></span></dt><dd>{vb:rawphrase link_forum}</dd>


Template: forumhome_forumbit_level2_nopost
3c3
<    <img src="{vb:stylevar imgdir_statusicon}/category_forum_{vb:raw forum.statusicon}.png" class="forumicon" id="forum_statusicon_{vb:raw forum.forumid}" alt="" />
---
>    <span id="forum_statusicon_{vb:raw forum.forumid}" class="forumicon sprite_statusicon_category_forum_{vb:raw forum.statusicon}"></span>


Template: forumhome_forumbit_level2_post
4c4
<    <img src="{vb:stylevar imgdir_statusicon}/{vb:raw forum.imageprefix}forum_{vb:raw forum.statusicon}-48.png" class="forumicon" id="forum_statusicon_{vb:raw forum.forumid}" alt="" />
---
>    <span id="forum_statusicon_{vb:raw forum.forumid}" class="forumicon sprite_statusicon_{vb:raw forum.imageprefix}forum_{vb:raw forum.statusicon}_48"></span>


Template: forumhome_lastpostby
3c3,11
<    <vb:if condition="$show['icon']"><img src="{vb:raw icon.iconpath}" alt="{vb:raw icon.title}" border="0" /></vb:if>
---
>    <vb:if condition="$show['icon']">
>    <vb:if condition="$lastpostinfo['lasticonid'] == -1">
>    <span class="sprite_misc_poll_posticon" title="{vb:raw icon.title}"></span>
>    <vb:elseif condition="$lastpostinfo['lasticonid'] == 0 && !empty($vbulletin->options['showdeficon'])" />
>    <span class="sprite_vbregistry_showdeficon" title="{vb:raw icon.title}"></span>
>    <vb:else />
>    <span class="sprite_icon_{vb:raw lastpostinfo.lasticonid}" title="{vb:raw icon.title}"></span>
>    </vb:if>
>    </vb:if>
6c14
<    <a href="{vb:link thread, {vb:raw threadinfo}, {vb:raw pageinfo_lastpost}}#post{vb:raw lastpostinfo.lastpostid}"><img src="{vb:stylevar imgdir_button}/lastpost-{vb:stylevar right}.png" alt="{vb:rawphrase go_to_last_post}" /></a>
---
>    <a href="{vb:link thread, {vb:raw threadinfo}, {vb:raw pageinfo_lastpost}}#post{vb:raw lastpostinfo.lastpostid}"><span class="sprite_button_lastpost_{vb:stylevar right}" title="{vb:rawphrase go_to_last_post}"></span></a>
18c26
<    <a href="{vb:link thread, {vb:raw threadinfo}, {vb:raw pageinfo_lastpost}}#post{vb:raw lastpostinfo.lastpostid}"><img src="{vb:stylevar imgdir_button}/lastpost-{vb:stylevar right}.png" alt="{vb:rawphrase go_to_last_post}" /></a>
---
>    <a href="{vb:link thread, {vb:raw threadinfo}, {vb:raw pageinfo_lastpost}}#post{vb:raw lastpostinfo.lastpostid}"><span class="sprite_button_lastpost_{vb:stylevar right}" title="{vb:rawphrase go_to_last_post}"></span></a>


Template: forumhome_subforumbit_nopost
2c2
<    <img class="inlineimg" src="{vb:stylevar imgdir_statusicon}/subforum_{vb:raw forum.statusicon}.png" alt="" border="0" id="forum_statusicon_{vb:raw forum.forumid}" />
---
>    <span id="forum_statusicon_{vb:raw forum.forumid}" class="inlineimg sprite_statusicon_subforum_{vb:raw forum.statusicon}"></span>


Template: forumhome_subforumbit_post
2c2
<    <img class="inlineimg" src="{vb:stylevar imgdir_statusicon}/{vb:raw forum.imageprefix}subforum_{vb:raw forum.statusicon}-48.png" alt="" border="0" id="forum_statusicon_{vb:raw forum.forumid}" />
---
>    <span id="forum_statusicon_{vb:raw forum.forumid}" class="inlineimg sprite_statusicon_{vb:raw forum.imageprefix}subforum_{vb:raw forum.statusicon}_48"></span>


Template: memberaction_dropdown
5c5
<    <img src="{vb:stylevar imgdir_siteicons}/profile.png" alt="" />
---
>    <span class="sprite_siteicons_profile"></span>
12c12
<    <img src="{vb:stylevar imgdir_siteicons}/forum.png" alt="" />
---
>    <span class="sprite_siteicons_forum"></span>
20c20
<    <img src="{vb:stylevar imgdir_siteicons}/message.png" alt="" />
---
>    <span class="sprite_siteicons_message"></span>
29c29
<    <img src="{vb:stylevar imgdir_siteicons}/blog.png" alt="" />
---
>    <span class="sprite_siteicons_blog"></span>
38c38
<    <img src="{vb:stylevar imgdir_siteicons}/homepage.png" alt="" />
---
>    <span class="sprite_siteicons_homepage"></span>
47c47
<    <img src="{vb:stylevar imgdir_siteicons}/article.png" alt="" />
---
>    <span class="sprite_siteicons_article"></span>
56c56
<    <img src="{vb:stylevar imgdir_siteicons}/add.png" alt="" />
---
>    <span class="sprite_siteicons_add"></span>
65c65
<    <img src="{vb:stylevar imgdir_siteicons}/email.png" alt="" />
---
>    <span class="sprite_siteicons_email"></span>
Also, if you intend on keeping the diff file... Please tell people they need to use something like tortoise svn to open the thing. I just so happened to have it still installed and windows basically said "use this"
Reply With Quote
  #26  
Old 07-17-2011, 10:42 PM
Mooff Mooff is offline
 
Join Date: Mar 2010
Posts: 301
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's meant to be read like this:
Code:
Template: forumhome_subforumbit_post
2c2
<    <img class="inlineimg" src="{vb:stylevar imgdir_statusicon}/{vb:raw forum.imageprefix}subforum_{vb:raw forum.statusicon}-48.png" alt="" border="0" id="forum_statusicon_{vb:raw forum.forumid}" />
---
>    <span id="forum_statusicon_{vb:raw forum.forumid}" class="inlineimg sprite_statusicon_{vb:raw forum.imageprefix}subforum_{vb:raw forum.statusicon}_48"></span>

translates into:

In template: forumhome_subforumbit_post
In Line 2 - search for
Code:
<img class="inlineimg" src="{vb:stylevar imgdir_statusicon}/{vb:raw forum.imageprefix}subforum_{vb:raw forum.statusicon}-48.png" alt="" border="0" id="forum_statusicon_{vb:raw forum.forumid}" />
and replace with
Code:
<span id="forum_statusicon_{vb:raw forum.forumid}" class="inlineimg sprite_statusicon_{vb:raw forum.imageprefix}subforum_{vb:raw forum.statusicon}_48"></span>

Hope that helps.


edit: You do not need any special program to open the diff file. Any editor is enough. It's plain text. Opening it via tortoise svn just adds color coding.
Reply With Quote
  #27  
Old 07-17-2011, 11:03 PM
final kaoss final kaoss is offline
 
Join Date: Apr 2006
Posts: 1,314
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

oh, I know what it translates into, infact I removed those extra >'s. Alot easier to copy now.

PHP Code:
TemplateFORUMHOME
72d72
<h3 class="blocksubhead"><img src="{vb:stylevar imgdir_misc}/users_online.png" alt="{vb:rawphrase currently_active_users}" />{vb:rawphrase currently_active_users}</h3>
---
<
h3 class="blocksubhead"><span class="sprite_misc_users_online" title="{vb:rawphrase currently_active_users}" ></span>{vb:rawphrase currently_active_users}</h3>
90c90
<h3 class="blocksubhead"><img src="{vb:stylevar imgdir_misc}/event.png" alt="{vb:rawphrase todays_events}" /><vb:if condition="$show['todaysevents']">{vb:rawphrase todays_events}<vb:else />{vb:rawphrase upcoming_events_for_the_next_x_days, {vb:raw vboptions.showevents}}</vb:if></h3>
---
<
h3 class="blocksubhead"><span class="sprite_misc_event" title="{vb:rawphrase todays_events}" ></span><vb:if condition="$show['todaysevents']">{vb:rawphrase todays_events}<vb:else />{vb:rawphrase upcoming_events_for_the_next_x_days, {vb:raw vboptions.showevents}}</vb:if></h3>
100c100
<h3 class="blocksubhead"><img src="{vb:stylevar imgdir_misc}/birthday.png" alt="{vb:rawphrase todays_birthdays}" />{vb:rawphrase todays_birthdays}</h3>
---
<
h3 class="blocksubhead"><span class="sprite_misc_birthday" title="{vb:rawphrase todays_birthdays}" ></span>{vb:rawphrase todays_birthdays}</h3>
109c109
<h3 class="blocksubhead"><img src="{vb:stylevar imgdir_misc}/forum_stats.png" alt="{vb:rawphrase x_statistics, {vb:raw vboptions.bbtitle}}" />{vb:rawphrase x_statistics, {vb:raw vboptions.bbtitle}}</h3>
---
<
h3 class="blocksubhead"><span class="sprite_misc_forum_stats" title="{vb:rawphrase x_statistics, {vb:raw vboptions.bbtitle}}" ></span>{vb:rawphrase x_statistics, {vb:raw vboptions.bbtitle}}</h3>
128c128
<h3 class="blocksubhead"><img src="{vb:stylevar imgdir_misc}/legend.png" alt="{vb:rawphrase icon_legend}" />{vb:rawphrase icon_legend}</h3>
---
<
h3 class="blocksubhead"><span class="sprite_misc_legend" title="{vb:rawphrase icon_legend}" ></span>{vb:rawphrase icon_legend}</h3>
131,134c131,134
<dt><img src="{vb:stylevar imgdir_statusicon}/forum_new-16.png" alt="{vb:rawphrase new_posts_forum}" /></dt><dd>{vb:rawphrase new_posts_forum}</dd>
<
dt><img src="{vb:stylevar imgdir_statusicon}/forum_old-16.png" alt="{vb:rawphrase no_new_posts_forum}" /></dt><dd>{vb:rawphrase no_new_posts_forum}</dd>
<
dt><img src="{vb:stylevar imgdir_statusicon}/category-16.png" alt="{vb:rawphrase category_forum}" /></dt><dd>{vb:rawphrase category_forum}</dd>
<
dt><img src="{vb:stylevar imgdir_statusicon}/forum_link-16.png" alt="{vb:rawphrase link_forum}" /></dt><dd>{vb:rawphrase link_forum}</dd>
---
<
dt><span class="sprite_statusicon_forum_new_16"></span></dt><dd>{vb:rawphrase new_posts_forum}</dd>
<
dt><span class="sprite_statusicon_forum_old_16"></span></dt><dd>{vb:rawphrase no_new_posts_forum}</dd>
<
dt><span class="sprite_statusicon_category_16"></span></dt><dd>{vb:rawphrase category_forum}</dd>
<
dt><span class="sprite_statusicon_forum_link_16"></span></dt><dd>{vb:rawphrase link_forum}</dd>


Templateforumhome_forumbit_level2_nopost
3c3
<img src="{vb:stylevar imgdir_statusicon}/category_forum_{vb:raw forum.statusicon}.png" class="forumicon" id="forum_statusicon_{vb:raw forum.forumid}" alt="" />
---
<
span id="forum_statusicon_{vb:raw forum.forumid}" class="forumicon sprite_statusicon_category_forum_{vb:raw forum.statusicon}"></span>


Templateforumhome_forumbit_level2_post
4c4
<img src="{vb:stylevar imgdir_statusicon}/{vb:raw forum.imageprefix}forum_{vb:raw forum.statusicon}-48.png" class="forumicon" id="forum_statusicon_{vb:raw forum.forumid}" alt="" />
---
<
span id="forum_statusicon_{vb:raw forum.forumid}" class="forumicon sprite_statusicon_{vb:raw forum.imageprefix}forum_{vb:raw forum.statusicon}_48"></span>


Templateforumhome_lastpostby
3c3
,11
<vb:if condition="$show['icon']"><img src="{vb:raw icon.iconpath}" alt="{vb:raw icon.title}" border="0" /></vb:if>
---
<
vb:if condition="$show['icon']">
<
vb:if condition="$lastpostinfo['lasticonid'] == -1">
<
span class="sprite_misc_poll_posticon" title="{vb:raw icon.title}"></span>
<
vb:elseif condition="$lastpostinfo['lasticonid'] == 0 && !empty($vbulletin->options['showdeficon'])" />
<
span class="sprite_vbregistry_showdeficon" title="{vb:raw icon.title}"></span>
<
vb:else />
<
span class="sprite_icon_{vb:raw lastpostinfo.lasticonid}" title="{vb:raw icon.title}"></span>
</
vb:if>
</
vb:if>
6c14
<a href="{vb:link thread, {vb:raw threadinfo}, {vb:raw pageinfo_lastpost}}#post{vb:raw lastpostinfo.lastpostid}"><img src="{vb:stylevar imgdir_button}/lastpost-{vb:stylevar right}.png" alt="{vb:rawphrase go_to_last_post}" /></a>
---
<
a href="{vb:link thread, {vb:raw threadinfo}, {vb:raw pageinfo_lastpost}}#post{vb:raw lastpostinfo.lastpostid}"><span class="sprite_button_lastpost_{vb:stylevar right}" title="{vb:rawphrase go_to_last_post}"></span></a>
18c26
<a href="{vb:link thread, {vb:raw threadinfo}, {vb:raw pageinfo_lastpost}}#post{vb:raw lastpostinfo.lastpostid}"><img src="{vb:stylevar imgdir_button}/lastpost-{vb:stylevar right}.png" alt="{vb:rawphrase go_to_last_post}" /></a>
---
<
a href="{vb:link thread, {vb:raw threadinfo}, {vb:raw pageinfo_lastpost}}#post{vb:raw lastpostinfo.lastpostid}"><span class="sprite_button_lastpost_{vb:stylevar right}" title="{vb:rawphrase go_to_last_post}"></span></a>


Templateforumhome_subforumbit_nopost
2c2
<img class="inlineimg" src="{vb:stylevar imgdir_statusicon}/subforum_{vb:raw forum.statusicon}.png" alt="" border="0" id="forum_statusicon_{vb:raw forum.forumid}" />
---
<
span id="forum_statusicon_{vb:raw forum.forumid}" class="inlineimg sprite_statusicon_subforum_{vb:raw forum.statusicon}"></span>


Templateforumhome_subforumbit_post
2c2
<img class="inlineimg" src="{vb:stylevar imgdir_statusicon}/{vb:raw forum.imageprefix}subforum_{vb:raw forum.statusicon}-48.png" alt="" border="0" id="forum_statusicon_{vb:raw forum.forumid}" />
---
<
span id="forum_statusicon_{vb:raw forum.forumid}" class="inlineimg sprite_statusicon_{vb:raw forum.imageprefix}subforum_{vb:raw forum.statusicon}_48"></span>


Templatememberaction_dropdown
5c5
<img src="{vb:stylevar imgdir_siteicons}/profile.png" alt="" />
---
<
span class="sprite_siteicons_profile"></span>
12c12
<img src="{vb:stylevar imgdir_siteicons}/forum.png" alt="" />
---
<
span class="sprite_siteicons_forum"></span>
20c20
<img src="{vb:stylevar imgdir_siteicons}/message.png" alt="" />
---
<
span class="sprite_siteicons_message"></span>
29c29
<img src="{vb:stylevar imgdir_siteicons}/blog.png" alt="" />
---
<
span class="sprite_siteicons_blog"></span>
38c38
<img src="{vb:stylevar imgdir_siteicons}/homepage.png" alt="" />
---
<
span class="sprite_siteicons_homepage"></span>
47c47
<img src="{vb:stylevar imgdir_siteicons}/article.png" alt="" />
---
<
span class="sprite_siteicons_article"></span>
56c56
<img src="{vb:stylevar imgdir_siteicons}/add.png" alt="" />
---
<
span class="sprite_siteicons_add"></span>
65c65
<img src="{vb:stylevar imgdir_siteicons}/email.png" alt="" />
---
<
span class="sprite_siteicons_email"></span
Reply With Quote
  #28  
Old 07-17-2011, 11:52 PM
final kaoss final kaoss is offline
 
Join Date: Apr 2006
Posts: 1,314
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Also, why isn't the logo added in this list? I'm sure everyone keeps the same logo name. Also I've done some testing and the page loading speed, requests & bytes in (tested with wepbagetest.org and my browsers) are roughly the same without this mod installed.

Also, I notice that on the test skin, the images are forced to reload, ignoring the cache settings that I put in my htaccess. And when I clear my cookies and view the regular skin, they cache fine (according to my browser, webpagetest.org and yslow). You should look into that and I think this is what's causing it.

Add ReadMarker Javascript



Code:
/images/misc/vbulletin4_logo.png
Reply With Quote
  #29  
Old 07-18-2011, 06:00 AM
giorgino giorgino is offline
 
Join Date: Dec 2009
Posts: 122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great great mod, but without forum custom icon support is useless for me
Reply With Quote
  #30  
Old 07-18-2011, 07:08 AM
Osbes Osbes is offline
 
Join Date: Jul 2008
Posts: 106
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello extreme-gaming,

no problem, i putted up the template changes in codeboxes again

The extra > and < is to indicate what should be replaced by what, but i understand that it is a little unhandy, if you want to select-copy-replace multiple lines.

I am adding icons step by step. Thats why the Logo is currently not added.

It is weird, that you didnt noticed a significant drop in the requests, using the addon. Can you send me a link, so i can try your implementation in the test skin?


I think you set the expires entity-header and cache-control header in your htaccess for images, right? This should behave totally independent to my addon.

I just double checked this an its working correct on our forum.

My Browsers sends:
Code:
GET /images/sprites/sprite.png HTTP/1.1
If-Modified-Since: Sun, 17 Jul 2011 21:49:42 GMT
and gets as response
Code:
HTTP/1.1 304 Not Modified
and then he loads the file from the browser-cache.

So that this isnt working on your forum seems also a little bit weird. Please send me a link, so i can check this in your test skin and the corresponding .httacces file, so i can check your cache settings.

Best regards
Sebastian
Reply With Quote
  #31  
Old 07-18-2011, 07:16 AM
Osbes Osbes is offline
 
Join Date: Jul 2008
Posts: 106
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by giorgino View Post
Great great mod, but without forum custom icon support is useless for me
Hi giorgino,

what do you mean by forum custom icon? We suppport forumicons with imageprefix and - since this is the main concepts of this addon - customised forumicons since the first release.

Check Sprites like:

or


Best regards
Sebastian
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 01:56 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.05515 seconds
  • Memory Usage 2,474KB
  • 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
  • (7)bbcode_code
  • (1)bbcode_php
  • (4)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