How would I go about checking a user's usergroup within a widget?
Trying to:
if this usergroup, then show this.
else, then show this.
Trying to:
if this usergroup, then show this.
else, then show this.
Welcome to the vBulletin support forums! In our community forums you can receive professional support and assistance with any issues you might have with your vBulletin Products.
Useful Links for Guests:
If you are having problems posting in the relevant areas for your software, please see this topic.
if (is_member_of(vB::$vbulletin->userinfo, x, y, z))
{
stuff
}
else
{
other stuff
}
<div class="gxglive_chat">
<?php
if (is_member_of(vB::$vbulletin->userinfo, 1) { ?>
<div class="standard_error">
<h2 class="blockhead">Please Login to Chat</h2>
<div class="blockbody formcontrols">
<div class="blockrow restore">
<h3>Sign-in Above to Enter Chatroom!</h3>
<p>Please login above and you will be sent to your chatroom.</p>
<h3>Not a GenXGlow Member? <a href="http://www.genxglow.com/register.php">Please Register...</a></h3>
<p>You must be a GenXGlow member to participate in our chatroom. If you would like to chat, <a href="http://www.genxglow.com/register.php">you will need to register</a>! Creating an account only takes 40 seconds!
</div>
</div>
</div>
<?php } else { ?>
<iframe style="border: 0px" width="100%" height="600" src="/flashchat/flashchat.php?username=_int_&room=9"></iframe>
<?php } ?>
</div>
Comment