Welcome to the E-Blah Community!
We would like to welcome you to our community and invite you to register an account or login.
Being a registered member is important, as it gives you several advantages over the normal Guest status. After registering you will be able to download files and images, post messages, and access member-only portions of the forum - just to name a few. Registration is quick and simple, and only takes about a minute of your time.

E-Blah Community    E-Blah Discussion    E-Blah Bugs  ›  Bug when adding user to a group as a manager
Users Browsing Forum
No Members and 1 Guests

Bug when adding user to a group as a manager  This thread currently has 54 views. Print
1 Pages 1 Recommend Thread
evixion
June 30, 2009, 7:11pm Report to Moderator Report to Moderator

Web Developer for Hire
Forum Moderation
Posts: 196
Gender: Male
Posts Per Day: 0.42
Reputation: 100.00%
Reputation Score: +4 / -0
Time Online: 6 days 20 hours 49 minutes
Location: Elizabethton, Tennessee
Age: 24
I get this message whenever I attempt to add a user to a group or make a user the manager of a group.

Quoted Text
Sorry, but an error occurred. If you are unsure about how to solve this error you can contact the system administrator.

You either did not select any usernames, or the names you entered were invalid.


Logged Offline
Site Site Private Message Private message Windows Live Messenger WLM
1850
July 2, 2009, 10:14am Report to Moderator Report to Moderator
Guest User
How are you adding them?
Logged
E-mail E-mail Reply: 1 - 8
evixion
July 2, 2009, 10:20am Report to Moderator Report to Moderator

Web Developer for Hire
Forum Moderation
Posts: 196
Gender: Male
Posts Per Day: 0.42
Reputation: 100.00%
Reputation Score: +4 / -0
Time Online: 6 days 20 hours 49 minutes
Location: Elizabethton, Tennessee
Age: 24
with the groups manager

i want non-admins to be able to add users to their group (example: /a-groups/group-6/)


Logged Offline
Site Site Private Message Private message Windows Live Messenger WLM Reply: 2 - 8
1850
July 2, 2009, 10:48am Report to Moderator Report to Moderator
Guest User
You'll have to excuse my ignorance, never used this feature. I created a test group and member but see no way of adding him to the group this way  
Logged
E-mail E-mail Reply: 3 - 8
1850
July 2, 2009, 10:54am Report to Moderator Report to Moderator
Guest User
OK, I found it and from what I can see, the group needs to be set to Accepting Members, the Member needs to apply to be added and they will show in a list. The manager can then add or deny their request.

Revision History (1 edits)
1850  -  July 2, 2009, 2:15pm
Logged
E-mail E-mail Reply: 4 - 8
evixion
July 2, 2009, 11:50am Report to Moderator Report to Moderator

Web Developer for Hire
Forum Moderation
Posts: 196
Gender: Male
Posts Per Day: 0.42
Reputation: 100.00%
Reputation Score: +4 / -0
Time Online: 6 days 20 hours 49 minutes
Location: Elizabethton, Tennessee
Age: 24
I am trying to add them to the managers part of the group


Logged Offline
Site Site Private Message Private message Windows Live Messenger WLM Reply: 5 - 8
1850
July 2, 2009, 2:16pm Report to Moderator Report to Moderator
Guest User
It works for me on my test board, if you want me to take a look the pm Admin login info.
Logged
E-mail E-mail Reply: 6 - 8
evixion
July 20, 2009, 7:09pm Report to Moderator Report to Moderator

Web Developer for Hire
Forum Moderation
Posts: 196
Gender: Male
Posts Per Day: 0.42
Reputation: 100.00%
Reputation Score: +4 / -0
Time Online: 6 days 20 hours 49 minutes
Location: Elizabethton, Tennessee
Age: 24
The funny thing is the command works and it adds them to the managers list, but it still throws up the

Quoted Text
You either did not select any usernames, or the names you entered were invalid.


Error


Logged Offline
Site Site Private Message Private message Windows Live Messenger WLM Reply: 7 - 8
evixion
July 23, 2009, 8:00am Report to Moderator Report to Moderator

Web Developer for Hire
Forum Moderation
Posts: 196
Gender: Male
Posts Per Day: 0.42
Reputation: 100.00%
Reputation Score: +4 / -0
Time Online: 6 days 20 hours 49 minutes
Location: Elizabethton, Tennessee
Age: 24
I think I've located it. I tried to change it to work but I still get the error.

Filename: Members.pl

Original Code (where I believe the error is coming from):

Code
	foreach(split(',',$type)) {
		GetMemberID($_);

		if($memberid{$_}{'sn'} eq '') { $_ = FindUsername($_); GetMemberID($_); }

		if($memberid{$_}{'sn'} eq '' || ($username ne $_ && $manager{$_} && !$members{'Administrator',$username})) { next; }
		$chosen{$_} = 1;
		$addgroup .= "$_,";
	}
	$addgroup =~ s/,\Z//g;
	if($addgroup eq '' || ($FORM{'manage'} && !$members{'Administrator',$username})) { error($memtext[214]); }


I figured since my main admin group is not called "Administrator", I would just replace it with "High Admin" (which is the name of the admins on the forum).

Here is my change:

Code
	foreach(split(',',$type)) {
		GetMemberID($_);

		if($memberid{$_}{'sn'} eq '') { $_ = FindUsername($_); GetMemberID($_); }

		if($memberid{$_}{'sn'} eq '' || ($username ne $_ && $manager{$_} && !$members{'High Admin',$username})) { next; }
		$chosen{$_} = 1;
		$addgroup .= "$_,";
	}
	$addgroup =~ s/,\Z//g;
	if($addgroup eq '' || ($FORM{'manage'} && !$members{'High Admin',$username})) { error($memtext[214]); }



I still get the error. That is the only place $memtext[214] (the error message) is in the Members.pl file. Does anyone have any suggestions?


Logged Offline
Site Site Private Message Private message Windows Live Messenger WLM Reply: 8 - 8
1 Pages 1 Recommend Thread
Print

E-Blah Community    E-Blah Discussion    E-Blah Bugs  ›  Bug when adding user to a group as a manager

Thread Tags
i,  user,  error