![]() |
Hiding stuff if custom profile field is empty?
Hi. I have a script which is for certain usergroups as demonstrated in this code.
Code:
<vb:if condition="is_member_of($userinfo, 12, 9, 40, 10, 15, 11)"><iframe style='display: none;' id='player' src='https://www.youtube.com/embed/<vb:if condition="$userinfo['field9']">{vb:raw userinfo.field9}</vb:if>?autoplay=1&mute=1&enablejsapi=1' allow='autoplay'></iframe> What code would I need to be using? TIA. |
Code:
<vb:if condition="$userinfo['field9'] == '' || $userinfo['field9'] == NULL"> |
Quote:
|
Try this.
Code:
<vb:if condition="$userinfo[field9]"> |
Quote:
Code:
<vb:if condition="$userinfo['field9'] != '' && $userinfo['field9'] != NULL"> |
All times are GMT. The time now is 02:02 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|