The BoardMod Project
 The Project | News | Downloads | Mods | FAQ | Templates | Chat | Forum
BoardMod Support Forum
[ Home | Help | Search | Login | Register ]  

25.05.13 at 08:50:53, Welcome, Guest. Please Login or Register

Choose Language:
Pages: 1 ... 7 8 9 10 11 12
[DONE] User's More Membergroups! (Read 27170 times)
lordallout
Bloody Novice
*
Offline

Posts: 1



Reply #120 - 23.08.02 at 16:22:24  
Quote:
i install this mod manually
it seems to be incompatible in BroadIndex.pl [i've installed AMM before]
in this mod Code:
<search for>
           @membergroups = split( /,/, $cataccess{$curcat} );
           $openmemgr{$curcat} = 0;
           foreach $tmpa (@membergroups) { if($tmpa eq $settings[7]) { $openmemgr{$curcat} = 1; last; } }
</search for>

<replace>
           @membergroups = split( /,/, $cataccess{$curcat} );
           $openmemgr{$curcat} = 0;
             fopen(accset, "$memberdir/$username.kri");
           @youraccess = <accset>;
                 fclose(accset);
           foreach $value (@youraccess) { chomp $value; }
                 foreach $tmpa (@membergroups) {
                 if($tmpa eq $settings[7] || $tmpa eq $youraccess[0] || $tmpa eq $youraccess[1] || $tmpa eq $youraccess[2] || $tmpa eq $youraccess[3] || $tmpa eq $youraccess[4]) { $openmemgr{$curcat} = 1; last; } }
</replace>

in AMM mod Code:
<search for>
           foreach $tmpa (@membergroups) { if($tmpa eq $settings[7]) { $openmemgr{$curcat} = 1; last; } }
           if(!$cataccess{$curcat} || $settings[7] eq 'Administrator') { $openmemgr{$curcat} = 1; }
</search for>

<replace>
           my($mscount);
           $mscount=0;
           foreach $tmpa (@membergroups) {
                 if( $tmpa eq $settings[7]) { $openmemgr{$curcat} = 1; last; }
     while($MemStat[$mscount]) {
     if($settings[6] >= $MemPostNum[$mscount] && $MemPostNum[$mscount] ne "x") {
     $memberinfo = "$MemStat[$mscount]"; }
     ++$mscount;
     }
     if ( $memberinfo eq $tmpa ) { $openmemgr{$curcat} = 1; last; }
           }
           if( ! $cataccess{$curcat} || $settings[7] eq 'Administrator' ) { $openmemgr{$curcat} = 1; }
</replace>

i've some problem with this line Code:
foreach $tmpa (@membergroups) { if($tmpa eq $settings[7]) { $openmemgr{$curcat} = 1; last; } } 


Any solution please


Same problem  Lips Sealed
 
IP Logged
 
Dummy Proof
Hacker God
*****
Offline

Outside L.A., California, USA
Posts: 991



Reply #121 - 03.09.02 at 19:47:26  
Well... not long ago I asked Christer if he could add the ability to have a function that assigns new users at registration time, default membergroups. The membergroups assigned would be assigned like his User's More Membergroups mod does. So... realizing he probably has many other things going on at the time, I decided to write it myself. The mod attached will add an entry below "Edit Member Groups" in Admin center. You then will be able to select up to 5 membergroups that wil be assigned to newly regged users.

Hope somebody can find it useful.

Dummy

P.S. This mod REQUIRES that Krikkert's(Christers) User More Membergroups mod be installed! ...and as useful as it is... INSTALL IT! Grin
 
IP Logged
 

DefUMMGroups.mod (7 KB | 112 )

Ya can Idiot proof it...
Ya can Dummy proof it...
But ya can never...
...Blonde proof it!
Dummy Proof
Hacker God
*****
Offline

Outside L.A., California, USA
Posts: 991



Reply #122 - 03.09.02 at 19:49:47  
Pic attached regarding the above post.

Dummy
 
IP Logged
 

dnumg.jpg (7 KB | 74 )
dnumg.jpg

Ya can Idiot proof it...
Ya can Dummy proof it...
But ya can never...
...Blonde proof it!
Christer Alexander
Moderator
*****
Offline

Lethbridge, Alberta, Canada
Posts: 3443



Reply #123 - 04.09.02 at 10:26:08  
I owe you one Dummy, I've got too much school at the moment Smiley
 
IP Logged
 

Code:
 
unless(0) { stab("LoonyPandora"); next; }
Dummy Proof
Hacker God
*****
Offline

Outside L.A., California, USA
Posts: 991



Reply #124 - 04.09.02 at 12:00:24  
Quote:
I owe you one Dummy, I've got too much school at the moment Smiley
At least you got your priorities straight! Way to go. And you don't owe me nothing... your "User's More Membergroups" mod adds so much flexibilty to YaBB that we owe you one!(and all the other great modders!)

Dummy
 
IP Logged
 

Ya can Idiot proof it...
Ya can Dummy proof it...
But ya can never...
...Blonde proof it!
Christer Alexander
Moderator
*****
Offline

Lethbridge, Alberta, Canada
Posts: 3443



Reply #125 - 04.09.02 at 13:16:40  
You just wait till #2 Wink

Will include a 'User Rights Management' thing Smiley
 
IP Logged
 

Code:
 
unless(0) { stab("LoonyPandora"); next; }
jaska
Hacker Wannabe
**
Offline

Tampere, Finland
Posts: 72



Reply #126 - 04.09.02 at 14:12:11  
User Rights management... Sounds AWESOME!

I've been thinking of a way to get two mods (EMARO and this)  combined so that admins of different categories would have rights to register new members and give them right to read their category.

In practise this would function as a forum for a large group of people that are divided into smaller groups. One member can belong to more than one subgroup. All groups would have a private category in the forum and the leader of that group could grant access rights to his category. Leaders can't be Admins, cause they shouldn't have access to other categories, unless the leader of that category grants him access.

In a nutshell: The forum should function in confirmation-mode (pretty much the same way as in EMARO), but access rights to different categories should be given by the admin of that category..

Doesn't sound too hard to implement?
 
IP Logged
 
Christer Alexander
Moderator
*****
Offline

Lethbridge, Alberta, Canada
Posts: 3443



Reply #127 - 04.09.02 at 14:47:09  
Considering I made both mods: No.
Considering the fact that an admin is sitewide and not restricted: Yes.
 
IP Logged
 

Code:
 
unless(0) { stab("LoonyPandora"); next; }
Dummy Proof
Hacker God
*****
Offline

Outside L.A., California, USA
Posts: 991



Reply #128 - 04.09.02 at 15:13:38  
I wonder if maybe Jaska might of meant "Global Moderator" or "Modertor" rather than Admin in some of his references?

Dummy
 
IP Logged
 

Ya can Idiot proof it...
Ya can Dummy proof it...
But ya can never...
...Blonde proof it!
Christer Alexander
Moderator
*****
Offline

Lethbridge, Alberta, Canada
Posts: 3443



Reply #129 - 04.09.02 at 16:56:22  
In that case: It would be possible, but it would also be a living nightmare to code Smiley
 
IP Logged
 

Code:
 
unless(0) { stab("LoonyPandora"); next; }
BHRA Webmaster
Mod Author of the Year 2002
*****
Offline

BHRA Headquarters, United Kingdom
Posts: 5238



Reply #130 - 04.09.02 at 16:59:53  
Perhaps he means some sort of "Catagory Moderator", who can give users access to the catagories he moderates?

(He could mean a standard moderator, but they are board specific, and membergroup access is determined per catagory. You could have two boards with different moderators within the same restricted catagory - but do you want all moderators within the catagory to be able to grant access? or only those that moderate all boards within that catagory?)

[Edit: You're right, it's a nightmare!]
 
IP Logged
 

...
World Domination, one smiley at a time!
Christer Alexander
Moderator
*****
Offline

Lethbridge, Alberta, Canada
Posts: 3443



Reply #131 - 04.09.02 at 17:03:23  
I'd think if this was me: I'd rather name every category-mod myself Smiley
 
IP Logged
 

Code:
 
unless(0) { stab("LoonyPandora"); next; }
jaska
Hacker Wannabe
**
Offline

Tampere, Finland
Posts: 72



Reply #132 - 04.09.02 at 20:36:28  
This is not about moderating boards, but moderating category accesses. So the most basic thing to do would be giving the Forum Admin the possibility to define a Category Moderator for each category in his Forum. This Category Moderator would have the possibility to define which members are allowed to access the Boards in the Category he moderates. The easiest would be doing this with member groups so that each Category was dedicated to one member group and the Category Moderator could define the members in this group. Ofcourse there could be members that should have access to more than one category and that is why we need the User's More Membergroups mod. And, thinking this thing more thoroughly, maybe the EMARO is not relevant in this task. Undecided

Does this sound more clear now? Shocked
 
IP Logged
 
Christer Alexander
Moderator
*****
Offline

Lethbridge, Alberta, Canada
Posts: 3443



Reply #133 - 04.09.02 at 21:05:48  
yeah. Seems like you want my User/Group Rights Management, which comes with the future v.2 Smiley
 
IP Logged
 

Code:
 
unless(0) { stab("LoonyPandora"); next; }
newbe
Hacker Wannabe
**
Offline

Posts: 50



Reply #134 - 05.09.02 at 14:29:25  
Before I start to work on this topic:

Considering Jake's reply #83 and lordallout at #120 - do I catch it right, that User's More Membergroups is still incomaptible with Add More Membergroups? Or am I missing something?
???

(I'm using add_more_membergroups_sp1_11 and UsersMoreMembergroups4.mod won't install on top right now - at least these versions are incompatible)
 
IP Logged
 
Pages: 1 ... 7 8 9 10 11 12
© 2000-2012 by - All rights reserved.

Project website hosting proudly sponsored and provided by UK2 Hosting
 The Project | News | Downloads | Mods | FAQ | Templates | Chat | Forum