[SMF 2.0 RC2] Adding/Removing Menu Items

Started by SikLiFe, January 31, 2010, 02:55:37 AM

Previous topic - Next topic

SikLiFe

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.
A great breakfast is always the right answer.

smp420

You will find it in Subs.php which is in the sources folder. There is a how to somewhere, have fun searching.
"Things turn out best for those who make the best of the way things turn out." -Jack Buck

SikLiFe

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.
A great breakfast is always the right answer.

Joker™

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 <<
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

winniethepooh

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.
"But I'm tryin' Ringo.I'm tryin' real hard to be the Shepherd."

mashby

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?
Always be a little kinder than necessary.
- James M. Barrie

winniethepooh

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.
"But I'm tryin' Ringo.I'm tryin' real hard to be the Shepherd."

way2insane

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.

Advertisement: