The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to make "Rank" HTML pull color from profile field
Hi,
I currently use HTML for my ranks example below. But I have recently added a Custom VIP option were the user sets the hex code in there profile and it changes there username to that colour and I want to pull that same hex code to the rank code so the background color sets to same as username is. how would I do that? <style>@font-face { font-family: volter; src: url(/volterb.ttf); } .userbartext { font-family: volter; font-size: 9px; color: #FFFFFF !Important; } </style> <img src="/images/userbar.png" style="background-color:#4177b4;margin:8px 0 0px 1px;border-radius:3px;"> <div class="userbartext" style="margin: -16px 0 0 0;text-align: center;position: relative;width: 129px;">Event Host</div> |
#2
|
||||
|
||||
We would need to see your Custom VIP option code in order to better assist you.
Also, I hope you're not putting that style tag in the actual rank itself. The html is fine. However, the style bit can be placed in the headinclude template. Otherwise it's redundant and going to be loaded multiple times :up: |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|