View Full Version : Style-specific user rank badges?
DevOne5555
04-22-2011, 11:59 PM
My board uses 2 different skins. We've made our own user rank badges, but we'd like them to be consistent with the skins we use. Is there a way, perhaps using a variable, that we could have it so the badges are set by CSS (instead of having to specify file links in the adminCP)? In other words, to have different user rank images for each skin?
Lynne
04-23-2011, 02:22 AM
You could use Replacement Variables - Replacement Variable Manager (http://www.vbulletin.com/docs/html/style_replacement)
DevOne5555
04-24-2011, 05:38 PM
Lynne,
I found the variable for user rank badges, which is {vb:raw post.rank}, however I'm unsure of what to do now. What do I replace {vb:raw post.rank} with? The paths for the images used by {vb:raw post.rank} are set under the Ranks pane of the admincp, however I want to use a different set of images at a different location for each vb skin. I've made folders for the rank images under the directories for each of my skins (CSS is being served from the filesystem instead of php). Is there a way to make a replacement variable that points to a directory instead of a filename? The way it's set right now in the ranks panel of admincp it links to individual files (i.e. images/filename.png).
Lynne
04-24-2011, 09:16 PM
You write teh Replacement variable to replace the images.
For example, in the rank manager, you call the image "rank1.gif". So, in style 2, you want the ranks in the folder /style1 and it's still called rank1.gif. So, You write the replacement to replace "rank1.gif" with "style1/rank1.gif"
DevOne5555
04-25-2011, 06:18 PM
Lynne thanks so much. Looks like I overcomplicated things for myself. A simple replacement variable to change the filepath did the trick. Looks great :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.