PDA

View Full Version : memberaction_dropdown


Irishnotsane
08-09-2021, 06:59 AM
<li class="right">
<img src="{vb:stylevar imgdir_siteicons}/profile.png" alt="" style="float:left;padding:2px 5px 0px 5px;"/>
{vb:raw post.field72}

</li>

Why doesn't it post field72 here within memberaction_dropdown? It simply doesn't show, but when I use the same code in postbit or legacy, it displays what's written in the field.

z3r0
08-09-2021, 07:54 AM
Try changing {vb:raw post.field72} to {vb:raw memberinfo.field72}

Irishnotsane
08-09-2021, 08:04 AM
That worked perfectly, thanks z3ro!

Any ideas on how to add the

<vb:if condition="$post['field72']">

So it doesn't show unless they have anything in that field.. As currently that doesn't seem to work either?

Edit, nevermind managed to make it work using your logic lmao

<vb:if condition="($memberinfo['field72'])">

Thanks