The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
I think this is a 5 min job for a smart PHP'er!
I want to display a certain html table on someones user profile ONLY if they've entered something in a certain custom profile feild.
Thanks. |
#2
|
|||
|
|||
um, that does not explain much, maybe more detail?
|
#3
|
||||
|
||||
<if condition="$profile[fieldX]">
Html code </if> |
#4
|
|||
|
|||
Thanks, I'm trying to do it just to show random text for the moment however it doesn't appear to be displaying anywhere...
The ID of this custom feild is 6, do I need to change profile to something else? |
#5
|
|||
|
|||
$profile[field6]
|
#6
|
|||
|
|||
it should look like $profile[field6]
Make sure you are using the actual field ID number and not the Sort display number. also make sure you have something in that profile field. |
#7
|
|||
|
|||
The ID is definetly 6 and it's order is 5.
http://www.gamernade.com/forums/members/picodeath.html Quote:
Which has something in it, so it should show.. no? |
#8
|
||||
|
||||
Why don't you tell us exactly what template you are adding this to and post the exact code you are using (and a little around it so we can see where you are posting it).
|
#9
|
|||
|
|||
MEMBERINFO > MEMBERINFO
Quote:
|
#10
|
||||
|
||||
Change this:
HTML Code:
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0"> <if condition="$profile[field6]"> <td>What the hell?</td> </if> HTML Code:
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0"> <if condition="$profile[field6]"> <tr> <td>What the hell?</td> </tr> </if> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|