View Full Version : how do they use "tilesets" to set buttons?
cloferba
01-19-2010, 02:05 PM
http://www.psicofxp.com is using vbulletin
but i dont know how they set buttons, user titles using this image
http://www.psicofxp.com/themes/revolution/imagenes/general/sprite_forums_rev_blue.png
Lynne
01-19-2010, 03:30 PM
I don't understand your question.
cloferba
01-19-2010, 10:00 PM
well..let me explain
a button..uses a png image (on 3.8.4 for example)
here..on this forum (psicofxp)...a button is not a one png image...
on other words:
on vb 3.8.4..on a button...right click..view image..displays a one png image
on psicofxp forum...right click..view image..displays the image on first post
how do they that?
Lynne
01-19-2010, 11:39 PM
If you look at the css for the stats which is the box with the arrow thingie in the very left side - 4th down, it looks something like this:
.foro_stats {
...background:transparent url(/themes/revolution/imagenes/general/sprite_forums_rev_blue.png) no-repeat scroll 0 -284px;
height:48px;
width:144px;
}
So, they start at position 0 (x-direction) -284px (y-direction) and then from that point, the image is 48px height and 144px wide.
cloferba
01-20-2010, 12:22 AM
thank you lynne...but..what are the adventages to use this method?
prevent copy of images?
Lynne
01-20-2010, 03:36 AM
thank you lynne...but..what are the adventages to use this method?
prevent copy of images?
Doubtful, since the image is right there. I don't know what the advantage it except that you download it once, it gets cached, and you won't have to download those images on any other page.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.