• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Deleting a User

 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
a quick question.

How can we delete a user in Jforum?


???
[originally posted on jforum.net by shanyangqu]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually, there isn't a way to delete a user. You can only lock them. This is because there is no good way to deal with posting the user already has.

For example, suppose the user has started several topics that have replies from other people. If you delete the posts with the user, you delete the main topic post and all the replies.. so deleting the user that way will delete other users work. Not the right thing to do.

The way most people deal with "deleted" users is to lock the user id and change the user name to something like: user_DELETED or similar. This frees up the user id to be re-used and keeps the postings intact.

There's probably a better way that this could be dealt with but that's what's in the code now..
[originally posted on jforum.net by monroe]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks monroe, I guess Change User Name = Deleting A User!
[originally posted on jforum.net by shanyangqu]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
a quick question,

I wanted to know the working, when the admin clicks on the lock user tab. which java class and which method gets call to lock a particular user.

thanks
anil
[originally posted on jforum.net by anilhk]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
... it's quite some time ago that I last looked in the code (like more than a year ;))

But as far as I remember this should be some url like /user/edit ... so you have to look at the template mappings, which action class is being linked to this "url". This should be something with UserAction or so.

These methods take the request parameters and call the specific method internally to save the modified values to the db/cache

Monroe / Raphael may know more details on it
[originally posted on jforum.net by Sid]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To hopefully clairify this a little...

Look at the URL in form action of the admin screen you need to see what's happening.

Then use the information here:

http://www.jforum.net/posts/list/4159.page#17143

To find the related class.


[originally posted on jforum.net by monroe]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic