PDA

View Full Version : Trying to add a custom profile field to "memberaction_dropdown"


grecostimpy
03-07-2010, 12:17 AM
I'm trying to add a custom profile field to the template "memberaction_dropdown"

<vb:if condition condition="$post['field5']">
<li class="left">
<img src="{vb:stylevar imgdir_siteicons}/profile.png" alt="" />
Real Name: $post[field5]
</li>
</vb:if>

I am completely new to VB4, so please bear with me. I also tried it without the if statement and it just renders Real Name: $post[field5] on my website.

I read something about registering variables, but did not quite understand it. Could that be why my custom profile field is not appearing (memberaction_dropdown not having "post" registered?)

Any help is always greatly appreciated.

Thank you.

Edit: Also tried {vb:raw post.field5} with no luck either.

grecostimpy
03-11-2010, 04:31 PM
Anyone care to try and tackle this one?

grecostimpy
03-12-2010, 11:27 PM
Caaaan you feeeeel the loooove toniiiiight?

Lynne
03-13-2010, 01:58 AM
If you look at the template memberaction_dropdown, you'll see the variable being used is memberinfo, not post.

grecostimpy
03-13-2010, 11:06 PM
Thank you for your assistance. Variables are something that are going to take some studying as I did not know post and memberinfo are interchangable for custom fields depending on where you are.

Lynne
03-14-2010, 03:35 PM
When you perform a query, you usually then assign the results to a variable. The variable name you choose is often associated with where you are going to use it or what it does. So, you need to look at the page to see what the name of the variable is that they are using.