News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Help with Missing Text on Button

Started by wysiwyg, June 30, 2010, 03:09:34 PM

Previous topic - Next topic

wysiwyg

Hi Guys

Trying to add a button for our main page and one for the forum home page.

'home' now points to our main site while 'forum' points to the forum home page.

Using Actulism Theme.
// All the buttons we can possible want and then some, try pulling the final list of buttons from cache first.
if (($menu_buttons = cache_get_data('menu_buttons-' . implode('_', $user_info['groups']) . '-' . $user_info['language'], $cacheTime)) === null || time() - $cacheTime <= $modSettings['settings_updated'])
{
$buttons = array(
'home' => array(
'title' => $txt['home'],
'href' => 'http://www.descent-world.co.uk',
'show' => true,
'sub_buttons' => array(
),
'is_last' => $context['right_to_left'],
// 'target' => '_blank',
),
'forum' => array(
'title' => $txt['forum'],
'href' => $scripturl,
'show' => true,
'sub_buttons' => array(
),
),
'help' => array(
'title' => $txt['help'],
'href' => $scripturl . '?action=help',
'show' => true,
'sub_buttons' => array(
),
),
'search' => array(
'title' => $txt['search'],
'href' => $scripturl . '?action=search',
'show' => $context['allow_search'],
'sub_buttons' => array(
),
),


Problem is that 'forum' isn't showing on the button. On inspection shows an empty '<span></span>' tag.

Site is here

How do I fix this?



mirahalo

replace this:  $txt['forum']   with this:   'Forum'


or add that string to your index.yourlanguage.php at the end, before the ?>

$txt['forum'] = 'Forum';   and clean your cache.

wysiwyg

Thanks I knew I was missing something elsewhere!

mirahalo

ok, marked as solved then, please unmarked if had more questions.

Advertisement: