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 Discussions (General)
 Please help me find the member functions
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

chotie
Starting Member

25 Posts

Posted - 10 April 2003 :  14:13:08  Show Profile  Visit chotie's Homepage
Hello Snitz Admins.

I am looking for 3 functions.
I am not sure but i think i might find it in register.asp?

1. The function where i create and save a [new member].

2. The function where i update or change settings on a member.

3. The function which removes a member.

Is it possible to POST a new member to register.asp?


I am very grateful for help with this!!

Br,
Christian O.
chot@home.se
============================================================

Background:
I am trying to find a way to merge the logins between
an external xml database and this snitz database.
(The external xml database are used by the portal
FullXML and the goal are to use snitz forum with this.)

Br,
Christian O.
chot@home.se

Edited by - chotie on 10 April 2003 16:33:11

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 10 April 2003 :  17:18:23  Show Profile  Send ruirib a Yahoo! Message
There no functions to do that, AFAIK. The code to create a member is in register.asp, in fact it is just some code to get the values from the form and generate the corresponding SQL statement. Member deletion is done through pop_delete.asp, starting at line# 562 and editing a member. Member profile updating is done in inc_profile.asp, starting around line #1157.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

chotie
Starting Member

25 Posts

Posted - 11 April 2003 :  07:43:47  Show Profile  Visit chotie's Homepage
Hello again and thank you very much for helping! :)

I am trying to find out som points.

In pop_delete.asp:
Do i have to change or delete the posts a member have done
before i remove him?

When i call pop_delete.asp i use:
'pop_delete.asp?mode=Member&MEMBER_ID=" & Members_MemberID & "')""" dwstatus
from member.asp. Which attributes should i send to be able to delete a member?

mode=Member for deleting a member i can see.
MEMBER_ID for telling which member it is
dwstatus ?

Thanks for helping. :)

Christian O.
chot@home.se

Br,
Christian O.
chot@home.se
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 11 April 2003 :  07:53:35  Show Profile  Send ruirib a Yahoo! Message
pop_delete won't really delete the member from the DB, if he has posts. Instead his name his changed to n/a (only if he has posts) and his posts will be kept. If a member to be deleted has no posts, pop_delete will delete it.
pop_delete only requires the two parameters you described: mode=Member & MEMBER_ID= desired member id. Never mind the dwstatus function, it allows a message display when you hover the link in your browser.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 11 April 2003 :  08:01:47  Show Profile
When a member is deleted (by clicking on from members page) it is processed as below:

1. If the member has made no posts the record is deleted from the database.

2. If the member has made posts the record is not deleted from the database. Instead USERNAME for the member is changed to "n/a" and TITLE is changed to "deleted"
Go to Top of Page

chotie
Starting Member

25 Posts

Posted - 11 April 2003 :  08:58:05  Show Profile  Visit chotie's Homepage
Thank you both of you. I must be really tired today (friday
and everything..)

I am reading the code, (pop_delete.asp), but keep missing the
control when validating the admin that deletes the user.

Thanks for helping!!

/Christian O.

Br,
Christian O.
chot@home.se

Edited by - chotie on 11 April 2003 09:41:20
Go to Top of Page

chotie
Starting Member

25 Posts

Posted - 11 April 2003 :  12:21:02  Show Profile  Visit chotie's Homepage
quote:
Originally posted by ruirib

pop_delete won't really delete the member from the DB, if he has posts. Instead his name his changed to n/a (only if he has posts) and his posts will be kept. If a member to be deleted has no posts, pop_delete will delete it.
pop_delete only requires the two parameters you described: mode=Member & MEMBER_ID= desired member id. Never mind the dwstatus function, it allows a message display when you hover the link in your browser.



Thank you!

I am sorry for bugging you but i still have 2 questions.

1.
When deleting a regular "member" (from the member group),
is it sufficient to check if the user has posts, and if
he has i rename the user N/A.
If no posts exists i can delete the member?

2.
When creating a user:
I check that the username and the email does not exist
since before.
Is it ok to just add the new "database-posts" and a secuentiall
"MEMBER_ID" to the snitz-database?

Thanks for helping! :)

Have a great holiday...

Br,
Christian O.
chot@home.se

Br,
Christian O.
chot@home.se
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 11 April 2003 :  18:00:58  Show Profile  Send ruirib a Yahoo! Message
quote:
Originally posted by chotie


1.
When deleting a regular "member" (from the member group),
is it sufficient to check if the user has posts, and if
he has i rename the user N/A.
If no posts exists i can delete the member?


I guess so.

quote:

2.
When creating a user:
I check that the username and the email does not exist
since before.
Is it ok to just add the new "database-posts" and a secuentiall
"MEMBER_ID" to the snitz-database?


No it's not enough. There are other required fields. Maybe this post can help: http://forum.snitz.com/forum/topic.asp?TOPIC_ID=43209

The last replies have some info on required fields. Anyway I'm not completely sure on what are the required fields, but those I mention in the other thread are required for sure. I can only advise to test the code you plan to add thoroughly.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

chotie
Starting Member

25 Posts

Posted - 12 April 2003 :  09:58:00  Show Profile  Visit chotie's Homepage
Thanks Ruirib!

One last question on this:
MEMBER_ID is also a required field i understand.
Should i run a stored proc and get the member ID
that i should put into its table?

I dont see code for it.

I am thinking that creation of the member ID
are made when the user are saved into the database.
Are member ID created automaticly and also
automaticly stored when i save the member?

Thanks again!!

Have a great weekend!! :)

Br,
Christian O.
chot@home.se

Br,
Christian O.
chot@home.se
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 12 April 2003 :  15:05:45  Show Profile
quote:
Should i run a stored proc and get the member ID


There is a function getMemberID in inc_func_**** file. It gets the memberid for a username (passed to the function as an argument).

quote:
Are member ID created automaticly and also
automaticly stored when i save the member?


Correct.
Go to Top of Page

chotie
Starting Member

25 Posts

Posted - 14 April 2003 :  07:37:39  Show Profile  Visit chotie's Homepage
Thk you very much GauravBhabu.

I saw a loop function in pop_delete.asp.
It was on line 568.

I am just thinking: Is this function taking out the last
MEMBER_ID in the database?

loop:
----------------------------------
delAr = split(Member_ID, ",")
for i = 0 to ubound(delAr)
----------------------------------

I am sure i am missunderstanding this.
What are this loop doing?

Thanks a million.. :)

Br,
Christian O.
chot@home.se

Br,
Christian O.
chot@home.se
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 14 April 2003 :  08:31:16  Show Profile  Send ruirib a Yahoo! Message
It's not doing that. In fact, after a just quick look at the code, I think the loop is executed only once.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

chotie
Starting Member

25 Posts

Posted - 14 April 2003 :  08:46:43  Show Profile  Visit chotie's Homepage
Yes. I tried it here and it a (ubound of delAR) putted the
MEMBER_ID in the first element. That would make it to execute once.

Thank you ruirib, for clearing that up for me. :)

Br,
Christian O.
chot@home.se

Br,
Christian O.
chot@home.se
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 14 April 2003 :  09:18:54  Show Profile  Send ruirib a Yahoo! Message
You're welcome.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.5 seconds. Powered By: Snitz Forums 2000 Version 3.4.07