Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Topic started by: SikLiFe on January 31, 2010, 02:55:37 AM

Title: [SMF 2.0 RC2] Adding/Removing Menu Items
Post by: SikLiFe on January 31, 2010, 02:55:37 AM
uh, in version 1.1.x it was easy, i can't find it now, all i got found was that it gets them from an array in RC2, where is the array stored then?

I want to remove certain menus like help, search, members, ect.. or unless i could some how make my menu's drop down would be nice. hrm.

thanks.
Title: Re: [SMF 2.0 RC2] Adding/Removing Menu Items
Post by: smp420 on January 31, 2010, 03:12:09 AM
You will find it in Subs.php which is in the sources folder. There is a how to somewhere, have fun searching.
Title: Re: [SMF 2.0 RC2] Adding/Removing Menu Items
Post by: SikLiFe on January 31, 2010, 05:15:03 AM
nothing much really in the subs.php i've done quite a bit of searching, results don't come back to well here.

they way it looks is like it's added into mysql hopefully im wrong because that'll be a pain.
Title: Re: [SMF 2.0 RC2] Adding/Removing Menu Items
Post by: Jokerâ„¢ on January 31, 2010, 11:40:35 AM
in subs.php try to find this

$buttons = array(
'home' => array(
'title' => $txt['home'],
'href' => $scripturl,
'show' => true,
'sub_buttons' => array(
),
'is_last' => $context['right_to_left'],
// 'target' => '_blank',
),


below it all other buttons are defined

to make any button disappear just make show value >>>> false <<
Title: Re: [SMF 2.0 RC2] Adding/Removing Menu Items
Post by: winniethepooh on April 18, 2013, 02:00:13 AM
I know alot of people will be mad that i'm resurrecting this thread, but i just can't justify creating a new thread for this. The problem i'm having is similar but is driving me insane. I have a custom theme installed, and when ever you login the logout button just floats below the menu. i can't for the life of me figure out how to either hide it or get it back into the normal menu.
Title: Re: [SMF 2.0 RC2] Adding/Removing Menu Items
Post by: mashby on April 18, 2013, 06:51:09 AM
Does this happen in the default Curve theme as well or just in this default theme? Are you using 2.0.4 or 2.0 RC2? Which theme is it?
Title: Re: [SMF 2.0 RC2] Adding/Removing Menu Items
Post by: winniethepooh on April 18, 2013, 06:58:29 AM
Quote from: mashby on April 18, 2013, 06:51:09 AM
Does this happen in the default Curve theme as well or just in this default theme? Are you using 2.0.4 or 2.0 RC2? Which theme is it?
Sorry, i figured it out, and i came back to edit my post, but for some reason my page timed out and i guess it didn't save the changes. It was happening in my custom theme. i fixed it by changing the padding on my logo div layer, and moving the div layer to the header div, and finally i played with the  padding on the navigator bar until i got it just right. I'm sorry i had to waste your time posting in this thread. Thanks for trying to help though. i appreciate it.
Title: Re: [SMF 2.0 RC2] Adding/Removing Menu Items
Post by: way2insane on June 23, 2013, 11:26:03 PM
Total newB, how do I find the subs.php?
Did read the guide, but think it just isn't sinking in, apologies.

Mainly I want to know if I could use this method to change the order of the menu to be able to to put "blog" in first spot & and also have that load as my main page when people first enter into my site.