PDA

View Full Version : Setting User Group Permissions in Vbulletin


dcpaq2
06-23-2006, 08:32 PM
Group,

Im not sure if this can be done but how can I restrict access to Flash Chat according to what User Group a member belongs to using Vbulletin 3.5.4?

I cannot figure out how to restrict access according to their user group.

Thanks

Doug

klj2000
06-23-2006, 09:03 PM
Look at the bottom of the vbulletin35CMS.php file in the chat/inc/cmses folder. At the bottom you see this option:

'banned' => array( 1,8 ) ,

Add the user group you want banned from the chat there.

dcpaq2
06-23-2006, 09:31 PM
Will this then show the user the "you do not have permission to view" message?

Doug

UPDATED... Actually after testing it I answered my question.

It shows a do not have permission from the Flash Chat side. How can I get it to show Vbulletins you do not have permission from the Vbulletin side?

Thanks

Doug

klj2000
06-23-2006, 10:29 PM
I haven't tested this but you can try editing the language file and see if this works for you. Try the messages coded area at the top first. Usually if someone is banned from the chat that is the message they see in the flashchat.php login.

Paul M
06-26-2006, 04:46 AM
How can I get it to show Vbulletins you do not have permission from the Vbulletin side?That would require changes in vB, not flashchat.

dcpaq2
06-26-2006, 08:01 AM
Anyone willing to tackel this for a plugin or something on the VB side to make this happen?

Doug

dcpaq2
07-01-2007, 10:12 AM
How or where would I go about adjusting the user group permissions / access in flash chat with Vbulletin 3.6.5? The file is different for 3.6 than 3.5 in chat/inc/cmses.
.................................................. .................................................
Below is from - vbulletin35CMS file
.................................................. .................................................
// Usergroup Definitions
$users = '2' ; // Usergroups allowed standard access to chat.
$moderators = '5,7' ; // Usergroups allowed access as chat moderators.
$administrators = '6' ; // Usergroups allowed access as chat administrators.
$banned = '1,8' ; // Usergroups banned from accessing the chat at any time.
.................................................. ...............................................
Below is from - vbulletin36CMS file
.................................................. ................................................
// Get user details //
function getUser($userid)
{
if(($rs = $this->getUserStmt->process($userid)) && ($rec = $rs->next()))
{
if(intval($rec['membergroupids'])) $rec['usergroupid'] .= ",".$rec['membergroupids'] ;
$permlist = array('users','customer','mods','admin','banned',' noaccess');
foreach($permlist as $permission) $GLOBALS['vbulletin'][$permission] = array();
$groups = explode(',',$rec['usergroupid']);
foreach($groups as $group)
{
if(($rx = $this->getUserGroup->process($group)) && ($rex = $rx->next()))
{
if(intval($rex['fcpermissions']))
.................................................. .................................................
Thanks much

Doug

Paul M
07-01-2007, 12:07 PM
It's only different because you are using the usergroup integration mod - so you set them in the usergroup manager.

dcpaq2
07-01-2007, 06:23 PM
Paul,

Where do i find the user group manager at?

Doug

dcpaq2
07-01-2007, 07:12 PM
Paul,

Please disregard the previous question. I found it in the User Group permissions section of the message board.

Thanks

Doug

Sevo
02-17-2008, 07:20 PM
Ok I edited the vbulletin36CMS.php file but the banned users can still enter the chat.. any suggestions on what I need to do. The only people I want in chat are my user group id 24..

thanks

klj2000
02-17-2008, 09:13 PM
It would be hard for me to tell weather you added the correct number of it's because they haven't cleared there browser cache so it's loading these instead of the new files.

Sevo
02-18-2008, 03:15 AM
It would be hard for me to tell weather you added the correct number of it's because they haven't cleared there browser cache so it's loading these instead of the new files.

the user id I want to only see is group 24.

I dont want the regular registered users to see the flash.. would you mind posting the correct code i should enter. I think I did it right but i may not have

thank you for your help

klj2000
02-18-2008, 11:56 AM
I don't know the right code. You would have to send a pm to Paul M or go to vbulletin.org and ask Paul M. Vbulletin is a pay script so I can't look at this. From my understanding from a previous post you can find this group id in the vbulletin admin area but I have no idea if new users are in just one big group or what.