Members: 16,996
Threads: 38,846
Posts: 159,391
Online: 24

Newest Member: Kl_broka@rediffmail.com


Odoo.tv - Outdoor Television


Sedo - Domains kaufen und verkaufen das Projekt mambers.com steht zum Verkauf Besucherstatistiken von mambers.com etracker® Web-Controlling statt Logfile-Analyse
Old 08.06.2004, 10:41   #1 (permalink)
Baby Mamber
 
Join Date: Jun 2004
Posts: 6
helchi is an unknown quantity at this point
Default Adding new user group?

Hello,

I've got a question concerning Mambo 4.5

Is it possible to create new user groups? I want to make two different user groups - firms and students. Both should have a few same sites but firms should have sites that students don't have and the other way round.

Is this possible and how do I do this?

Thanks in advance!
helchi is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Old 04.04.2005, 20:56   #2 (permalink)
Baby Mamber
 
Join Date: Mar 2005
Posts: 10
pescaconmosca is on a distinguished road
Default Re: Adding new user group?

Hi!

Any news?????
I need that too!

Thanks!

Francisco.
pescaconmosca is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 11.04.2005, 16:37   #3 (permalink)
Baby Mamber
 
geegee's Avatar
 
Join Date: Apr 2005
Posts: 5
geegee is on a distinguished road
Default Re: Adding new user group?

Interested in that too. Did you manage to do it? What did you do?

Thx
__________________
GeeGee
geegee is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 18.04.2005, 17:15   #4 (permalink)
Baby Mamber
 
Join Date: Apr 2005
Location: Portugal
Posts: 1
nuni is on a distinguished road
Question Re: Adding new user group?

I need it too.
Does anyone knows about a component/module/mambot to do this?
nuni is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 26.06.2005, 08:14   #5 (permalink)
Junior Mamber
 
Join Date: May 2004
Posts: 48
boom is on a distinguished road
Default Re: Adding new user group?

nice answers guys, keep the community spirit strong
boom is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 27.06.2005, 00:53   #6 (permalink)
Baby Mamber
 
Join Date: Dec 2004
Posts: 15
bluecobalt is on a distinguished road
Default Re: Adding new user group?

this isn't built into mambo yet. it's supposed to come in 5.0.

there are a couple of hacks out.

http://www.mambodownloads.nl/compone.../filecatid,52/

and http://mamboforge.net/projects/graccess/

and there is a commercial component - MAL over at http://www.mambobrothers.com

i think that MAL looks promising but haven't used it. i tried the hacks, but they don't really do what i was hoping to do.

good luck!

peace,
blue
bluecobalt is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 29.06.2005, 21:50   #7 (permalink)
Baby Mamber
 
Join Date: Jan 2005
Posts: 3
snorty is on a distinguished road
Default Re: Adding new user group?

Well here is a hack that I did for 4.5.1. I took the ALG Hack and made it work. I offer no guarantees, but it seems to work for me. Essentially I wanted to add a new group called 'Members' to my site. We have members who pay a monthly fee and I wanted to allow them to see hidden content like a Users Menu. It is also an eCommerce site, so any user that checks out becomes a registered user. Therefore I could not set the hidden members content to registered. Here is what I did.

I grabbed the ALG Hack, but soon realized that it did not quite fully work. It required some adaptations.

Run the following SQL statements
mos_groups.sql from ALG Hack – this recreates mos_groups table. I added 'Members' to this SQL.

DROP TABLE IF EXISTS `mos_groups`;
CREATE TABLE `mos_groups` (
`id` tinyint(3) unsigned NOT NULL default '0',
`name` varchar(50) NOT NULL default '',
PRIMARY KEY (`id`)
) TYPE=MyISAM;
INSERT INTO `mos_groups` (`id`,`name`) VALUES
(0,'Public'),(1,'Registered'),(2,'Member'),(3,'Spe cial'),(4,'Author'),(5,'Editor'),(6,'Publisher'),( 7,'Manager'),(8,'Administrator'),(9,'Super Administrator');

Now I need to adda a new level to the mos_core_acl_aro_groups table, because my new group does not show when I edit a user. I simply did an insert to add the Member group to the parent group 'Public Frontend'. This shows the Member for editing users.

INSERT INTO mos_core_acl_aro_groups
(parent_id,name,lft,rgt)
VALUES(29,'Member',4,11)

I updated the following files:
Update includes/mambo.php - notice the new group name 'Member'. The $row->gid matches with the mos_groups record.

/* added ALG Hack */
//Registered
$row->gid = 1;
// Member
if ($grp->name == "Member") {$row->gid = 2;}
// Special
if ($grp->name == "Special") {$row->gid = 3;}
// Author
if ($grp->name == "Author") {$row->gid = 4;}
// Editor
if ($grp->name == "Editor") {$row->gid = 5;}
// Publisher
if ($grp->name == "Publisher") {$row->gid = 6;}
// Manager
if ($grp->name == "Manager") {$row->gid = 7;}
// Administrator
if ($grp->name == "Administrator") {$row->gid = 8;}
// Super Administrator
if ($grp->name == "Super Administrator") {$row->gid = 9;}


/* removed per ALG Hack
if ($acl->is_group_child_of( $grp->name, 'Registered', 'ARO' ) ||
$acl->is_group_child_of( $grp->name, 'Administrator', 'ARO' )) {
// fudge Authors, Editors, Publishers and Super Administrators into the Special Group
$row->gid = 2;
}*/
/* End of Alg Hack */

I updated the following files in in administrator/components/
Update com_modules/admin.modules.php. Updated accessmenu to include new $access value for members Changes values to reflect. Notice the new access member level.

switch ( $access ) {
case 'accesspublic':
$access = 0;
break;

case 'accessregistered':
$access = 1;
break;

case 'accessmember':
$access = 2;
break;

case 'accessspecial':
$access = 3;
break;
}

Update com_modules/admin.modules.html.php. Updated access column to include new $row->access values. Notice the new accessmember level.

/* Updated per ALG Hack - added new access value */
if ( !$row->access ) {
$color_access = 'style="color: green;"';
$task_access = 'accessregistered';
} else if ( $row->access == 1 ) {
$color_access = 'style="color: red;"';
$task_access = 'accessmember';
} else if ( $row->access == 2 ) {
$color_access = 'style="color: blue;"';
$task_access = 'accessspecial';
} else if ( $row->access == 3 ) {
$color_access = 'style="color: violet;"';
$task_access = 'accesspublic';
} else {
$color_access = 'style="color: black;"';
$task_access = 'accesspublic';
}

Then I opened up Modules and set permissions to all modules that I wanted Members to see. I set these so that the Access was 'Member'. Next I edited all users that are members, using the User Manager, and set their group to 'Member'. Finally, I tried it out on the public site and it works! How cool is that!
snorty is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 30.06.2005, 23:17   #8 (permalink)
Baby Mamber
 
Join Date: Jan 2005
Posts: 3
snorty is on a distinguished road
Default Re: Adding new user group?

Sorry I missed part of the ALG User Groups hack:
You need to update com_modules/admin.modules.php and add a case to the $task switch. Notice the new 'accessmember'

case 'accesspublic':
case 'accessregistered':
case 'accessspecial':
case 'accessmember':
accessMenu( $cid[0], $task, $option, $client );
break;
snorty is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fun: Wie werde ich User des Monats? -peter- Smalltalk 24 20.08.2007 01:29
Extended user carfools3 Mambo 4.5 'How Do I' Questions 4 16.05.2004 15:46
wish email 2 user smart Mambo 5.0 Wishlist 1 28.04.2004 20:52
Remove a user from super administrator group thwint Mambo 4.5 'How Do I' Questions 1 08.04.2004 10:59


All times are GMT +2. The time now is 01:39.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.