Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Batch delete members
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Batch delete members

 Post Reply Post Reply
Author
donstar View Drop Down
Newbie
Newbie
Avatar

Joined: 04 January 2004
Location: Scotland
Status: Offline
Points: 35
Post Options Post Options   Thanks (0) Thanks(0)   Quote donstar Quote  Post ReplyReply Direct Link To This Post Topic: Batch delete members
    Posted: 01 August 2006 at 9:32pm
I know that in the Admin area it's possible to Delete Members that have never posted that registered over so many days, weeks, months, years ago, which is great, but I have a fair few members that registered over 2 years ago and have never posted but who visit the Forum regularly. I don't want to delete them because I have the Forum set so that all topics are hidden to non members.
 
What I'd like to be able to do is Delete Members that have never posted and/or were LAST ACTIVE more than one or two years ago because these are the ones that are just taking up space in my DB.
 
Can the Batch Delete Members page be modified to allow me to do this?
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 02 August 2006 at 9:50am
To change it from the join date to last active date open the file batch_delete_members.asp and on line 77 change:-

Author.Join_date

To:-

Author.Last_visit

This will then delete non-posting members based on the time they where last active rather than by when they joined.


Edited by -boRg- - 02 August 2006 at 9:51am
Back to Top
donstar View Drop Down
Newbie
Newbie
Avatar

Joined: 04 January 2004
Location: Scotland
Status: Offline
Points: 35
Post Options Post Options   Thanks (0) Thanks(0)   Quote donstar Quote  Post ReplyReply Direct Link To This Post Posted: 02 August 2006 at 11:11pm
I assume you mean the file admin_batch_delete_members.asp as I don't have a file called batch_delete_members.asp.
 
I've tried changing line 77 as you suggested and it's not deleting any members? Will this work with both Access and mySQL version? I'm trying to delete members in mySQL version.
 
I know I can delete them directly from the DB, but I'd like to set up the admin page so that I can delete old inactive members on a regular basis.
 
Edited to add that I've just tried this on Access Version and I'm getting the following error
 
Microsoft JET Database Engine error '80040e10'

No value given for one or more required parameters.

/forum/admin_batch_delete_members.asp, line 92



Edited by donstar - 02 August 2006 at 11:59pm
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 03 August 2006 at 11:27am
Yes the file is admin_batch_delete_members.asp

If the example I gave does not work then it may mean recoding the page and a quick fix is not possible. Sorry.
Back to Top
donstar View Drop Down
Newbie
Newbie
Avatar

Joined: 04 January 2004
Location: Scotland
Status: Offline
Points: 35
Post Options Post Options   Thanks (0) Thanks(0)   Quote donstar Quote  Post ReplyReply Direct Link To This Post Posted: 03 August 2006 at 8:53pm
Sorry -boRg-
 
It appears I got the above error message because I misspelled the new code!
 
The modification works fine on the Access version.
 
Still no joy on the mySQL version though.


Edited by donstar - 03 August 2006 at 9:12pm
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.