You need to override the template and add {aName} into it to display it. Depending on where you want to add it you will have to create a new tpl file that overrides one of the files in https://github.com/NodeBB/nodebb-plugin-composer-default/tree/master/static/templates.
How to show custom text when user is deleted?
-
So when you delete a user (not the content) the name defaults to "Guest". How would I change this to something else? My forum is (by plugin) locked, so there are no such thing as guests.
I would like to replace it with something like "Previous user" instead and on a global scope. I need it to show the same in chats, posts and everything else connected.
I could of course use a list of hooks and write custom functions to change the name to a custom language file string, but it would be more convenient to catch it once.
Any ideas?
-
@magnusvhendin You could use the Customize plugin for this. It's capable of replacing text, so you could change "Guest" to "Previous User" that way ?
-
@magnusvhendin You could use the Customize plugin for this. It's capable of replacing text, so you could change "Guest" to "Previous User" that way ?
-
@phenomlab Thanks! I did not know this was available. I'll have a look to see if it fits my needs.
-
@magnusvhendin No problems. For clarity, once you have the plugin installed, you want this section