News:

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

Main Menu

Adding Nav Buttions in 2.0

Started by RL Joneson, April 05, 2008, 06:32:43 PM

Previous topic - Next topic

Waxman

Ok it didn't work
I suscsesfully xhanged the Home button to go to my home page but no new button appered when I tyed in (all in correct specing)
'forum' => array(
'title' => $txt['forum'],
'href' => '$scipturl',
'show' => true,
'sub_buttons' => array(
),
                        ),

I also tried
'forum' => array(
'title' => $txt['forum'],
'href' => '$scripturl . ?action=forum',
'show' => true,
'sub_buttons' => array(
),
                        ),

after i changed my index.english.php to

$txt['message_index'] = 'Message Index';
$txt['news'] = 'News';
$txt['home'] = 'Home';
$txt['forum'] = 'forum';

what did I do wrong?

Waxman

I also tried changing the name in my index.english.php from

$txt['message_index'] = 'Message Index';
$txt['news'] = 'News';
$txt['home'] = 'Home';
$txt['forum'] = 'forum';

to
$txt['message_index'] = 'Message Index';
$txt['news'] = 'News';
$txt['home'] = 'Home';
$txt['pegasusreplicators_message_boaards'] = 'pegasusreplicators message boards';

and my forums still disappeared(restored backups so site is OK)

Nathaniel

Try clearing your file cache in the admin section -> 'Maintenance' menu -> 'Maintenance' tab -> 'Common Tasks' tab -> 'Empty the file cache.' link/option.

Theme/template files in SMF 2 including language files are all cached to save on time and space, because of this you have to wipe the cache before any changes will be loaded.
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

Waxman


metallica48423

Justin O'Leary
Ex-Project Manager
Ex-Lead Support Specialist

QuoteMicrosoft wants us to "Imagine life without walls"...
I say, "If there are no walls, who needs Windows?"


Useful Links:
Online Manual!
How to Help us Help you
Search
Settings Repair Tool

Waxman

#25
thank you I found it earlier but when i did as you suggested in your tut my board dissapered and I had to load backups, LHVWB said to clear my cache but the didn't help either

I am running the 2.0 beta 3.1 public
I really like this board and want to figure this out

Darkness_

http://www.amenna.nl/forum2/index.php

between index and help there should be lounge
but there is a gap in it, if you searh a bit in the gap you could find it but. the text isn't showing up.....

subs.php
'Lounge' => array(
'title' => $txt['lounge300500'],
'href' => "http://www.amenna.nl/forum2/Lounge.php",
'show' => true,
'sub_buttons' => array(
),
),


index.dutch-utf8.php
$txt['lounge300500'] = 'Lounge';

but it doesn't show up :S

Darkness_

^changed it the  $txt['lounge300500'] = 'Lounge';   in 'Lounge' then it shows up, but isn't it better when it has been added to the language files?

Advertisement: