Log in

View Full Version : How would I have a profile field determine chatbox visibility


mandingo
01-14-2010, 02:50 PM
Based on this vb3x thread:
https://vborg.vbsupport.ru/showthread.php?p=1949758

I never got it working.I would like to use this to let the user determine visibility of the shoutbox,visibility of postbit info,maybe other things. Never got it figured out.

tried all kinds of stuff and nothing worked,had the field# right just have the syntax off or something.
Something like this?
<vb:if condition="$post['field7']== 'No'">stuff to see or not see</vb:if>

--------------- Added 1263506843 at 1263506843 ---------------

Why did I put this in the wrong forum?

BSMedia
01-16-2010, 04:33 AM
the $post['fieldX] will only work in the postbit I think.

Try $user['fieldX'] perhaps might work for other area's

mandingo
01-16-2010, 02:11 PM
the $post['fieldX] will only work in the postbit I think.

Try $user['fieldX'] perhaps might work for other area's

Tried,no worky.

Lynne
01-16-2010, 02:52 PM
If it is you, the viewers, field you are concerned about, then it will be $bbuserinfo['fieldx'].

mandingo
01-16-2010, 03:07 PM
If it is you, the viewers, field you are concerned about, then it will be $bbuserinfo['fieldx'].

Thanks Lynne! worked perfectly. :)