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

18.06.13 at 08:34:37, Welcome, Guest. Please Login or Register

Choose Language:
Pages: 1 ... 8 9 10 11 12 
[DONE] User's More Membergroups! (Read 27395 times)
Christer Alexander
Moderator
*****
Offline

Lethbridge, Alberta, Canada
Posts: 3443



Reply #135 - 05.09.02 at 15:34:37  
it is still incompatible, yes. But I think the only problem left is the Profile.pl part, so I'll see about making a fix later tonight. Good?
 
IP Logged
 

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

Posts: 50



Reply #136 - 05.09.02 at 16:08:44  
Quote:
it is still incompatible, yes. But I think the only problem left is the Profile.pl part, so I'll see about making a fix later tonight. Good?

EXCELLENT!  ...

Looking at UserMoreMembergroups4.mod, the following steps are in conflict with add_more_membergroups_sp1_11:

step 2  (in Profile.pl)
step 4        - " -
step 7        - " -
step 10 (in Load.pl)
step 11 (in BoardIndex.pl)

(I'm using the advanced_imbox_sp1_11.mod compatible version of add_more_membergroups from the SP1/1.1 confusion thread)

Thank's a lot Christer!
 
IP Logged
 
Christer Alexander
Moderator
*****
Offline

Lethbridge, Alberta, Canada
Posts: 3443



Reply #137 - 05.09.02 at 20:51:20  
attached is the Users More Membergroups for AMM, beta 1.
 
IP Logged
 

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

Posts: 50



Reply #138 - 06.09.02 at 07:50:29  
Quote:
attached is the Users More Membergroups for AMM, beta 1.


Very good, Christer!

One minor correction (really not worth to mention - but makes life easier):

there is a blank needed in front of "FILE"
Code:

<search for>
fopen(FILE, ">$memberdir/$member{'username'}.dat", 1);
</search for>

should be:

<search for>
fopen( FILE, ">$memberdir/$member{'username'}.dat", 1);
</search for>

(that's for the configuration I described 2 posts above) corrected mod is attached.

I'll have a few meetings today and won't ba able to test much before afternoon. Will report then ...
 
IP Logged
 
newbe
Hacker Wannabe
**
Offline

Posts: 50



Reply #139 - 06.09.02 at 08:34:20  
Not that I know much more yet, but I need to add a minor correction to the bug fixed mod from the last post:

Code:

<search for>
foreach $tmpa (@membergroups) {
if( $tmpa eq $settings[7]) { $openmemgr{$curcat} = 1; last; }
</search for>

<replace>
fopen(accset, "$memberdir/$username.kri");
@youraccess = <accset>;
fclose(accset);
chomp @youraccess;
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>


Delete the last line in the replace part (the curly bracket) to avoid an annoying error message in BoardIndex.pl.

(corrected mod attached)
 
IP Logged
 
newbe
Hacker Wannabe
**
Offline

Posts: 50



Reply #140 - 06.09.02 at 16:46:46  
That is looking good, Christer!


I'm testing on a SP 1.1 system with the following configuration (besides of other mods):

- Advanced More Membergroups SP1/1.1- (everybody be sure to use this version if you want to use the advanced imbox, too)

- Advanced Instant Message Box 1.1 (install after(!) Add More Membergroups)

- User's More Membergroups (link to current version I'm using)


Edited:
edited to link to latest fix of User's More Membergroups Mod for AMM
« Last Edit: 06.10.02 at 15:33:56 by newbe »  
IP Logged
 
newbe
Hacker Wannabe
**
Offline

Posts: 50



Reply #141 - 06.09.02 at 20:44:33  
3. bugfix for the AMM version:

Code:

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; }
}


Too may curly brackets closed.

(corrected mod attached)
 
IP Logged
 
newbe
Hacker Wannabe
**
Offline

Posts: 50



Reply #142 - 07.09.02 at 03:18:22  
Another correction:

"10 most recent posts" from the board index page didn't work properly.

The following code added to the mod (for changes in Recent.pl):
Code:
<search for>
$oldestfound = stringtotime("01/10/37 $txt{'107'} 00:00:00");
</search for>

<add before>
fopen(accset, "$memberdir/$username.kri");
@youraccess = <accset>;
fclose(accset);
chomp @youraccess;

</add before>

<search for>
foreach $tmpa (@membergroups) {
if( $tmpa eq $settings[7]) { $openmemgr{$curcat} = 1; last; }
}
</search for>

<replace>
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>


It now displays the 10 most recent posts the user is allowed to view.

(corrected mod attached)
 
IP Logged
 
newbe
Hacker Wannabe
**
Offline

Posts: 50



Reply #143 - 07.09.02 at 03:55:59  
Argh, what are you doing with me?

Show last posts of a specific user also didn't work properly (problem like before: function didn't know that there are "more usergroups" now).

Changed sub usersrecentposts in Profile.pl in the same way as described in the post above.

(corrected mod attached)
 
IP Logged
 
newbe
Hacker Wannabe
**
Offline

Posts: 50



Reply #144 - 07.09.02 at 04:55:45  
Oh, man!

Search.pl also didn't do the job...   Angry

Attached please find next fix.
 
IP Logged
 
newbe
Hacker Wannabe
**
Offline

Posts: 50



Reply #145 - 07.09.02 at 13:43:46  
If a user was deleted, the ".kri" file remained in the $memberdir (which I consider to be a security issue). These files are also deleted now.

(next fix attached)
 
IP Logged
 
newbe
Hacker Wannabe
**
Offline

Posts: 50



Reply #146 - 07.09.02 at 14:42:29  
Sorry, I coded a dup in beta 1.04 (last post)
(corrected version attached)

This version now seems to have the functionality you would expect regarding limited access to certain categories. (At least I hope so)

@Christer:
Maybe it's a good idea to synchronize the AMM version with your original soon. What you think?
(As long as I know what I did, I could work in my recent changes if you want)
 
IP Logged
 
Christer Alexander
Moderator
*****
Offline

Lethbridge, Alberta, Canada
Posts: 3443



Reply #147 - 07.09.02 at 14:47:07  
I will work it into version 2.0 if you like?
 
IP Logged
 

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

Posts: 50



Reply #148 - 07.09.02 at 14:51:50  
Quote:
I will work it into version 2.0 if you like?


Sure, it's your mod!
 
IP Logged
 
newbe
Hacker Wannabe
**
Offline

Posts: 50



Reply #149 - 07.09.02 at 20:03:06  
Hmmm,

I'm completely lost when I try to imagine how this code snipplet from Display.pl is supposed to work (and indeed, it doesn't work in my case):
Code:
		$krititleinfo{$krititleinfo{$musername}} 



I changed it to this  
Code:
		$krititleinfo<br><br> 


and Display.pl now displays the "more usergroups" from the .kri file at least. (Although it ignores the stars from the additional groups)

I use it this way:

first position (in Profile):
I either make the user "Administrator", "Global Moderator", or I leave it blank. Depending on what you choose here, the number of stars will be calculated depending on the number of posts (that's if you leave it blank) or the user gets administrator or global moderator stars.

second to sixth position:
Here I enter the additional membergroups the user belongs to. Depending on this, s/he gets access to those parts of the forum which are access restricted. I tend to use kind of titles which open these parts of the board to the user. With the change mentioned above, these titles are listed below the stars.

For my purpose that's an excellent solution, but your mileage may be vary...

(changed mod attached)
 
IP Logged
 
Pages: 1 ... 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