MyBB Community Forums

Full Version: MyBB variables List - Question.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Thanks Dennis,

So I have found out, Smile

But it's not a problem that there isn't a dictionary, for the obvious you explained.

And I'm doing Ok without it. Wink
zaher1988 Wrote:As long as you want to put the message above the navigation crumbs then we are still working in the part what is called header, I will assume you are using the welcome guest and welcome member for some other perposes and not willing to change in them. anyway in header template above
<navigation>
put
{$welcome_note} 
now open global.php

find
eval("\$header = \"".$templates->get("header")."\";");

above it add
if($mybb->user['uid'] > 0)
{
	$welcome_note = "Hello ".$mybb->user['username'];
}
else
{
	$welcome_note = "Hello guest";
}

Hi zaher1988,

I made a small change to the code for global.php, and it brings in the "welcome" text as well... Smile

Open global.php:

find:

eval("\$header = \"".$templates->get("header")."\";"); 

BEFORE Add:

if($mybb->user['uid'] > 0)
{
    $welcome_note = "{$lang->welcome_back}"; 
}
else
{
    $welcome_note = "{$lang->welcome_guest}";
}
hi there,
how to show thread post date info.

thx
semboyan35, this thread is 3 years old. Create your own.
Pages: 1 2