News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Menu Button Edits

Started by Atheo, May 16, 2008, 01:10:32 PM

Previous topic - Next topic

Atheo

<newb>

smf 2 beta; default skin

mod in question: Custom Action Mod

I am able to add the custom action and perform everything with the mod.  What I want is to change the 'Home' link on the menu to link to a custom page and in turn have a 'Forum' Button link to the board that loads under the default 'Home'

In short, I want to create a new button and redirect an existing one.  Thank you!

</newb>

Am I asking this in the right section?  SMF 2 menu edit is different from previous versions, correct?
Anyone? Link me?

Kryptech

I may be wrong about this but I think if u put the link in the href part it will work.


'home' => array(
'title' => $txt['home'],
'href' => "www.yourHomePage.com",
'show' => true,
'sub_buttons' => array(
),

Rumbaar

Was the above code able to do what you wanted?  It's found in your $source/Subs.php file.
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

Atheo

I gave up on 2.0...too much tweaking at this point.  I went back to 1-1-5.  Thanks for the help.

Rumbaar

Yes I've found that things have been moved around a bit and are hard to find at times, for general tweaking and modifications.
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

JosDaddy

To keep this going, how do you add a mune button in the default theme? I would like to put one up there taking my members to other parts of my web site.

Thanks in advance.

Nathaniel

I'm working on a mod for customizing the SMF menu system but it could take a while, in the mean time refer to the 'template_menu()' function from the 'theme/index.template.php' file for SMF 1.1.5, and the 'setupMenuContext()' function from 'sources/subs.php' for SMF 2 Beta, if you want to do your own edits.
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.

Rumbaar

Posts Reply #1 & #2 should give you the needed information on how to do what you want josdaddy.
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

JosDaddy


Advertisement: