The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Making a User Rank gain a hex code from User Profile Fields
Hey,
I'm currently in a situation where I'm about to break my laptop... I've been trying to make a "Custom VIP" thing for my forum, now since this is fairly new, most sites are unable to help me, because they don't have it. It's mainly just the User Profile Field section that I'm not able to get working, everything else works when I just put a standard hex code into the coding. <img src="http://www.madhabboforum.com/custom/v2/Special/vip.png" style="background: #$post['field18'];margin-bottom:1px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;"> The bit in red is the bit where its not working.... It's most likely a coding error, if anyone could provide me with the post bit coding, it would be fantastic! Thanks, Tom |
#2
|
|||
|
|||
In which template are you placing the code?
|
#3
|
||||
|
||||
you need $userinfo not $post
Also, if this is in a template you need to use vb:raw HTML Code:
<img src="http://www.madhabboforum.com/custom/v2/Special/vip.png" style="background: #{vb:raw userinfo.field18};margin-bottom:1px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;">
|
#4
|
||||
|
||||
Quote:
OP I could implement the Custom VIP script you're on about for a small fee. |
#6
|
||||
|
||||
opps, I didn't notice this was the vb3 board
In that case it is $vbulletin->userinfo['field18'] |
#7
|
||||
|
||||
Depends, $userinfo would be for the person viewing the page, $post would be for the user of each individual post when viewing a thread for example. You wouldn't want the viewers information to be showing for every post, so $userinfo may not be what is being looked for.
|
#8
|
||||
|
||||
Quote:
I don't recall $post containing user profile info. |
#9
|
|||
|
|||
Anyone? I'm having the same issue on my forum.. Need Profile Field 32 to identify the HEX Code.
|
Благодарность от: | ||
XotelHotel |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|