MyBB Community Forums

Full Version: Changing guest name
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Im not sure if this is the right place to post this,sorry if it isn't

how do i change, guest, to anonymous, i know in phpbb it's in the common file. but im not sure about mybb.Lightbulb
There are quite a few places where "Guest" is referenced. Are you wanting to change the default username of the visitor when posting?

I believe this is the variable you're looking to change:

./inc/languages/english/global.lang.php:191:$l['guest'] = "Guest";

File:Line:Variable

Smile
I did that using text editor++ , still the same. users still show up as guest when posting
It won't change usernames which are in the database, but it should change the default username when they next post. Smile
i Did that, and i logged out of my account and posted it showed up as guest,
Are you sure the change took affect?

It should be posting as whatever you changed it too.

			// If they didn't specify a username then give them "Guest"
			if(!$mybb->input['username'])
			{
				$username = $lang->guest;
			}
			// Otherwise use the name they specified.
			else
			{
				$username = htmlspecialchars($mybb->input['username']);
			}
here is what i changed it to.

$l['at'] = "at";
$l['na'] = "N/A";
$l['Anonymous'] = "Anonymous";
$l['unknown'] = "Unknown";
You shouldn't change the array key, only the value.

Change $l['guest'] = "Guest" to $l['guest'] = "Anonymous" Smile
still the same. i dont know what im doing wrong.
here is what it looks like
$l['Guest'] = "Anonymous";
Do not modify the array key value at all. Leave it as it is. The only thing you need to edit is between the two double quotes.

Change $l['guest'] = "Guest" to $l['guest'] = "Anonymous"
Pages: 1 2