Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => SMF Feedback and Discussion => Aiheen aloitti: INsightForums - tammikuu 26, 2008, 02:53:25 AP

Otsikko: Integrated chat for specific membergroup
Kirjoitti: INsightForums - tammikuu 26, 2008, 02:53:25 AP
Hi!  I'm wanting to add an intergrated chat room, but make it only available to a certain membergroup, or in a certain area.  Is this possible?
Otsikko: Re: Integrated chat for specific membergroup
Kirjoitti: TrueSatan - tammikuu 26, 2008, 09:55:01 AP
The most likely mod for your purpose would be:

http://custom.simplemachines.org/mods/index.php?mod=611 (http://custom.simplemachines.org/mods/index.php?mod=611)

The link for it will appear in your navigation menu but it can be restricted to being seen only by those with permission so to do...Flash Chat is, however, not FOC.
Otsikko: Re: Integrated chat for specific membergroup
Kirjoitti: moofy - tammikuu 30, 2008, 04:37:46 IP
Lainaus käyttäjältä: TrueSatan - tammikuu 26, 2008, 09:55:01 AP
The most likely mod for your purpose would be:

http://custom.simplemachines.org/mods/index.php?mod=611 (http://custom.simplemachines.org/mods/index.php?mod=611)

The link for it will appear in your navigation menu but it can be restricted to being seen only by those with permission so to do...Flash Chat is, however, not FOC.

thanks for the reply but I did not find a way to restrict based on membergroup in that link? Do you have any additional info?

I have the same exact question as the original poster

thanks
Otsikko: Re: Integrated chat for specific membergroup
Kirjoitti: rsw686 - tammikuu 30, 2008, 09:07:23 IP
If you go the FlashChat route you just need to add an if statement to Sources\Chat.php to check if the user is part of the member group.

For example to check if the user is a global moderator.

if(in_array(2, $GLOBALS['user_info']['groups']))

Then use fatal_lang_error to let them know they are not allowed.