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  ›  "Add to managers" bug
Users Browsing Forum
No Members and 1 Guests

"Add to managers" bug  This thread currently has 561 views. Print
1 Pages 1 Recommend Thread
Opfer
August 25, 2006, 4:08am Report to Moderator Report to Moderator

E-Blah Member
The Mod' King
Posts: 325
Gender: Male
Posts Per Day: 0.22
Reputation: 91.67%
Reputation Score: +11 / -1
Time Online: 2 days 3 hours 21 minutes
Location: Türkheim, Germany
Age: 20
There seems to be a problem with the "Add to managers" function in the "Manage Group" page.

Selecting a member in the list and clicking the "Add to managers" button results in the error message "You either did not select any usernames, or the names you entered were invalid". I suspect this being a problem with the fact that the values of the listbox (i.e. <option value="4">) are user IDs and the function to add managers might expect member names, but that's just my guess, I didn't dig into it any further.
Logged Offline
Site Site Private Message Private message
Justin
August 25, 2006, 8:12am Report to Moderator Report to Moderator

The E-Blah Developer
E-Blah Programmer
Posts: 15,075
Gender: Male
Posts Per Day: 6.52
Reputation: 93.40%
Reputation Score: +297 / -21
Time Online: 36 days 23 hours 27 minutes
Location: Tallassee, AL
Age: 22
It works fine for me?


I do installs for $25 and upgrades for $20.
Technical support is always free.

  Donate to E-Blah!  

My Websites: Revolution Reality (My Blog)  |  MinistryTalk.com  |  Portfolio

"But you, O Lord, are a compassionate and gracious God, slow to anger, abounding in love and faithfulness." — Psalm 86:15 NIV

Logged Offline
Site Site Private Message Private message Reply: 1 - 5
Opfer
August 25, 2006, 8:36am Report to Moderator Report to Moderator

E-Blah Member
The Mod' King
Posts: 325
Gender: Male
Posts Per Day: 0.22
Reputation: 91.67%
Reputation Score: +11 / -1
Time Online: 2 days 3 hours 21 minutes
Location: Türkheim, Germany
Age: 20
Alright, I've had a look at the code:

There is this line in a foreach loop in "sub Manage2".

$_ = FindUsername($_);

If I comment that one out, The three buttons below the list box work fine. But then I have to type in a users ID (instead of his display name) in the textbox below if I want to add him.

I don't know your code, but I suppose "FindUsername" returns a users ID when given his screen name. Since it is trying to use that function on members from the listbox (which are represented by names), it returns an empty string (which is why I get this error).

So what going on here?
Logged Offline
Site Site Private Message Private message Reply: 2 - 5
Justin
August 25, 2006, 3:44pm Report to Moderator Report to Moderator

The E-Blah Developer
E-Blah Programmer
Posts: 15,075
Gender: Male
Posts Per Day: 6.52
Reputation: 93.40%
Reputation Score: +297 / -21
Time Online: 36 days 23 hours 27 minutes
Location: Tallassee, AL
Age: 22
Yeah, the FindUsername will return the actually ID.

I meant to repost, as I fixed it and uploaded it to the downloads page earlier.

Code
		GetMemberID($_);

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


Hope that works.


I do installs for $25 and upgrades for $20.
Technical support is always free.

  Donate to E-Blah!  

My Websites: Revolution Reality (My Blog)  |  MinistryTalk.com  |  Portfolio

"But you, O Lord, are a compassionate and gracious God, slow to anger, abounding in love and faithfulness." — Psalm 86:15 NIV

Logged Offline
Site Site Private Message Private message Reply: 3 - 5
Opfer
August 25, 2006, 4:49pm Report to Moderator Report to Moderator

E-Blah Member
The Mod' King
Posts: 325
Gender: Male
Posts Per Day: 0.22
Reputation: 91.67%
Reputation Score: +11 / -1
Time Online: 2 days 3 hours 21 minutes
Location: Türkheim, Germany
Age: 20
Like a charm, thanks.

Just one more thing: How do I know when you upload a fix, since there doesn't seem to be any change to the download information (like date or version)?

Also, are there more fixes apart from this one that have been applied to the package on the download page since the initial release on August 21st?
Logged Offline
Site Site Private Message Private message Reply: 4 - 5
Justin
August 25, 2006, 7:30pm Report to Moderator Report to Moderator

The E-Blah Developer
E-Blah Programmer
Posts: 15,075
Gender: Male
Posts Per Day: 6.52
Reputation: 93.40%
Reputation Score: +297 / -21
Time Online: 36 days 23 hours 27 minutes
Location: Tallassee, AL
Age: 22
Yes, there have.

I'll probably release a 10.01 version next week.


I do installs for $25 and upgrades for $20.
Technical support is always free.

  Donate to E-Blah!  

My Websites: Revolution Reality (My Blog)  |  MinistryTalk.com  |  Portfolio

"But you, O Lord, are a compassionate and gracious God, slow to anger, abounding in love and faithfulness." — Psalm 86:15 NIV

Logged Offline
Site Site Private Message Private message Reply: 5 - 5
1 Pages 1 Recommend Thread
Print

E-Blah Community    E-Blah Discussion    E-Blah Bugs  ›  "Add to managers" bug