TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,913
  • Total Topics: 21,308
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 592
  • Total: 593
  • @rjen

TP 0.9.8 shoutbox permissions

Started by dimdom, August 26, 2009, 07:13:52 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

dimdom

No, they are just moderators in some threads.

I ll try and I ll give you the results.

Thanx!

ZarPrime

Quote from: IchBinâ„¢ on August 27, 2009, 05:01:20 PM
Are they both in a Global Moderator group or something?

if($context['user']['is_admin'] || $context['user']['id'] == 5 || $context['user']['id'] == 6)

That might work. Exchange the 5 and 6 with the ID's of those users you want.

Hey Ichbin,

Could this be done for a whole membergroup instead of individual users?  For instance, let's say that group 5 is the Shout group, which are the ones allowed to shout.

ZP

IchBin

Yep!

if (in_array(5, $user_info['groups']))

5 would be your user group ID. If $user_info['groups'] doesn't work, I "think" $context['user']['groups'] might do the same thing. I can't remember exactly if that exists.

ZarPrime

Thanks Ichbin,

I'm going to try this out when I get a chance.

This website is proudly hosted on Crocweb Cloud Website Hosting.