Angus, Will there be a problem with indexing if I manually delete an account and also edit the index file to match? Should I be doing it another way?
I guess this also applies to topics within a forum also?
Jon Lloyd
2) Angus TurnbullGroup: Moderators Posts: 4042Joined: 7 Dec 2003Location: New ZealandIP: 210.54.--.--
Posted:
Well... I deliberately didn't build in account deletion. The reason is that you'd be left with orphaned posts everywhere; the account name is also stored in the file for a topic itself. (It's not really documented, but in the datafiles, usernames surrounded by angle brackets are account names not anonymous posters; the script loads the relevant user accoutn whenever it encounters these).
However, in answer to your question, you can delete users if you remove the user file, remove its entry from the user index, and also delete any posts that user has made. It shouldn't cause any problems as long as you remove all references to that user.
As for deleting topics within a forum... if you're logged in as an admin, just tick "delete topic" at the very bottom and submit. That's a built-in feature as it's rather useful -- no need to go editing files!