MyBB Community Forums

Full Version: Editing global.lang.php
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Why not just add breaks where need to the language files?

Btw, I have done this so I know it works. Wink
I thought about that, but I want it on two different sides of the page. Like:

[Image: header.jpg]

The dotted lines aren't actually there, they just show how the table is split.

Yeah, so I want the info in two different sections of the table
That doesn't require you to edit the global.lang.php file.

You can just do that in the templates.

You should be able to tell which are which. Wink
Well, yeah, I have the table set up (sort of), but for the username/last visit, the code is:

$lang->welcome_back

Which displays them both together. I want to split them.
Ok, you would need to edit global.lang.php.


Change this:

$l['welcome_back'] = "<strong>Welcome back, {1}</strong>. You last visited: {2}";

To this:

$l['welcome_back'] = "<strong>Welcome back, {1}</strong>.<br />You last visited: {2}";

Sorry for the mix up. Smile
Hmm, that only moves 'last visited' down to the next line, not to the other side of the table =/

I still think that I just need to create a whole new language line for 'last visited'. What file defines what 'welcome_back' {1} and {2} are? That might help me~
Oh you want it on the other side of the table. Toungue

global.php in the root folder should define what they are. Smile
w00t, I got it ^^