2006-05-23, 10:06 PM
Pages: 1 2
2006-05-24, 08:35 AM
Refresh this topic...
2006-05-24, 10:58 AM
No need to refresh it, you have just posted it this morning.
This option isn't yet a feature in mybb, you will need a modification.
I'll try to find some time to test a script for that.
regards
This option isn't yet a feature in mybb, you will need a modification.
I'll try to find some time to test a script for that.
regards
2006-05-24, 11:22 AM
Go to admin/users.php
find:
This will delete all users when you delete that user, however it's not an option it does it on every delete.
find:
$db->query("DELETE FROM ".TABLE_PREFIX."sessions WHERE uid='".intval($mybb->input['uid'])."'");
add after:$db->query("DELETE FROM ".TABLE_PREFIX."posts WHERE uid='".intval($mybb->input['uid'])."'");
And your done This will delete all users when you delete that user, however it's not an option it does it on every delete.
2006-05-24, 02:39 PM
You'll have to delete threads, PMs, subscriptions, etc., too.
2006-05-24, 03:01 PM
Use this then instead.
All I could think of.
$db->query("DELETE FROM ".TABLE_PREFIX."posts WHERE uid='".intval($mybb->input['uid'])."'");
$db->query("DELETE FROM ".TABLE_PREFIX."threadratings WHERE uid='".intval($mybb->input['uid'])."'");
$db->query("DELETE FROM ".TABLE_PREFIX."pollvotes WHERE uid='".intval($mybb->input['uid'])."'");
$db->query("DELETE FROM ".TABLE_PREFIX."searchlog WHERE uid='".intval($mybb->input['uid'])."'");
$db->query("DELETE FROM ".TABLE_PREFIX."attachments WHERE uid='".intval($mybb->input['uid'])."'");
$db->query("DELETE FROM ".TABLE_PREFIX."threadsread WHERE uid='".intval($mybb->input['uid'])."'");
But PMs and Subscriptions is already deleted by default.All I could think of.
2006-05-24, 04:00 PM
If you delete threads, you'll also have to delete the posts by other people of those threads.
2006-05-24, 04:13 PM
Oh, and it shouldn't be necessary anyways since an thread is added as an post as well. *deletes it*
2006-05-24, 06:56 PM
ofcourse the posts should be deleted because they wont appear anywhere anymore, at the same time will keep counting into the members' post count
regards
regards
2006-05-24, 07:01 PM
What? I said the thread shouldn't need to be deleted since it gets deleted with the posts.. :|
Pages: 1 2