vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Board Optimization - United-Forum CSS Sprites - ludicrous speed - NOW! (https://vborg.vbsupport.ru/showthread.php?t=266696)

raymondblog 01-18-2012 09:53 AM

A quick question.
While I was manually making the changes, I found that some of the lines which I should removed has been updated.

For example, at pagenav template:

Change this:

Quote:

<span class="first_last"><a href="{vb:raw lastaddress}{vb:raw address2}<vb:if condition="$show['pagelinks']"><vb:if condition="$use_qmark">?<vb:else />&amp;</vb:if>page={vb:raw totalpages}</vb:if><vb:if condition="$anchor">#{vb:raw anchor}</vb:if>" title="{vb:rawphrase last_page} - {vb:rawphrase results_x_to_y_of_z, {vb:raw lastnumbers.first}, {vb:raw lastnumbers.last}, {vb:raw total}}">{vb:rawphrase last}<img src="{vb:stylevar imgdir_pagination}/last-{vb:stylevar right}.png" alt="{vb:rawphrase last}" /></a></span>
To this:

Quote:

<span class="first_last"><a href="{vb:raw lastaddress}{vb:raw address2}<vb:if condition="$show['pagelinks']"><vb:if condition="$use_qmark">?<vb:else />&amp;</vb:if>page={vb:raw totalpages}</vb:if><vb:if condition="$anchor">#{vb:raw anchor}</vb:if>" title="{vb:rawphrase last_page} - {vb:rawphrase results_x_to_y_of_z, {vb:raw lastnumbers.first}, {vb:raw lastnumbers.last}, {vb:raw total}}">{vb:rawphrase last}<span class="pagination_last" title="{vb:rawphrase last}"></span></a></span>
However, the original code has been updated to the following:

Quote:

<span class="first_last"><a href="{vb:raw lastaddress}<vb:if condition="$show['pagelinks']"><vb:if condition="$use_qmark">?</vb:if><vb:if condition="$use_amp">&amp;</vb:if>page={vb:raw totalpages}</vb:if>{vb:raw address2}<vb:if condition="$anchor">#{vb:raw anchor}</vb:if>" title="{vb:rawphrase last_page} - {vb:rawphrase results_x_to_y_of_z, {vb:raw lastnumbers.first}, {vb:raw lastnumbers.last}, {vb:raw total}}">{vb:rawphrase last}<img src="{vb:stylevar imgdir_pagination}/last-{vb:stylevar right}.png" alt="{vb:rawphrase last}" /></a></span>
Question is, should I replace the code or not?

Osbes 01-18-2012 11:48 AM

Hello raymondblog,

you are correct, the current replace-rules are not defined for vBulletin 4.1.10.

To gain the speedup using sprites you need to change the following part of the current original code:

Replace
Code:

<img src="{vb:stylevar imgdir_pagination}/last-{vb:stylevar right}.png" alt="{vb:rawphrase last}" />
with

Code:

<span class="pagination_last" title="{vb:rawphrase last}">
We are currently testing the upcomming version of our addon on our live forum for admins only (since we are doing virtual template edits, we can easily adjust our changes based on whatever we consider correct without actually changing the template) and in the next days, we will activate the virtual template changes for everyone.

Since vBulletin 4.1.10 is currently not available on vbulletin-germany.com, it will took at least 1-2 weeks until Mooff or me will upload the current version here, based on the assumption, that vBulletin 4.1.10 will be available within this week on the offi. german vBulletin site.

Best regards
Osbes

raymondblog 01-18-2012 12:14 PM

Thanks for the prompt response.

I actually found out that there were a few more that has been updated and require to manually update the code.

At least I understand the logic of this mod.

Love this mod, but hate TMS :P
I've actually installed this mod before but then removed because TMS was a little too confusing.
So I thought I should do it manually this time.

heartsglad 01-18-2012 02:25 PM

Hi,
I am interested in this Mod, but wanted to clear this question fist:
Can I Install it without installing TMS. If yes What changes in which template must I do? (I am Using VB 4.1.9 )

In downloaded folder "do_not_upload" I read Template changes file. The changes in that file were till Mod Version 0.7.1 . The latest MOD is 0.7.2.

Thanks in advance

Mfg,
Hearsglad

Osbes 01-18-2012 02:41 PM

Hello heartsglad,
first of all, if you currently doesnt use this addon, i would advise you to wait for our next version, assuming that you will updat yout forum to vB 4.1.10, since we requested a hook, which is implemented in vB 4.1.10 and gives us the possibility to automatically change the template without any manual changes or TMS needed.

If you dont want to wait and dont want to use the TMS, you need to make all the template changes that are listet in the "TEMPLATE_CHANGES" file in the "do_not_upload" folder. There are no changes for 0.7.2 since this version doenst introduces new changes but fixed some bugs.

So since you need to revert every of this changes for using the next version with its automatically changes, i advise you to wait until than. we are currently testing it in our live forum (see my last post), but we need to wait until vbulletin-germany.com releases vB 4.1.10 to make the last tests and upload it here.

Best regards
Sebastian

raymondblog 01-19-2012 09:16 AM

I've tried my best to replace the ones that are not exactly the same as in the diff file but near identical. However the ones below are not found at all. Any help would be much appreciated.

Quote:

Template: FORUMDISPLAY
396,397c395,396
< <dt><img src="{vb:stylevar imgdir_statusicon}/thread_new-16.png" alt="{vb:rawphrase new_posts}" /></dt><dd>{vb:rawphrase new_posts}</dd>
< <dt><img src="{vb:stylevar imgdir_statusicon}/thread-16-{vb:stylevar right}.png" alt="{vb:rawphrase no_new_posts}" /></dt><dd>{vb:rawphrase no_new_posts}</dd>
---
> <dt><span class="sprite_statusicon_thread_new_16" title="{vb:rawphrase new_posts}"></span></dt><dd>{vb:rawphrase new_posts}</dd>
> <dt><span class="sprite_statusicon_thread_16" title="{vb:rawphrase no_new_posts}"></span></dt><dd>{vb:rawphrase no_new_posts}</dd>
399,400c398,399
< <dt><img src="{vb:stylevar imgdir_statusicon}/thread_hot_new-16.png" alt="{vb:rawphrase more_than_x_replies_or_y_views, {vb:raw vboptions.hotnumberposts}, {vb:raw vboptions.hotnumberviews}}" /></dt><dd>{vb:rawphrase hot_thread_with_new_posts}</dd>
< <dt><img src="{vb:stylevar imgdir_statusicon}/thread_hot-16.png" alt="{vb:rawphrase more_than_x_replies_or_y_views, {vb:raw vboptions.hotnumberposts}, {vb:raw vboptions.hotnumberviews}}" /></dt><dd>{vb:rawphrase hot_thread_with_no_new_posts}</dd>
---
> <dt><span class="sprite_statusicon_thread_hot_new_16" title="{vb:rawphrase more_than_x_replies_or_y_views, {vb:raw vboptions.hotnumberposts}, {vb:raw vboptions.hotnumberviews}}"></span></dt><dd>{vb:rawphrase hot_thread_with_new_posts}</dd>
> <dt><span class="sprite_statusicon_thread_hot_16" title="{vb:rawphrase more_than_x_replies_or_y_views, {vb:raw vboptions.hotnumberposts}, {vb:raw vboptions.hotnumberviews}}"></span></dt><dd>{vb:rawphrase hot_thread_with_no_new_posts}</dd>
402,403c401,402
< <dt><img src="{vb:stylevar imgdir_statusicon}/thread_lock-16.png" alt="{vb:rawphrase closed_thread}" /></dt><dd>{vb:rawphrase thread_is_closed}</dd>
< <dt><img src="{vb:stylevar imgdir_statusicon}/thread_dot-16-{vb:stylevar right}.png" alt="{vb:rawphrase thread_contains_a_message_written_by_you}" /></dt><dd>{vb:rawphrase you_have_posted_in_this_thread}</dd>
---
> <dt><span class="sprite_statusicon_thread_lock_16" title="{vb:rawphrase closed_thread}"></span></dt><dd>{vb:rawphrase thread_is_closed}</dd>
> <dt><span class="sprite_statusicon_thread_dot_16" title="{vb:rawphrase thread_contains_a_message_written_by_you}"></span></dt><dd>{vb:rawphrase you_have_posted_in_this_thread}</dd>


Template: navbar
134c125
< <span class="buttoncontainer"><span><input type="image" class="searchbutton" src="{vb:stylevar imgdir_button}/search<vb:if condition="$stylevar['textdirection'] == 'rtl'">_rtl</vb:if>.<vb:if condition="(is_browser('ie') AND !is_browser('ie', 7) AND !is_browser('ie', 8))">gif<vb:else />png</vb:if>" name="submit" onclick="document.getElementById('navbar_search'). submit;" tabindex="100"/></span></span>
---
> <span class="buttoncontainer"><span><input type="submit" class="sprite_button_search searchbutton" name="submit" value="" tabindex="100"/></span></span>

## Version 0.6.0 ##

Template: FORUMHOME
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>



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>



## Version 0.5.0 ##

Template: FORUMHOME
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_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>

Osbes 01-19-2012 09:23 AM

I am currently quite busy, therefor i can only give you a rather short answer for a problem that i sees immediately.

Template: forumhome_subforumbit_nopost
and
Template: forumhome_subforumbit_post

got merged by vBulletin to

Template: forumhome_subforums

###

Template: memberaction_dropdown
Seems to be in vBulletin 4.1.9 an i also found the icons (since i replaced them yesterday by our sprite). Dunno if they are missing in vBulletin 4.1.10 o are moved like the template forumhome_subforums, since - as you know - vB 4.1.10 is still not availible in vb-germany.com

Best regards
Sebastian

raymondblog 01-19-2012 11:13 AM

I just checked memberaction_dropdown and I believe the code to call the images are still there. However it is heavily modified and uses "class" to call the images.

Thanks, you guys deserves a donation from me. Let me try to get this sorted out first. Great job!

raymondblog 01-19-2012 12:02 PM

My forum @ http://www.raymond.cc/forum/

An update on the manual changes.
Some of them are not found because I manually removed the code because I found them unnecessary to load.

Now the only thing left is these codes which I couldn't figure it out how to make it work on my forum that is using a custom skin.

Quote:

Template: navbar
134c125
< <span class="buttoncontainer"><span><input type="image" class="searchbutton" src="{vb:stylevar imgdir_button}/search<vb:if condition="$stylevar['textdirection'] == 'rtl'">_rtl</vb:if>.<vb:if condition="(is_browser('ie') AND !is_browser('ie', 7) AND !is_browser('ie', 8))">gif<vb:else />png</vb:if>" name="submit" onclick="document.getElementById('navbar_search'). submit;" tabindex="100"/></span></span>
---
> <span class="buttoncontainer"><span><input type="submit" class="sprite_button_search searchbutton" name="submit" value="" tabindex="100"/></span></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>

Gn_Snake 01-19-2012 01:56 PM

Quote:

first of all, if you currently doesnt use this addon, i would advise you to wait for our next version, assuming that you will updat yout forum to vB 4.1.10, since we requested a hook, which is implemented in vB 4.1.10 and gives us the possibility to automatically change the template without any manual changes or TMS needed.
Hello,
i am interested in this Mod, but i have installed vb4.1.10 and wait for the new version for this Mod.

You can find out when it happens?

Thanks
Alessandro


All times are GMT. The time now is 08:27 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01792 seconds
  • Memory Usage 1,801KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete