View Full Version : Images in category strips, different for each category.
Guest210212002
02-18-2008, 10:55 PM
What's the cleanest way to go about doing this? I'm sure I can accomplish it using a few conditionals in the actual background img call for the category strip itself, but that seems like a bit of a pain.
If someone's done this (and I've seen plenty that have) a better way, I'd love to know what it is. :)
Guest210212002
02-22-2008, 01:18 AM
Bump because I'm going to try and do this the hard way this weekend. :)
Princeton
02-22-2008, 12:26 PM
try inline CSS
eg. background-image: url(images/gradient_tcat$foruminfo[forumid].gif)
Guest210212002
02-22-2008, 05:29 PM
Dude you rock.
That CSS statement only applies to category strips, right? I notice that same image appears (for example) on my memberinfo tabs, but I can't recall if it's a manual edit I made myself that adds them there.
Princeton
02-25-2008, 02:08 PM
you would have to manually add that to the "forumhome_" nopost template (this would overide any embedded or external CSS)
you can then create your own gradients per forumid
gradient_tcat$foruminfo[forumid].gif
gradient_tcat34.gif
gradient_tcat5.gif
you would of course have to create a conditional if you only want the gradient to change only for a few places
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.