The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
Hi all i'm looking to get it work this variables
Code:
{vb:raw username}
{vb:raw musername}
{vb:raw profilefield.profilefieldid}
{vb:raw profilefield.title}
{vb:raw profilefield.value}
Code:
<vb:if condition="$show['profilefield_edit']"> <vb:if condition="$post['field6']">
|
|
#2
|
||||
|
||||
|
In order to use a variable in a template, first you need to make sure the variable is actually defined. My guess is, you don't mean "$post['field6']" but instead mean "$bbuserinfo['field6']" And username is actually bbuserinfo.username, same with musername.
|
|
#3
|
||||
|
||||
|
Sorry username is ok but i really mean "<vb:if condition="$post['field6']">" i see this variables in postbit i want tho show something who fill this custom filed but in header don't work..
Thank you for your help |
|
#4
|
||||
|
||||
|
And as I said, I believe you want to use the variable $bbuserinfo instead of $post. $post is not defined on many (any?) other pages except the showthread page.
|
|
#5
|
||||
|
||||
|
ok but
Code:
<vb:if condition="$bbuserinfo['field6']> Only the users who fill the field6 can view this </vb:if> --------------- Added [DATE]1315313327[/DATE] at [TIME]1315313327[/TIME] --------------- ok thank you for your help I did it
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|