PDA

View Full Version : If Condition=$Post?


Daniel
10-17-2014, 10:56 PM
Hi all,

I made a profile field (radio) that lets a user choose whether or not his profile is "Public" (seen by all members) or "Private" (only those with the link can see it).

I understand I'll have to find each instance of a link to someone's profile page and wrap something like this code around it:

<vb:if condition="$post['field15'] != 'Private'">display link</vb:if>

I tried this out in postbit_legacy and it works only if the person viewing the thread is the thread starter. I'm looking for a way to change that so that each time a post comes up & the post creator has his profile field marked as "Private" the link his profile will not be shown. It may just be a matter of switching "$post" with something different.

Grateful for the help!

Zachery
10-18-2014, 01:15 PM
Radio buttons are stored as a bitfield. 1 2 4 8 16 32, etc.

kh99
10-18-2014, 02:13 PM
In the profile field, check to make sure "Private Field" is set to No. If it's a private field, then the value won't be available when someone else is viewing the information.

Radio buttons are stored as a bitfield. 1 2 4 8 16 32, etc.

You're thinking of checkboxes.