I'm using this on my forum and so far it's working pretty well. However I'm having one small problem.
On a user's "feedback" page it lists their location. I want to add this to each "ad" page so that their location shows along with every ad, as I have international users who want to know where they're paying for shipping from without having to look the user up each time.
In the "feedback" template this is done like this:
Code:
<if condition="$user[field2] != '' ">
<div style="background-color:$stylevar[alt2_bgcolor]" class="smallfont">Location: $user[field2]</div>
</if>
So I figured to replicate this on the "ad" page, like so:
Code:
<if condition="$user[field2] != '' "><tr>
<td class="alt1">Location:</td>
<td class="alt2">$user[field2]</td>
</tr></if>
The problem is, it doesn't work. If I remove the 'if' conditional it shows the table row correctly with the word 'Location:' but doesn't show their location. So somehow it's just refusing to call $user[field2].
Does anyone have any idea why this might be? I just can't figure it out. I thought user profile fields could be called just about anywhere and since it works on the "feedback" page I don't understand why it doesn't work on the "ad" page as well.
Any help that
anyone can provide would be greatly appreciated.