PDA

View Full Version : How to make "Rank" HTML pull color from profile field


Fuzz910
09-22-2015, 07:52 AM
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>

Gio~Logist
09-30-2015, 03:12 AM
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: