Log in

View Full Version : (Easy) How to write this basic if conditional in plugin


basketmen
04-08-2011, 03:19 PM
Please help write the correct code for this basic if conditional in plugin/php file, i want to wrap a plugin with this if statement so not showing for guest

<if condition="$show['member']">

also

<if condition="$bbuserinfo['userid'] == 0">

thank you before

Lynne
04-08-2011, 03:57 PM
How about just:
if ($show['member']) {
stuff
}and
if ($vbulletin->userinfo['userid'] == 0) {
stuff
}??? Assuming $show[member'] and $vbulletin->userinfo['userid'] are defined, of course.