Search for an Add-on

You'll automatically gain access to this forum when you will post your first post in another forum. That way it will demonstrate how the Auto Group MOD works.
Forum rules
The content in this forum is dated Dec. 21 2005 and can be used as Archive only. This Forum is LOCKED and READ ONLY !

Search for an Add-on

Postby Berbe Nanard on Mon 09. Aug, 2004 18:12

Hello everyone !

I see there's an Add-on who allow to desactivate Auto-Group for a member... The thing is, I search an Add-on who allow to desactivate Auto-Group... for a group !

Can you try to make that ?

Thanks
Berbe Nanard
Poster
Poster
 
Posts: 15
Joined: Sun 07. Mar, 2004 02:49

Postby Niels on Sun 12. Sep, 2004 22:28

to disable autogroup for a specific usergroup, simply fill the
"number of required posts" with a very high value
e.g. 99999999

this will inshure autogroup not to take any afftect for that usergroup, before this number of posts are meet - witch actually never is going to happen (I asume)
(if a how-to is EM ready, it will mostly be bullet prof, since a machine is more picky than a human. :D)
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46

Postby Berbe Nanard on Sun 26. Sep, 2004 15:16

You seem to don't understand what I'd like...

When a user register, he is automatically added to a group : "users", that means that the number of posts required is 0. If I want to ban this user, I just remove him from all his groups and I add him to the "banned" group : he has only access to a special place...

But the problem is when he posts a message in this special forum. He is automatically re-added to the "users" group and then he has only to disconnect/reconnect to have access to all the "users" group's places, and (fair enough) to the special place....

I would like to deactivate the auto-group MOD for the group "banned", so its members can't be added to the "users" group...

Thanks :wink:
Berbe Nanard
Poster
Poster
 
Posts: 15
Joined: Sun 07. Mar, 2004 02:49

Postby Niels on Thu 14. Oct, 2004 22:42

ok, this is a quiz and "dirty" solution, I haven't tested it - so please test.

in file function_post.php

[FIND]
AND g.group_single_user=0
AND g.group_count_enable=1
AND g.group_moderator<>$user_id";

[REPLACE WITH]
AND g.group_single_user=0
AND g.group_count_enable=1
AND g.group_moderator<>$user_id ORDER BY g.group_id='XX'";

[FIND]
while ($group_data = $db->sql_fetchrow($result))
{

[AFTER, ADD]
if ($group_data['group_id']==XX) break;


if this does not work, then try replace the break; with exit; - I haven't made a "while" break before, so I'm alitle in doubt about the code nede - I asume a break will do, and if this does not maybe a exit will...if not a slightly different code is needed.

give it a try, as it is simple - (do I need to say, you need to replace the XX with the ID of the baned usergroup
(if a how-to is EM ready, it will mostly be bullet prof, since a machine is more picky than a human. :D)
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46


Return to Auto group [2.0.8/EM]

Who is online

Users browsing this forum: No registered users and 1 guest

cron