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)

Mooff 08-03-2011 09:44 PM

You clearly do not have 4000 8-bit grey images on your server.

Aside that won't fix your 'CDN' problem. All it does fix is pictures looking strange in the sprite (in most cases the attachment icon).

Osbes 08-03-2011 09:48 PM

Quote:

Originally Posted by extreme-gaming (Post 2228956)
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.

Hello extreme-gaming,

have you this problem with every image? Since this is greyscale format you shouldnt have this issue with colored images, this would be weird/impossible.

I thought you have this problem just with a few images - like everyone else from who i know about this problem - so it would be possible to make it manually.

I didnt have a automatic solution for something like this at my hand (since image conversion is way beyond the scope of this addon), so i can just advise you to search for an solution (maybe based on a different image-library) and share it with us :)

Best regards
Sebastian

final kaoss 08-03-2011 09:50 PM

1 Attachment(s)
Excuse me but you have no idea how many images I have, tyvm.

Quote:

Originally Posted by Mooff (Post 2228958)
You clearly do not have 4000 8-bit grey images on your server.

Aside that won't fix your 'CDN' problem. All it does fix is pictures looking strange in the sprite (in most cases the attachment icon).


Osbes 08-03-2011 09:52 PM

Hello extreme-gaming,

if you have the whole directory on a windows based system, you can use a gui with like ifranview with batch conversion to do this automaticlly.

Best regards
Sebastian

Mooff 08-03-2011 09:53 PM

Oh come on, you do not have 4000 8-bit grey images on your server.

Aside, you missed the important part of my post.

This won't fix your CDN problem. I won't. They are not related at all. Not. Nada. None.


edit: I fixed my post. Maybe you will see it now.
edit: dude, this is fun. I linked my fix. Maybe you can link me to show how you use 8-bit greyscale pictures to show colors. Or is your site some black, white and grey paradise?

final kaoss 08-03-2011 09:56 PM

I'll say it again. You have no idea how many images I have, what I use them for etc and so on. You have no idea if and how I choose to modify my images.. You need to learn not to put your nose where it doesn't belong. Let's end this argument now.

edit: I fixed my post. Maybe you will see it now.

Quote:

Originally Posted by Mooff (Post 2228964)
Oh come on, you do not have 4000 8-bit grey images on your server.

Aside, you missed the important part of my post.

This won't fix your CDN problem. I won't. They are not related at all. Not. Nada. None.


Osbes 08-03-2011 10:06 PM

Quote:

Originally Posted by Crotan (Post 2228890)
Just noticed in the 0.7.1 zip file, the product xml that is included in there is still 0.7.0a, or atleast the version id wasn't updated to reflect the new version.

the separate xml seems to be updated but I just downloaded the zip file since it includes both

Hello Crotan,

thanks for the notice. Fox told me this yesterday on vBGo, this should be fixed since then. I just checked it again, but it seems to be 0.7.1, so i assume that this is fixed.

Best regards
Sebastian

steeler7 08-03-2011 10:50 PM

Quote:

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

The 1/ is my statusicon folder. I have a bunch of different status icons organized into seperate folders and in the Forums section, editing the Forums, I indicate what folder of Icons I want for that Forum with a XX/ .

Using Firebug it shows all of the missing Icons like you mentioned but with different numbers which are indicating the different folders those images sit in.

Thanks!

archet1337 08-04-2011 04:00 AM

Quote:

Originally Posted by Osbes (Post 2228957)
Hello archet1337,

i will make an example for

Code:

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

////////////

Best regards
Sebastian

Thank you! I will have a go at it when I get back from work.

Regards,
Archet

Osbes 08-04-2011 04:47 AM

Hello steeler7,

if i understand you correctly you are using folders for the Prefix for Forum Status Images in the AdminCP?

Best regards
Sebastian

DragonByte Tech 08-04-2011 04:48 AM

EDIT: Nevermind, the AdminCP file wasn't properly overwritten.

PS: the Settings link reads "Einstellungen" - pretty sure that's not English ;)


Fillip

Taurus1 08-04-2011 10:25 AM

This looks fantastic. Before I commence with installation, just one thing please. I don't quite understand which template edits to do in the diffs file. All those in there? Or just the 2 for version 0.7.1?

Mooff 08-04-2011 10:48 AM

All of them.

You need to edit every template where you want to use the sprite instead of images.
I would advise to install the TMS though, then the edits will be done during the install automatically. Manual editing takes some time since we support (not sure about the exact number) a huge load of pictures right now.

Taurus1 08-04-2011 11:10 AM

Quote:

Originally Posted by Mooff (Post 2229193)
All of them.

You need to edit every template where you want to use the sprite instead of images.
I would advise to install the TMS though, then the edits will be done during the install automatically. Manual editing takes some time since we support (not sure about the exact number) a huge load of pictures right now.

:eek: I have more than 30 skins installed! I installed TMS now. Was waiting for the update though. Busy installing this now. Thanks.

Taurus1 08-04-2011 11:23 AM

How long does it take to create the sprites? OK, I know I have a lot of skins installed, but it has been running for about 10 minutes now, and only 2 sprites have been created thus far.

Taurus1 08-04-2011 11:57 AM

OK, I am getting the connection was reset error everytime I run the Refresh. It runs for about 20 minutes and then times out. Please advise.

Osbes 08-04-2011 12:08 PM

Hello Taurus1,

i will change this in 0.7.2 so that he creates one sprites, than redirect to create antoher sprite and so one.

So it will be no problem for forums with a huge amount of styles :)

Best regards
Sebastian

Taurus1 08-04-2011 12:14 PM

Thank you for the quick response Sebastian! So at this stage can I just continue hitting the refresh until all is done? And will it only create the contents of the templates when all sprites have been created? Because I see at this stage none of the templates has any contents in.
OH, and will this have an affect on my CND? Sorry for all the questions!

Taurus1 08-04-2011 12:19 PM

OK, it seems to have finished now, but none of the css templates has any content inside, and now all my styles have no icons. What should I do now?? Please help!

Mooff 08-04-2011 12:25 PM

There should be debug messages during sprite creation. Did any error show up there?

Please send us those messages.

Osbes 08-04-2011 12:35 PM

This addon support CDNs since 0.6.2

After one sprite (and the rtl version) is created, it should fill the corresponding CSS file like sprite-main.css with content.

Just like Mooff said, please sead us the messages that are shown after the refresh of the sprites :)

Best regards
Sebastian

Taurus1 08-04-2011 12:36 PM

Quote:

Originally Posted by Mooff (Post 2229232)
There should be debug messages during sprite creation. Did any error show up there?

Please send us those messages.

There was no messages. When I clicked Refresh nothing actually showed, I could just see that something was going on, as it said 'Connecting' and it was circling on top of my browser. I could see the sprites being created on my server. But after about 20 minutes my ACP would just give me the time out error. I clicked the Refresh link again, and the same thing happened again. After doing it a third time, right at the end it did display a page with some info on, but I did not save or keep that unfortunately. My bad....sorry!:(
I disabled it for now, just to get my forum looking OK again.

sivaganeshk 08-04-2011 01:31 PM

I have different images for statusicon (for categories), can this mod can convert it to css Sprites ??

my forum : collegers.net (guess sharing d link is allowed )

Mooff 08-04-2011 01:39 PM

@Taurus1
I can't think of a reason why the debug won't show up. And without debug it is really hard to help, we would have to start guessing and probably won't guess right for a long time.

@sivaganeshk
seems like you are using the vb4 build in prefixes for forums. Our addon can handle that. We use that on our board as well (see livedemo on www.united-forum.de ).

steeler7 08-04-2011 02:42 PM

Quote:

Originally Posted by Osbes (Post 2229108)
Hello steeler7,

if i understand you correctly you are using folders for the Prefix for Forum Status Images in the AdminCP?

Best regards
Sebastian

Yes. Through the Forums & Moderators panel in the ADMIN CP is where I am placing the number prefix for each individual folder.

Thanks!

Taurus1 08-04-2011 03:01 PM

I disabled the mod until we can figure out what is wrong. But now all my forum icons are still missing on my forumdisplay pages. Please help!

EDIT: Sorry that was a cache issue. All icons back now.

steeler7 08-04-2011 03:39 PM

After looking around and such, I got the "/" removed by using an underscore. So now some folders (only did a couple for now to test) are "1_" and they read out just like yours do at your United-Forums board when I checked with Firebug. I ran the Sprite Refresh and Still no Icons are showing up.

Thanks!

FReeSTER 08-04-2011 04:54 PM

Quote:

Originally Posted by FReeSTER (Post 2228468)
this mod is great but it gave me a hard time. For some reason it HIDED must of the forum images.

So I Un-Install until I know how to fix it

thanks

Quote:

Originally Posted by Osbes (Post 2228533)
Hello FReeSTER,

what exactly is your problem? i dont understand what you mean.

Best regards
Sebastian


once I installed the Mod after few hrs, I noticed that almost all the statusicons images were HIDE. They were like they never been there..... Once I un-install the Mod after an hr or 2 came back to normal.:confused:

Osbes 08-04-2011 06:04 PM

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

Osbes 08-04-2011 06:05 PM

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

steeler7 08-04-2011 07:50 PM

Quote:

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

Osbes 08-04-2011 07:58 PM

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

Crotan 08-04-2011 08:00 PM

disregard

fukdawrld 08-04-2011 10:55 PM

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.

fukdawrld 08-05-2011 12:05 AM

My icons came back after a while for all my skins. I would love to get this working though. I'll try again later.

Crotan 08-05-2011 12:31 AM

Quote:

Originally Posted by fukdawrld (Post 2229466)
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

fukdawrld 08-05-2011 01:47 AM

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.

FReeSTER 08-05-2011 04:58 AM

Quote:

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

Osbes 08-05-2011 05:55 AM

Hi fukdawrld,

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

Best regards
Sebastian

iask 08-05-2011 06:16 AM

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.


All times are GMT. The time now is 03:50 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.01851 seconds
  • Memory Usage 1,853KB
  • 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
  • (4)bbcode_code_printable
  • (14)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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