News:

Wondering if this will always be free?  See why free is better.

Main Menu

buttons in default

Started by a454nova, November 15, 2008, 05:37:46 PM

Previous topic - Next topic

a454nova

I have look every where. subs, all languages in default.

I want to use the default SMF theme and edit the buttons alone the top. They work fine and they are all there, just the wrong text or no text. I thought it was in index.english.php but if I add it there it doesn't change anything. Is there a different place to edit?


Here is the Subs.php
$buttons = array(
'home' => array(
'title' => $txt['home'],
'href' => $scripturl . '?action=home',
'show' => true,
'sub_buttons' => array(
),
),
'forum' => array(
'title' => $txt['forums'],
'href' => $scripturl,
'show' => true,
'sub_buttons' => array(
),
),
'about' => array(
'title' => $txt['about'],
'href' => $scripturl . '?action=about',
'show' => true,
'sub_buttons' => array(
),
),
'contact' => array(
'title' => $txt['contact'],
'href' => $scripturl . '?action=contact',
'show' => true,
'sub_buttons' => array(
),
),
'downloads' => array(
'title' => $txt['downloads'],
'href' => $scripturl . '?action=downloads',
'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(
),

),
'profile' => array(
'title' => $txt['profile'],
'href' => $scripturl . '?action=profile',
'show' => $context['allow_edit_profile'],
'sub_buttons' => array(
'summary' => array(
'title' => $txt['summary'],
'href' => $scripturl . '?action=profile',
'show' => true,
),
'account' => array(
'title' => $txt['account'],
'href' => $scripturl . '?action=profile;sa=account',
'show' => allowedTo(array('profile_identity_any', 'profile_identity_own', 'manage_membergroups')),
),
'profile' => array(
'title' => $txt['forumProfile'],
'href' => $scripturl . '?action=profile;sa=forumProfile',
'show' => allowedTo(array('profile_extra_any', 'profile_extra_own')),
),
),
),
'pm' => array(
'title' => $txt['pm_short'],
'href' => $scripturl . '?action=pm',
'show' => $context['allow_pm'],
'sub_buttons' => array(
'pm_read' => array(
'title' => $txt['pm_menu_read'],
'href' => $scripturl . '?action=pm',
'show' => allowedTo('pm_read'),
),
'pm_send' => array(
'title' => $txt['pm_menu_send'],
'href' => $scripturl . '?action=pm;sa=send',
'show' => allowedTo('pm_send'),
),
),
),
'calendar' => array(
'title' => $txt['calendar'],
'href' => $scripturl . '?action=calendar',
'show' => $context['allow_calendar'],
'sub_buttons' => array(
'view' => array(
'title' => $txt['calendar_menu'],
'href' => $scripturl . '?action=calendar',
'show' => allowedTo('calendar_post'),
),
'post' => array(
'title' => $txt['calendar_post_event'],
'href' => $scripturl . '?action=calendar;sa=post',
'show' => allowedTo('calendar_post'),
),
),
),
'mlist' => array(
'title' => $txt['members_title'],
'href' => $scripturl . '?action=mlist',
'show' => $context['allow_memberlist'],
'sub_buttons' => array(
'mlist_view' => array(
'title' => $txt['mlist_menu_view'],
'href' => $scripturl . '?action=mlist',
'show' => true,
),
'mlist_search' => array(
'title' => $txt['mlist_search'],
'href' => $scripturl . '?action=mlist;sa=search',
'show' => true,
),
),
),
'admin' => array(
'title' => $txt['admin'],
'href' => $scripturl . '?action=admin',
'show' => $context['allow_admin'],
'sub_buttons' => array(
'featuresettings' => array(
'title' => $txt['modSettings_title'],
'href' => $scripturl . '?action=admin;area=featuresettings',
'show' => allowedTo('admin_forum'),
),
'packages' => array(
'title' => $txt['package'],
'href' => $scripturl . '?action=admin;area=packages',
'show' => allowedTo('admin_forum'),
),
'errorlog' => array(
'title' => $txt['errlog'],
'href' => $scripturl . '?action=admin;area=logs;sa=errorlog;desc',
'show' => allowedTo('admin_forum') && !empty($modSettings['enableErrorLogging']),
),
'permissions' => array(
'title' => $txt['edit_permissions'],
'href' => $scripturl . '?action=admin;area=permissions',
'show' => allowedTo('manage_permissions'),
),
),
),
'moderate' => array(
'title' => $txt['moderate'],
'href' => $scripturl . '?action=moderate',
'show' => $context['allow_moderation_center'],
'sub_buttons' => array(
'modlog' => array(
'title' => $txt['modlog_view'],
'href' => $scripturl . '?action=moderate;area=modlog',
'show' => !empty($modSettings['modlog_enabled']),
),
'poststopics' => array(
'title' => $txt['mc_unapproved_poststopics'],
'href' => $scripturl . '?action=moderate;area=postmod;sa=posts',
'show' => $modSettings['postmod_active'],
),
'attachments' => array(
'title' => $txt['mc_unapproved_attachments'],
'href' => $scripturl . '?action=moderate;area=attachmod;sa=attachments',
'show' => $modSettings['postmod_active'],
),
'reports' => array(
'title' => $txt['mc_reported_posts'],
'href' => $scripturl . '?action=moderate;area=reports',
'show' => true,
),
),
),
'login' => array(
'title' => $txt['login'],
'href' => $scripturl . '?action=login',
'show' => $user_info['is_guest'],
'sub_buttons' => array(
),
),
'register' => array(
'title' => $txt['register'],
'href' => $scripturl . '?action=register',
'show' => $user_info['is_guest'],
'sub_buttons' => array(
),
'is_last' => true,
),
'logout' => array(
'title' => $txt['logout'],
'href' => $scripturl . '?action=logout;sesc=%1$s',
'show' => !$user_info['is_guest'],
'sub_buttons' => array(
),
'is_last' => true,
),
);

$load_menu_js = false;
// Now we put the buttons in the context so the theme can use them.
$menu_buttons = array();
foreach ($buttons as $act => $button)

Marcus Forsberg

You've used "$txt['forums'],". Is there any $txt['forums'] variable in your language files?

a454nova

Quote from: Nascar on November 15, 2008, 05:39:34 PM
You've used "$txt['forums'],". Is there any $txt['forums'] variable in your language files?

$txt['forums'] = 'Forum';
$txt['about'] = 'About';
$txt['contact'] = 'Contact';

right under admin and mod. in the index.english.php
I also tried Modifications.english.php
I went through all the lang files to see if a repeat or something. If I delete the 3 from index.english.php nothing happends.
I have no idea, why is my about button keep saying downloads. lol

a454nova

Come on now, help out the dummy here. PUHLEEEEZZZ  :)

Kermit

#4
The related codes from Subs.php and the picture are different things

because when i look in your Subs.php,than after the home button,it should come the forum button also not the download button


can you gives us maybe your site link
My Mods
Please don't PM/mail me for support,unless i invite you
Formerly known as Duncan85
Quote
"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."

A. Einstein

Marcus Forsberg

Quote from: a454nova on November 15, 2008, 09:41:02 PM
Quote from: Nascar on November 15, 2008, 05:39:34 PM
You've used "$txt['forums'],". Is there any $txt['forums'] variable in your language files?

$txt['forums'] = 'Forum';
$txt['about'] = 'About';
$txt['contact'] = 'Contact';

right under admin and mod. in the index.english.php
I also tried Modifications.english.php
I went through all the lang files to see if a repeat or something. If I delete the 3 from index.english.php nothing happends.
I have no idea, why is my about button keep saying downloads. lol

Have you tried going to Admin > Maintenance > Forum Maintenance  > Empty the file cache.?

a454nova

Quote from: Nascar on November 16, 2008, 05:27:54 AM
Quote from: a454nova on November 15, 2008, 09:41:02 PM
Quote from: Nascar on November 15, 2008, 05:39:34 PM
You've used "$txt['forums'],". Is there any $txt['forums'] variable in your language files?

$txt['forums'] = 'Forum';
$txt['about'] = 'About';
$txt['contact'] = 'Contact';

right under admin and mod. in the index.english.php
I also tried Modifications.english.php
I went through all the lang files to see if a repeat or something. If I delete the 3 from index.english.php nothing happends.
I have no idea, why is my about button keep saying downloads. lol

Have you tried going to Admin > Maintenance > Forum Maintenance  > Empty the file cache.?


DUUUUUUUUDE!

It worked! THANK-YOU!


I love this stuff, always learning something new!

Marcus Forsberg

Glad it worked :)
marked this as solved.

Advertisement: