Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> MySQL
Author Message
liqiud
Regular
Regular



Joined: Nov 05, 2006
Posts: 53

PostPosted: Mon Jan 15, 2007 9:25 am Reply with quote

This is probably something simple, but my knowledge of sql is limited. I have a list of about 25 users that I want to delete, and rather then doing them through the nuke interface, I'd rather just run a quick script to take them all out. Anyone know of a simple way to do this?

Yes, I am running RavenNuke. Smile Best decision I ever made.

Thanks.
 
View user's profile Send private message Visit poster's website
fkelly
Former Moderator in Good Standing



Joined: Aug 30, 2005
Posts: 3312
Location: near Albany NY

PostPosted: Mon Jan 15, 2007 11:07 am Reply with quote

My advise ... don't do it. Use the interface. Those users may have "records" in a number of other tables besides the users table. Like if they did a post. There may be some kind of tested utility out there that replicates your_account in taking care of all the relationships but unless you can find that it's not safe. And heck, the user could be in a group ... so you delete the user record and it's left dangling in the group table. Just bit the bullet and use the interface.
 
View user's profile Send private message Visit poster's website
liqiud







PostPosted: Mon Jan 15, 2007 11:14 am Reply with quote

good points fkelly...thanks for the advice...i guess i get to use the interface and delete them.

Thanks for the quick reply.
 
Gremmie
Former Moderator in Good Standing



Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA

PostPosted: Mon Jan 15, 2007 11:50 am Reply with quote

Yeah you'll want to do it through the interface because it will clean up things like PM's, etc.

I looked at the code and found the function(s) that gets called when you delete a user. You could build a script that calls that for the users you want deleted if you had a lot of them.

_________________
Only registered users can see links on this board! Get registered or login! - An Event Calendar for PHP-Nuke
Only registered users can see links on this board! Get registered or login! - A Google Maps Nuke Module 
View user's profile Send private message
liqiud







PostPosted: Mon Jan 15, 2007 12:11 pm Reply with quote

i have like 25, but i'm not sure i'm up to scripting it, since i have to do it tonight...I may just use the interface and not worry about it...after all, It could always be worse. Smile
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> MySQL

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 ©