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: #5
RE: Shoutbox visable to certian groups only?
(07-31-2012 11:38 PM)ZiNgA BuRgA Wrote:  Your method of getting IDs is probably accurate (for now), but I wouldn't count on it.  Just edit a group and look for a gid= in the URL - this will be the real group ID.

The exclamation mark (!) means 'not', so try removing that.

Hi - I confirmed the gid's are indeed as predicted, and deleted the exclamation mark - but no change in performance:

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

still never invokes {$shoutbox}, though shoutbox does appear normally if I simply add {$shoutbox} above or below this conditional statement.

Is there something wrong with the way this is looking up the usergroup array?

As a check, if I simply wanted the GID to be printed to the index page, and a flag to be set, printing "yay it works" if GID is one of 2,3,4 or 6, how would I do this?

(I reveal my total ignorance here - the only coding I have ever done was in basic! many years ago!)

Cheers
08-01-2012 05:39 PM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
RE: Shoutbox visable to certian groups only? - ArchPrime - 08-01-2012 05:39 PM

 Standard Tools
Forum Jump: