Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Shoutbox visable to certian groups only?
ArchPrime Offline
Junior Member
**
Posts: 3
Joined: Jul 2012
Post: #1
Shoutbox visable to certian groups only?
Hi - I have installed Template conditional, and also have Ajax Shoutbox working

I want to make this shoutbox invisable to banned users and guests and those awaiting activation

Editing the Index template (where shoutbox is invoked)

I changed this

{$shoutbox}

to this

<if !in_array($GLOBALS['mybb']->user['usergroup'], array(2,3,4,6)) then>
{$shoutbox}
</if>

but it does not work - I get no error, but with that change, shoutbox is now invisible to ALL user groups

I know nothing about php scripting, and the above is my just my best guess based on other forum postings on similar issues.

I obviously have something wrong though, and would be very grateful for corrected version!

Cheers
07-31-2012 07:36 PM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
Shoutbox visable to certian groups only? - ArchPrime - 07-31-2012 07:36 PM

 Standard Tools
Forum Jump: