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)

steeler7 08-12-2011 03:16 PM

Quote:

Originally Posted by Osbes (Post 2232610)
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:

Code:

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" 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" title="{vb:rawphrase go_to_last_post}"></span></a>

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 :

Quote:

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.

Osbes 08-12-2011 04:15 PM

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

steeler7 08-12-2011 08:46 PM

Quote:

Originally Posted by Osbes (Post 2232685)
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 :

Quote:

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 :D, but I figured posting this for you and others just in case anyone else happens to run into this issue

FReeSTER 08-13-2011 01:10 AM

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?

FReeSTER 08-13-2011 04:38 AM

damn the more I try with this mod the more problems I get. errr

Osbes 08-13-2011 07:38 AM

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

Code:

Template: block_blogentries
5c5
<    <img src="{vb:stylevar imgdir_cms}/widget-blog.png" alt="" />
---
>    <span class="cms_widget_blog"></span>

It would mean

replace
Code:

<img src="{vb:stylevar imgdir_cms}/widget-blog.png" alt="" />
with
Code:

<span class="cms_widget_blog"></span>
Best regards
Sebastian

kingMOB 08-13-2011 03:22 PM

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.

Mooff 08-13-2011 03:28 PM

nvm.

Osbes 08-13-2011 03:39 PM

Hello kingMOB,

the addon has internally vBulletin 4.1.3 and above as depency.

product-sprite-0.7.2.xml
Code:

<dependency dependencytype="vbulletin" minversion="4.1.3" maxversion="" />
You can change this to
Code:

<dependency dependencytype="vbulletin" minversion="4.0.8" maxversion="" />
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

FReeSTER 08-14-2011 02:23 AM

Quote:

Originally Posted by Osbes (Post 2232915)
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

Code:

Template: block_blogentries
5c5
<    <img src="{vb:stylevar imgdir_cms}/widget-blog.png" alt="" />
---
>    <span class="cms_widget_blog"></span>

It would mean

replace
Code:

<img src="{vb:stylevar imgdir_cms}/widget-blog.png" alt="" />
with
Code:

<span class="cms_widget_blog"></span>
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

https://vborg.vbsupport.ru/external/2011/08/33.jpg


All times are GMT. The time now is 11:40 PM.

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.01379 seconds
  • Memory Usage 1,798KB
  • 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
  • (9)bbcode_code_printable
  • (5)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