How to replace deleted user ID with generic name?

Support for mods released by phpbbmodders.net found at either https://github.com/phpbbmodders/ or the MODDB at http://www.phpbb.com
Forum rules
Please only request support for mods released by phpbbmodders.net found at either https://github.com/phpbbmodders/ or the MODDB at http://www.phpbb.com
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
newsbee_2
Member
Member
Posts: 138
Joined: 08 Mar 2010, 11:10
Location: Moscow, Russia
Contact:

How to replace deleted user ID with generic name?

Postby newsbee_2 » 08 Jun 2010, 10:25


User avatar
RMcGirr83
Past Contributor
Past Contributor
Posts: 6243
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: How to replace deleted user ID with generic name?

Postby RMcGirr83 » 08 Jun 2010, 10:45


newsbee_2
Member
Member
Posts: 138
Joined: 08 Mar 2010, 11:10
Location: Moscow, Russia
Contact:

Re: How to replace deleted user ID with generic name?

Postby newsbee_2 » 08 Jun 2010, 10:59

Understood. This is exactly what I need. Thanks! :clap:

Can't wait to get home to change that :twisted:

newsbee_2
Member
Member
Posts: 138
Joined: 08 Mar 2010, 11:10
Location: Moscow, Russia
Contact:

Re: How to replace deleted user ID with generic name?

Postby newsbee_2 » 08 Jun 2010, 17:16

:( I've changed the file, but nothing changes. The deleted user's name remains. The word "Guest" doesn't replace it.

Does the mod apply to the users already deleted? Or only to the future ones?

Is it possible I've changed some settings before? Something I don't remember.

User avatar
RMcGirr83
Past Contributor
Past Contributor
Posts: 6243
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: How to replace deleted user ID with generic name?

Postby RMcGirr83 » 08 Jun 2010, 17:20


newsbee_2
Member
Member
Posts: 138
Joined: 08 Mar 2010, 11:10
Location: Moscow, Russia
Contact:

Re: How to replace deleted user ID with generic name?

Postby newsbee_2 » 08 Jun 2010, 17:33

OK, thanks.

I'll add a new line for DELETED_USER in the language file.

I'll also try to restore the deleted user and then delete him again under the new terms. Don't like to play with the database - after five years of modifications and 9 thou users, I'd rather be careful.

PS. It doesn't work this way (restore/delete).
Last edited by newsbee_2 on 08 Jun 2010, 17:50, edited 1 time in total.

User avatar
RMcGirr83
Past Contributor
Past Contributor
Posts: 6243
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: How to replace deleted user ID with generic name?

Postby RMcGirr83 » 08 Jun 2010, 17:44

If it's any consolation the only table you would be touching would be the topics table and you can always shut down the board, make a backup of that table, try the query and see if it worked...and if it didn't, no biggie, just restore the backup and if it did, you just saved yourself a lot of time. ;)

I am willing to help if you like (will provide the query for you).

newsbee_2
Member
Member
Posts: 138
Joined: 08 Mar 2010, 11:10
Location: Moscow, Russia
Contact:

Re: How to replace deleted user ID with generic name?

Postby newsbee_2 » 08 Jun 2010, 17:51

Please help with the query... Smilie: I'm with the stupid.

User avatar
RMcGirr83
Past Contributor
Past Contributor
Posts: 6243
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: How to replace deleted user ID with generic name?

Postby RMcGirr83 » 09 Jun 2010, 11:08


newsbee_2
Member
Member
Posts: 138
Joined: 08 Mar 2010, 11:10
Location: Moscow, Russia
Contact:

Re: How to replace deleted user ID with generic name?

Postby newsbee_2 » 09 Jun 2010, 16:54



[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Return to “Modders MOD support”

Who is online

Users browsing this forum: No registered users and 34 guests