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)

Osbes 08-03-2011 08:39 PM

Hello extreme-gaming,

Quote:

Originally Posted by extreme-gaming (Post 2228903)
Also this really needs to be changed for people who have images on subdomains/cdn's like myself. Because I tried to add

http://i1.vgchat.info/ to the sprite stylevars since thats the only way I know of to point it there while the forum is sitting on

It is impossible write the contet via HTTP, since this is a read-only access.

So you can't use an URL within the styleVar imgdir_sprite as long as you refresh the sprite. After this you can move the sprite to every folder you like and change the StyleVar.

If you are using a CDN correctly, it will synchronize your folder, so there is no need to set an URL for this StyleVar. Suppport for CDN is added since 0.6.2 and is proven by other users to work.

If you are using "Domain Sharding" you can set the correct relative path based from the forum-path to your icons.

Best regards
Sebastian

Osbes 08-03-2011 08:44 PM

Hello steeler7,

please provide us with more information, which images are missing? have you made the template changes and refresh the sprite? can you provide us with your forum url, so we can look at it ourself?

Best regards
Sebastian

steeler7 08-03-2011 08:49 PM

Quote:

Originally Posted by Osbes (Post 2228929)
Hello steeler7,

please provide us with more information, which images are missing? have you made the template changes and refresh the sprite? can you provide us with your forum url, so we can look at it ourself?

Best regards
Sebastian

www.pittsburghsportstavern.com/forum

the images missing look to be statusicons, subforum and forum variety it looks like, last post arrow ...

I did make all of the Template changes (can't guarantee I didn't make a mistake along the way. That was a lot of Editing) and then I ran a refresh of the sprite.

Thanks!

final kaoss 08-03-2011 08:51 PM

Hi, I need more info about how to do this because every time I tried it didn't recognise the new place... for example..

Code:

/home/vgchat/public_html/forum/i1/pagination/next-left.png (with bburl_path / ) does not exist or is not readable.
/home/vgchat/public_html/forum/i1/pagination/previous-right.png (with bburl_path / ) does not exist or is not readable.
/home/vgchat/public_html/forum/i1/pagination/previous-left.png (with bburl_path / ) does not exist or is not readable.
/home/vgchat/public_html/forum/i1/pagination/first-right.png (with bburl_path / ) does not exist or is not readable.
/home/vgchat/public_html/forum/i1/pagination/first-left.png (with bburl_path / ) does not exist or is not readable.
/home/vgchat/public_html/forum/i1/misc/black_downward_arrow.png (with bburl_path / ) does not exist or is not readable.
/home/vgchat/public_html/forum/i1/misc/tag.png (with bburl_path / ) does not exist or is not readable.
/home/vgchat/public_html/forum/i1/misc/expires.gif (with bburl_path / ) does not exist or is not readable.
/home/vgchat/public_html/forum/i1/misc/moderated_small.gif (with bburl_path / ) does not exist or is not readable.
/home/vgchat/public_html/forum/i1/misc/trashcan_small.gif (with bburl_path / ) does not exist or is not readable.
/home/vgchat/public_html/forum/i1/misc/paperclip.png (with bburl_path / ) does not exist or is not readable.
/home/vgchat/public_html/forum/i1/misc/subscribed.png (with bburl_path / ) does not exist or is not readable.
/home/vgchat/public_html/forum/i1/misc/sticky.gif (with bburl_path / ) does not exist or is not readable.
/home/vgchat/public_html/forum/i1/buttons/sortarrow-asc.png (with bburl_path / ) does not exist or is not readable.
/home/vgchat/public_html/forum/i1/buttons/sortarrow-desc.png (with bburl_path / ) does not exist or is not readable.

Quote:

Originally Posted by Osbes (Post 2228926)
Hello extreme-gaming,



It is impossible write the contet via HTTP, since this is a read-only access.

So you can't use an URL within the styleVar imgdir_sprite as long as you refresh the sprite. After this you can move the sprite to every folder you like and change the StyleVar.

If you are using a CDN correctly, it will synchronize your folder, so there is no need to set an URL for this StyleVar. Suppport for CDN is added since 0.6.2 and is proven by other users to work.

If you are using "Domain Sharding" you can set the correct relative path based from the forum-path to your icons.

Best regards
Sebastian


Osbes 08-03-2011 08:54 PM

Hello steeler7,

i think you got a typo in your changes.

on your site it reads:

Code:

<span class="forumicon sprite_statusicon_1/forum_old_48" id="forum_statusicon_2"></span>
but the "1/" is wrong, it should read

Code:

<span class="forumicon sprite_statusicon_forum_old_48" id="forum_statusicon_2"></span>
So please remove the 1/

Best regards
Sebastian

Osbes 08-03-2011 09:03 PM

Hello extreme-gaming,

If i understand you right, i can access your file via

http://vgchat.info/forum/../i1/pagination/next-left.png

and

http://vgchat.info/forum/

is your forum url?

Than please use

Code:

../i1/pagination
you could even use a URL like

Code:

http://vgchat.info/i1/pagination
or

Code:

http://i1.vgchat.info/pagination
for this stylevar.

For the imgdir_sprite StyleVar, you must use a relative path like

Code:

../i1/sprites
Best regards
Sebastian

final kaoss 08-03-2011 09:23 PM

alright I'll try that & unfortunately hostgator won't upgrade their GD version. Is there any chance this thing can use imagemagik?

Quote:

Greetings,

Thank you for the verification. Unfortunately upgrading the GD Library version that is installed on your server is something we are unable to do. The process of doing so would impact the availability of every website on the server. If it's absolutely critical that this library be upgraded, your only available options would be to upgrade your hosting to a VPS or Dedicated plan where you would have root access to your server to administer as you wish.
If you have any more questions please let us know.
Cheers,

Charles G
Linux Systems Administrator
HostGator.com LLC
http://support.hostgator.com
They even bumped it saying...

Quote:

Hello,

It is unlikely that the GD library would be upgraded in shared server environment. The version on the server is the version released with CentOS 5, and in general packages on CentOS/RedHat do not get version upgrades until the next major operating system release.


Best regards,

James Boothe
Linux Systems Administrator
HostGator.com LLC
http://support.hostgator.com

Osbes 08-03-2011 09:36 PM

Hello extreme-gaming,

delicious answer "fixing a security risk is not an option", so i will never use this hoster.

As a work around you can save all images with png 8-bit grey as png rgba color.

Best regards
Sebastian

final kaoss 08-03-2011 09:40 PM

and how exactly am I supposed to do that... I have 4000 images, I need an automated solution if this this is the only work around.

Quote:

Originally Posted by Osbes (Post 2228954)
Hello extreme-gaming,

delicious answer "fixing a security risk is not an option", so i will never use this hoster.

As a work around you can save all images with png 8-bit grey as png rgba color.

Best regards
Sebastian


Osbes 08-03-2011 09:43 PM

Hello archet1337,

i will make an example for

Code:

.highslide-loading {
        background-image: url(graphics/loader.white.gif);

If there isnt any additional padding, margin, width, ... via CSS, the code f?r the files-array is:

PHP Code:

$files[] = array(
    
'path'    => 'graphics/loader.white.gif',
    
'css'     => 'graphics_loader_white',
    
'background' => true
); 

After this, add to

Code:

class="highslide-loading ..."
the sprite class

Code:

class="sprite_custom_graphics_loader_white highslide-loading ..."
after this, remove the

Code:

background-image: url(graphics/loader.white.gif);
from the css-rule highslide-loading.

if the css-rule is now empty, you can of course erase the highslide-loading from

Code:

class="sprite_custom_graphics_loader_white highslide-loading ..."
Please note, that you need to use an own sprite-image if you want to use gradients.

Best regards
Sebastian


All times are GMT. The time now is 01:36 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.01580 seconds
  • Memory Usage 1,766KB
  • 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
  • (12)bbcode_code_printable
  • (1)bbcode_php_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