Current time: 01-24-2021, 08:10 PM Hello There, Guest! (LoginRegister)

Post Reply 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Where to start
04-14-2011, 04:41 AM
Post: #11
RE: Where to start
Just make sure you are careful about splitting up sprites because repeat-x and repeat-y need to be in separate sprites while repeat generally can't be sprited. Best to start with just the images that aren't repeated at all (in case you're bumping into a problem related to that).

If the images are not css background images you can sprite normal <img> tags as well without having to convert them to css background images:
Visit this user's website Find all posts by this user
Quote this message in a reply
04-14-2011, 08:23 AM (This post was last modified: 04-14-2011 08:31 AM by Marvin.)
Post: #12
RE: Where to start
Al, I'm not familliar with the CompleteVB theme, and since the theme's website says their product is intended for vBulletin version 4.x, I suspect that's the vB version you are working on. I'm still at vB 3.8.x, so I may be of little use here.

But an idea just crossed my mind. Rather than trying to modify a lot of vBulletin templates, I'd likely try to use the built-in "Replacement Variable Manager", provided the new vB 4.x still has it. In vB 3.8.x, to access the "Replacement Variable Manager", you would go to AdminCP, and then in the left pane you would find it in the "Styles & Templates" section. In your style, you would then click the [Add New Replacement Variable] link. There, you would specify, for example, that you wish to replace the existing code:

<img src="images/buttons/newthread.gif" alt="Post New Thread" border="0" />

with your new code, for example:

<div class="sprite_button_newthread"></div>

Al, I'm not certain if this is the best, and/or the correct, way of doing it, I'm not a pro at coding, this is just my hobby. But this seems to me much simpler than to start editing a myriad of vBulletin templates. It also is very easy to delete replacement variables from vB (at least in version 3.8.x).

I very briefly tested this approach before starting to write this reply, and it worked immediately with no issue as far as I can tell.

Find all posts by this user
Quote this message in a reply
Post Reply 

Forum Jump:

User(s) browsing this thread: 1 Guest(s)