MyBB Community Forums

Full Version: Remove last visited
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hey,

I tried following this thread to remove "You last visited" because its taking up space and i cant seem to find global.php in /forums/inc/languages/

Please help!

Also one more thing,

how do i get rid of all that wasted space on the menu? My site is http://blazingcomputer.pcriot.com where you see "online messenger" and online virus scanner, there is a massive gap Sad How do i fix this also?

the code for the menu i put is

<A STYLE="text-decoration:none" HREF="http://blazingcomputer.pcriot.com/forums/misc.php?action=help&hid=9" onClick="return popup(this, 'notes')"><img src="http://blazingcomputer.pcriot.com/forums/images/flame/icons/msn.png">Online Messenger</a><a STYLE="text-decoration:none" href="http://blazingcomputer.pcriot.com/forums/misc.php?action=help&hid=8"><img src="http://blazingcomputer.pcriot.com/forums/images/flame/icons/virus.png"> Online Virus Scanner</a>
You MUST have the global.php file in ./inc/languages/global.php...
Search again and do these changes:

Open ./inc/languages/global.php

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

Change into
$l['welcome_back'] = "<strong>Welcome back, {1}</strong>.";

Open global.php
Find
    // Format the welcome back message
    $lang->welcome_back = $lang->sprintf($lang->welcome_back, $mybb->user['username'], $lastvisit);

Change into
 // Format the welcome back message
    $lang->welcome_back = $lang->sprintf($lang->welcome_back, $mybb->user['username']);
look, i dont have it
Open ./inc/languages/global.lang.php

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

Change into
$l['welcome_back'] = "<strong>Welcome back, {1}</strong>.";

Open global.php
Find
    // Format the welcome back message
    $lang->welcome_back = $lang->sprintf($lang->welcome_back, $mybb->user['username'], $lastvisit);

Change into
 // Format the welcome back message
    $lang->welcome_back = $lang->sprintf($lang->welcome_back, $mybb->user['username']);
i did the first one and it worked. i cant find global.php for the second one :s
MYBB_ROOT/global.php
It's inside the English folder...
Thanks, also how do i get rid of the wasted space?
You have to edit the header template.
I already done that... thats how i added them to the menu

look at the code on the first post and i dont know why theres a big gap
Pages: 1 2