Page Index Toggle Pages: 1 ... 8 9 [10] 11 12  Send TopicPrint
Very Hot Topic (More than 25 Replies) [DONE] User's More Membergroups! (Read 70790 times)
Christer Alexander
God Member
*****
Offline


Make my day...

Posts: 3443
Location: Lethbridge
Joined: Feb 10th, 2002
Gender: Male
Re: [DONE] User's More Membergroups!
Reply #135 - Sep 5th, 2002 at 2:34pm
Print Post  
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?
  

Code
Select All
unless(0) { stab("LoonyPandora"); next; } 

Back to top
IP Logged
 
newbe
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 50
Joined: Apr 28th, 2002
Re: [DONE] User's More Membergroups!
Reply #136 - Sep 5th, 2002 at 3:08pm
Print Post  
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!
  
Back to top
 
IP Logged
 
Christer Alexander
God Member
*****
Offline


Make my day...

Posts: 3443
Location: Lethbridge
Joined: Feb 10th, 2002
Gender: Male
Re: [DONE] User's More Membergroups!
Reply #137 - Sep 5th, 2002 at 7:51pm
Print Post  
attached is the Users More Membergroups for AMM, beta 1.
  

Code
Select All
unless(0) { stab("LoonyPandora"); next; } 

Back to top
IP Logged
 
newbe
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 50
Joined: Apr 28th, 2002
Re: [DONE] User's More Membergroups!
Reply #138 - Sep 6th, 2002 at 6:50am
Print Post  
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
Select All
<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 ...
  
Back to top
 
IP Logged
 
newbe
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 50
Joined: Apr 28th, 2002
Re: [DONE] User's More Membergroups!
Reply #139 - Sep 6th, 2002 at 7:34am
Print Post  
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
Select All
<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)
  
Back to top
 
IP Logged
 
newbe
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 50
Joined: Apr 28th, 2002
Re: [DONE] User's More Membergroups!
Reply #140 - Sep 6th, 2002 at 3:46pm
Print Post  
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: Oct 6th, 2002 at 2:33pm by newbe »  
Back to top
 
IP Logged
 
newbe
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 50
Joined: Apr 28th, 2002
Re: [DONE] User's More Membergroups!
Reply #141 - Sep 6th, 2002 at 7:44pm
Print Post  
3. bugfix for the AMM version:

Code
Select All
		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)
  
Back to top
 
IP Logged
 
newbe
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 50
Joined: Apr 28th, 2002
Re: [DONE] User's More Membergroups!
Reply #142 - Sep 7th, 2002 at 2:18am
Print Post  
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
Select All
<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)
  
Back to top
 
IP Logged
 
newbe
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 50
Joined: Apr 28th, 2002
Re: [DONE] User's More Membergroups!
Reply #143 - Sep 7th, 2002 at 2:55am
Print Post  
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)
  
Back to top
 
IP Logged
 
newbe
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 50
Joined: Apr 28th, 2002
Re: [DONE] User's More Membergroups!
Reply #144 - Sep 7th, 2002 at 3:55am
Print Post  
Oh, man!

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

Attached please find next fix.
  
Back to top
 
IP Logged
 
newbe
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 50
Joined: Apr 28th, 2002
Re: [DONE] User's More Membergroups!
Reply #145 - Sep 7th, 2002 at 12:43pm
Print Post  
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)
  
Back to top
 
IP Logged
 
newbe
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 50
Joined: Apr 28th, 2002
Re: [DONE] User's More Membergroups!
Reply #146 - Sep 7th, 2002 at 1:42pm
Print Post  
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)
  
Back to top
 
IP Logged
 
Christer Alexander
God Member
*****
Offline


Make my day...

Posts: 3443
Location: Lethbridge
Joined: Feb 10th, 2002
Gender: Male
Re: [DONE] User's More Membergroups!
Reply #147 - Sep 7th, 2002 at 1:47pm
Print Post  
I will work it into version 2.0 if you like?
  

Code
Select All
unless(0) { stab("LoonyPandora"); next; } 

Back to top
IP Logged
 
newbe
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 50
Joined: Apr 28th, 2002
Re: [DONE] User's More Membergroups!
Reply #148 - Sep 7th, 2002 at 1:51pm
Print Post  
Quote:
I will work it into version 2.0 if you like?


Sure, it's your mod!
  
Back to top
 
IP Logged
 
newbe
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 50
Joined: Apr 28th, 2002
Re: [DONE] User's More Membergroups!
Reply #149 - Sep 7th, 2002 at 7:03pm
Print Post  
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
Select All
		$krititleinfo{$krititleinfo{$musername}} 



I changed it to this 
Code
Select All
		$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)
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 ... 8 9 [10] 11 12 
Send TopicPrint