News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Edit menu bar

Started by shade3134, June 24, 2010, 03:36:05 AM

Previous topic - Next topic

shade3134

How do I edit the menu bar? I want to change the list and order to "News, Forum, Lyrics, Messages, Profile, Seach, Login/Logout".

I'm looking at the index.template.php but don't know what to do.

I'm using SMF 2.0 RC3

Kill Em All

It has chanced in 2.0. In your Sources directory, look in your Subs.php


My Site: KEAGaming.com

Manual Installation of Mods
Prevent Spam and Forum Attacks
Please do not PM or email me for support unless offered, help should be publicly displayed to others.

shade3134

I see. I looked for my sources directory but can't find it. My theme is 'Custom theme based on default'. Eitherway, I can't find it under the default theme either. Where is it?

Kill Em All

You aren't looking in your Sources directory then....

the Sources directory isn't in the Themes folder, its in the root of your SMF install.


My Site: KEAGaming.com

Manual Installation of Mods
Prevent Spam and Forum Attacks
Please do not PM or email me for support unless offered, help should be publicly displayed to others.

CapadY

/sourses/subs.php nearly at the bottom of that file.
Please, don't PM me for support unless invited.
If you don't understand this, you will be blacklisted.

PurpleCrow

SMF 2.0 RC3

Looking for staff!

Forums Galore, a brand new Admin Forum is looking for staff to help with the launch. Send me a PM or sign up to Forums Galore if you're interested!

Add your forum to the Forums Galore Community Showcase

shade3134

Thanks everyone! However the buttons aren't showing up yet when I hover or click them, they link me to the appropriate area. It's just that I can't see them:

$buttons = array(
'News' => array(
'title' => $txt['News'],
'href' => 'http://sofarhome.com',
'show' => true,
'sub_buttons' => array(
),
'is_last' => $context['right_to_left'],
// 'target' => '_blank',
),
'Forum' => array(
            'title' => $txt['Forum'],
            'href' => 'http://sofarhome.com/chat',
            'show' => true,
            'sub_buttons' => array(
            ),
         ),
'Lyrics' => array(
            'title' => $txt['Lyrics'],
            'href' => 'http://sofarhome.com/lyrics',
            'show' => true,
            'sub_buttons' => array(
            ),
         ),


Also, how do I spread them out and up their scale?

shade3134

You can view my forum: www.sofarhome.com/chat

And scroll your cursor in the menu bar area and you'll notice there's invisible links. Hmmm...Anyone know what's going on?

shade3134

Bump. Come on, someone here has to know.  :(

CapadY

Look what happens if you empty your forum cache.
Please, don't PM me for support unless invited.
If you don't understand this, you will be blacklisted.

Kill Em All

Might want to try clearing your browsers cookies and cache to.

And please do not bump your topics less than 24 hours old, we are all volunteers here.


My Site: KEAGaming.com

Manual Installation of Mods
Prevent Spam and Forum Attacks
Please do not PM or email me for support unless offered, help should be publicly displayed to others.

shade3134

Sorry about the bump. I cleared my cache and it still looks like this:


Kill Em All

Please attach your Subs.php so we can take a look at it. :)


My Site: KEAGaming.com

Manual Installation of Mods
Prevent Spam and Forum Attacks
Please do not PM or email me for support unless offered, help should be publicly displayed to others.

JBlaze

Clear your forum cache (Admin -> Maintenance -> Routine -> Empty cache) as well and make sure you added $txt['Links'] to ./Themes/default/languages/Modifications.{your_lang}.php
Jason Clemons
Former Team Member 2009 - 2012

shade3134

I somehow got the first button to work:



And I've cleared my forum as well as browser cache a bazillion times. lol

See the highlighted invisible button at the back? What is that and how do I remove that?


Here's my subs attachment:




JBlaze

Did you read the second part of my post?

Did you add $txt['Lyrics'] = 'Lyrics'; to ./Themes/default/languages/Modifications.english.php ?
Jason Clemons
Former Team Member 2009 - 2012

shade3134

No, sorry. I've give that a try.

shade3134

Am I supposed to place it underneath:

// Important! Before editing these language files please read the text at the top of index.english.php.
$txt['no_icon'] = 'No icon set';


If so this is what I did:

<?php
// Version: 2.0 RC3; Modifications

// Important! Before editing these language files please read the text at the top of index.english.php.
$txt['no_icon'] = 'No icon set';
$txt['Lyrics'] = 'Lyrics';   
?>


Uploaded, refreshed and nothing.

JBlaze

OK, I'll outline it for you.

1. Add $txt['Lyrics'] = 'Lyrics'; on the line before the closing ?>
2. Go to Admin -> Maintenance -> Routine -> Empty file cache
3. Check your menu.
Jason Clemons
Former Team Member 2009 - 2012

shade3134

It is on the line before ?> right? On the same line? Because it is on the line before..

Advertisement: