The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Echo user profile field in postbit
In vBulletin 3.8, we could sort of echo or display one of the users' profile fields in the post bit by using this code:
Quote:
I need to know how to do the same thing in vBulletin 4.0. I have tried many things with no luck. Thanks! |
#2
|
||||
|
||||
What have you tried? Have you seen this article on the new syntax - First Look at vBulletin 4 Template Variables?
|
#3
|
||||
|
||||
Just look at the default template, it already has profile field data in it with the fieldX format, just copy it's syntax changing the number.
|
#4
|
||||
|
||||
Got it:
HTML Code:
<vb:if condition="$post['field6']"><dd><a href="http://youtube.com/user/{vb:raw post.field6}">{vb:raw post.field6}'s Youtube Channel</a></dd></vb:if> HTML Code:
<vb:if condition="$post['field6']"><dd><a href="http://youtube.com/user/{vb:raw post.field6}">http://youtube.com/user/{vb:raw post.field6}</a></dd></vb:if> |
#5
|
|||
|
|||
Brilliant Mandingo and everyone else. Thanks for all your help!
|
#6
|
|||
|
|||
Anyone know the code for putting out a profile field in a widget? ?Thanks
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|