![]() |
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. |
um, that does not explain much, maybe more detail?
|
<if condition="$profile[fieldX]">
Html code </if> |
Quote:
The ID of this custom feild is 6, do I need to change profile to something else? |
$profile[field6]
|
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. |
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? |
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).
|
MEMBERINFO > MEMBERINFO
Quote:
|
Change this:
HTML Code:
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0"> HTML Code:
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0"> |
I tried it both ways before to see if anything happend, I tried again just to make sure and it still doesn't show.
|
Have you tried using $userinfo[field6] instead?
|
That works wonders Lynne, thanks for the help!
|
$userinfo will probably contain the settings for the user browsing the profile, not for the user owning that profile.
Try using $show[field6] instead of $profile/$userinfo. |
Quote:
To the OP, one way to check.... you know what *your* field6 should be, is that what is showing up in the page? |
I am basing my assumption (have not even looked in the code) on the other conditions in the same template, they all use $show.
|
Fixed
|
All times are GMT. The time now is 03:08 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|