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,917
  • Total Topics: 21,308
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 450
  • Total: 450

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.

Crip

No , go to Admin>>Members>>Member Groups>> You and Gmod ..see now?
I have become comfortably numb!

Cripzone | Crip's Free 2.0.2 Themes



IchBin

So, do you want allow only certain groups to post, and all other groups to read only? I'm not sure I'm clear here either.

dimdom

Quote from: IchBinâ„¢ on August 26, 2009, 09:43:19 PM
So, do you want allow only certain groups to post, and all other groups to read only? I'm not sure I'm clear here either.

Yes, I would like only the admin to be able to post. All others, only to read.

Ken.

In TP098 there are no shoutbox permissions in the 'permissions' control panel... to set the member groups who can see the shoutbox you must edit the shoutbox itself.

Admin>TinyPortal>Block Manager>Shoutbox block> edit the groups there.

EDIT: Whoops! Looks like everybody beat me!  :coolsmiley:
" If everything seems under control, you're not going fast enough." - Mario Andretti
Yesterday When I was Young.

Crip

The others may not even see a ShoutBox i do believe at least the way I set mine ?
I have become comfortably numb!

Cripzone | Crip's Free 2.0.2 Themes



IchBin

Make a backup of the file before you change it. If you screw it up, you will be able to restore. :) If you open the Themes/default/TPortalBlocks.template.php file and change this line:
if(($context['TPortal']['guest_shout']) || (!$context['TPortal']['guest_shout'] && !$context['user']['is_guest']))

To this:
if($context['user']['is_admin'])

That should work I think.

Crip

I have become comfortably numb!

Cripzone | Crip's Free 2.0.2 Themes



dimdom

Thanks IchBin.

I ll give a try tomorrow and i ll let you know about the results...   :)

dimdom

It works!

Thanx once again, IchBin.

Lets say that i would like to add another two specific users next to admin at the code below that you gave us:

if($context['user']['is_admin'])

(admin, user1, user2), able to post in shoutbox.

Can you point me the correct syntax pls?  :P


IchBin

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.

This website is proudly hosted on Crocweb Cloud Website Hosting.