Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 DEV-Group
 DEV Bug Reports (Closed)
 BUG+FIX (3.1sr4): Private member selection
 Forum Locked  Topic Locked
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 3

Kat
Advanced Member

United Kingdom
3065 Posts

Posted - 19 January 2001 :  06:17:56  Show Profile  Visit Kat's Homepage
So you don't have any clues then?

KatsKorner
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 19 January 2001 :  06:45:26  Show Profile  Visit HuwR's Homepage
I am checkin, I am just hunting down my original code changes, to see what the difference is in my original coe, I used a nested select, which was taken out as MySQL does not support it

'Resistance is futile'
Go to Top of Page

Kat
Advanced Member

United Kingdom
3065 Posts

Posted - 19 January 2001 :  06:46:47  Show Profile  Visit Kat's Homepage
ok - I shall see if i can do anything too. But let me know as soon as you find a fix if you are not too busy.

Catch you later!

KatsKorner


Edited by - kat on 19 January 2001 06:47:09
Go to Top of Page

Kat
Advanced Member

United Kingdom
3065 Posts

Posted - 19 January 2001 :  08:53:14  Show Profile  Visit Kat's Homepage
Ok. update on what I have found is as follows:

add three members to the userlist. this updates correctly.

remove one user leaving two users in userlist. This updates correctly.

remove one more user leaving one user in userlist. This is where it retains the value of the user you have removed. it does not update properly.

IT ONLY HAPPENS WHEN YOU HAVE ONE USER LEFT IN THE LIST AND YOU PREVIOUSLY HAD MORE. No idea if this helps Huw but I am stuck now..

KatsKorner
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 19 January 2001 :  09:04:14  Show Profile  Visit HuwR's Homepage
Thanks for the info, I am a bit tied up, for an hour or two, but will get back to you later.

'Resistance is futile'
Go to Top of Page

Kat
Advanced Member

United Kingdom
3065 Posts

Posted - 19 January 2001 :  09:20:26  Show Profile  Visit Kat's Homepage
ok no problem.. I am trying it myself anyway!

KatsKorner
Go to Top of Page

Kat
Advanced Member

United Kingdom
3065 Posts

Posted - 19 January 2001 :  11:35:16  Show Profile  Visit Kat's Homepage
Right.. I have solved it.. fantastic. Might not be the best way but I figured it and it works so I shall post it here in a sec..

...watch this space..

KatsKorner
Go to Top of Page

Kat
Advanced Member

United Kingdom
3065 Posts

Posted - 19 January 2001 :  12:16:00  Show Profile  Visit Kat's Homepage
In post_info.asp I changed the function for newForumMembers..

sub newForumMembers(fForumID)
on error resume next
if Request.Form("AuthUsers") = "" then

exit Sub
end if

Users = split(Request.Form("AuthUsers"),",")

for count = Lbound(Users) to Ubound(Users)

if Trim(Users(count)) <> "" then

strSql = "INSERT INTO FORUM_ALLOWED_MEMBERS ("
strSql = strSql & " MEMBER_ID, FORUM_ID) VALUES ( "& Users(count) & ", " & fForumID & ")"

'Response.Write("<p>sql: " & strsql)

my_conn.execute (strSql)
if err.number <> 0 then
Go_REsult err.description, 0
end if
end if
next

end sub


Then in post.asp I changed the following to make new script functions:

In InsertSection("Del"):

//finished adding
finished = false;
count = document.PostTopic.AuthUsers.length - 1;
do //remove from source
{
try{
if (document.PostTopic.AuthUsers.options[count].text == "")
{
--count;
continue;
}
}
catch(e)
{
return;
}

if (document.PostTopic.AuthUsers.options[count].selected )
{
for ( z = count ; z < document.PostTopic.AuthUsers.length-1;z++)
{
if ((document.PostTopic.AuthUsers.length-count) == 2)
{
document.PostTopic.AuthUsers.options[z].value = "";
document.PostTopic.AuthUsers.options[z].text = "";
}

else
{
document.PostTopic.AuthUsers.options[z].value = document.PostTopic.AuthUsers.options[z+1].value;
document.PostTopic.AuthUsers.options[z].text = document.PostTopic.AuthUsers.options[z+1].text;
}
}
document.PostTopic.AuthUsers.length -= 1;


}--count;
if (count < 0)
finished = true;
}while(!finished) //finished removing


no time to post any more now but I will Monday .. but this basically fixes it.

KatsKorner
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 19 January 2001 :  12:32:05  Show Profile  Visit HuwR's Homepage
Looks pretty good, will do some testing over the weekend.

'Resistance is futile'
Go to Top of Page

Reinsnitz
Snitz Forums Admin

USA
3545 Posts

Posted - 29 January 2001 :  21:35:44  Show Profile  Visit Reinsnitz's Homepage  Send Reinsnitz an AOL message  Send Reinsnitz an ICQ Message  Send Reinsnitz a Yahoo! Message
how'd it go Huw?

Reinsnitz (Mike)
><)))'>
"The glory of young men is their strength, and the honor of old men is their gray hair." - Proverbs 20:29
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 30 January 2001 :  04:04:47  Show Profile  Visit HuwR's Homepage
works ok

'Resistance is futile'
Go to Top of Page

Kat
Advanced Member

United Kingdom
3065 Posts

Posted - 30 January 2001 :  04:13:43  Show Profile  Visit Kat's Homepage
Very happy to hear it! I was hoping you would approve..

KatsKorner
Go to Top of Page

Reinsnitz
Snitz Forums Admin

USA
3545 Posts

Posted - 20 February 2001 :  23:53:04  Show Profile  Visit Reinsnitz's Homepage  Send Reinsnitz an AOL message  Send Reinsnitz an ICQ Message  Send Reinsnitz a Yahoo! Message
for some reason I'm thinking that this has been addressed... but part of me is saying it hasn't... gah... looking

-bump-

Reinsnitz (Mike)
><)))'>
"Therefore go and make disciples of all nations,..." Matthew 28:19a
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 21 February 2001 :  00:08:29  Show Profile  Visit HuwR's Homepage
no it was'nt, if you want me to make the changes, I can do it later. or you can do them.

Go to Top of Page

Reinsnitz
Snitz Forums Admin

USA
3545 Posts

Posted - 21 February 2001 :  20:21:34  Show Profile  Visit Reinsnitz's Homepage  Send Reinsnitz an AOL message  Send Reinsnitz an ICQ Message  Send Reinsnitz a Yahoo! Message
fixed in the source of sf2k_31sr5a9.zip

Reinsnitz (Mike)
><)))'>
"Therefore go and make disciples of all nations,..." Matthew 28:19a
Go to Top of Page
Page: of 3 Previous Topic Topic Next Topic  
Previous Page
 Forum Locked  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.12 seconds. Powered By: Snitz Forums 2000 Version 3.4.07