Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> CNB Your Account
Author Message
azakow
New Member
New Member



Joined: Jun 11, 2006
Posts: 18
Location: Germany

PostPosted: Fri Mar 30, 2007 7:05 am Reply with quote

Hi,

I'm using CNB YA 4.4.2 for a while now.

Deleting a user before I installed CNB YA, always left the forum posts of the deleted user available. This is desired behavior.

Using CNB YA I noticed that, removing a user also removes the form posts (does not display) of this user as well. This is not good.

Any thoughts?
 
View user's profile Send private message
hitwalker
Sells PC To Pay For Divorce



Joined:
Posts: 5661

PostPosted: Fri Mar 30, 2007 5:35 pm Reply with quote

removing a user in cnbya ?
But that just disables the user right? , it doesnt delete the user..
 
View user's profile Send private message
azakow







PostPosted: Sat Mar 31, 2007 3:22 am Reply with quote

It takes more than one step to be able to delete (remove) an active user.
1. disable user
2. remove user

The thing is that in std. nuke the delete methode will some how keep the forum posts of this user.
The delete methode of CNB YA does not do that.
 
Guardian2003
Site Admin



Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam

PostPosted: Sun Apr 01, 2007 8:13 am Reply with quote

Standard nuke changes the user_id of forum posts of deleted users to that of the admin. Not doing this can have bad effects like throwing the database tables out of synch.
 
View user's profile Send private message Send e-mail
TWChad
New Member
New Member



Joined: Oct 31, 2005
Posts: 2

PostPosted: Fri Jun 15, 2007 12:32 pm Reply with quote

I have been searching for a fix for this exact problem for several months. I don't know of any more terms, phrases or sites that I can search for a fix.

Just to be clear what my problem is; when I deactivate a user, then remove them (delete user account) from the database. Any posts that they authored in my forums disappear. These post should be given a different user_id and remain in the forums. However, The posts are not removed from the database, they are simply not associated with an active user_id any longer and are not displayed. They should be reassigned a default user_id automatically.

If this issue is a byproduct of CNBYA 4.4.2 and is not fixable, I will gladly go back to the standard Your_Account module.
I know it can with CNBYA in some capacity, because I have it working on one of the sites I help admin. However, that site, which is the only one it works on, was converted *phpbb forum database over to run on Ravens Distro 7.6.

If anyone has a fix, or has a link, or has anything that might help me resolve this problem, please help me out. It would be greatly appreciated.

Thank you,
TWChad.


Last edited by TWChad on Fri Jun 15, 2007 3:30 pm; edited 1 time in total 
View user's profile Send private message
azakow







PostPosted: Fri Jun 15, 2007 3:22 pm Reply with quote

I have taken a little deeper look into the problem.

It is correct, that the standard nuke "delete user" function replaces all post of this user ID with the user ID 1, hence the anonumous.
It does some "more complex" sql queries and then modifies the user ID field.

The delete function of CNBYA just removes the user ID form the users table, which causes the discribed behavior. Sad

The CNBYA function seems to be quite equal to the original procedure, as far as my understanding of the code is.
On the other hand, what resons or use cases where given to design the CNBYA functions this way:?:
IMO cut'n paste would have done the job.

I've not gotten to test some experimental cut'n paste code yet. Rolling Eyes

Was'nt there something like version 5 of CNBYA?
Maybe this problem is adressed.
 
TWChad







PostPosted: Fri Jun 15, 2007 8:46 pm Reply with quote

This is not a fix, but a alternate solution:

I found out that if you delete a user through the Forum Admin Panel instead of using the CNBYA Admin panel, the user will be deleted and that users posts will be re-associated with Anonymous and stay intact in the forums. Essentially this will eliminate the problem described in this thread.

Hopefully if 5.0 ever happens, this problem will be eliminated all together.

Hope this helps someone else.

As you can see I've been a member of a long time and simply using the search feature I have been able to find a fix for all my problems up until now.
Thanks again for an awesome site and all the contributions from everyone.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> CNB Your Account

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©