How to change and add menus

Started by suresh1983, April 19, 2014, 04:14:04 PM

Previous topic - Next topic

suresh1983

Dear Seniors,

I would like to add and change menus in my forum. I tried to browse through the forum but couldn't find a correct answer. As I am novice for php and SMF please guide me....

1) Currently when I login as a user, I find Home, Help, Search,Profile, My messages, Calendar, Logout

What I want to do is, I want to add menus as mentioned below.

Home (Want to give the link to my home page)
Profile
My Messages
Vendors (Want to give link to a subdomain)
Tutorials (Want to give a link to a subdomain)
Calendar
Logout

Please help me with it.. I am using vertex theme

Thanking you in advance
Suresh

Kindred

Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

suresh1983

Hi Kindred,

Thank you for the link, I was able to add different menus to my forum.

Request you to please guide me on how to change the position of help and search menu in the forum.

Deaks

Define "change position"?  if you wish to make it so they are not shown all you need to do is simply change true to false in the 'show' line of each of the buttons in the file mentioned by Kindred's link
~~~~
Former SMF Project Manager
Former SMF Customizer

"For as lang as hunner o us is in life, in nae wey
will we thole the Soothron tae owergang us. In truth it isna for glory, or wealth, or
honours that we fecht, but for freedom alane, that nae honest cheil gies up but wi life
itsel."

suresh1983

Thank you for the suggestion Μπράιαν Poύνικ Ντίκεν

Can you also, please guide me on how to open the link in a new window. Code for one of the menu is as mentioned below.

'menu_action' => array(
            'title' => 'Forum',
            'href' => $scripturl,
            'show' => true,
            'sub_buttons' => array(
               'sub_menu_action' => array(
                  'title' => 'text for sub-menu',
                  'href' => $scripturl . '?action=newaction',
                  'show' => false,
                  'is_last'=> false,
               ),
            ),
         ),

Deaks

line before 'show' => true,

try adding

'target' => _blank,

its been a while since I used this code lol

so should look like

            'href' => $scripturl,
            'target' => _blank,
            'show' => true,
~~~~
Former SMF Project Manager
Former SMF Customizer

"For as lang as hunner o us is in life, in nae wey
will we thole the Soothron tae owergang us. In truth it isna for glory, or wealth, or
honours that we fecht, but for freedom alane, that nae honest cheil gies up but wi life
itsel."

suresh1983

Thank you..... :) :) :) :) :) :) :D :D :D :D :D :D it worked.

Could you also please let me know how I can do the same for this.

I created a board in the forum and have selected the option "Redirect to a web address:". This is redirecting it to the specified link that I have given but in the same page.

How to make to open up a new page.

Deaks

~~~~
Former SMF Project Manager
Former SMF Customizer

"For as lang as hunner o us is in life, in nae wey
will we thole the Soothron tae owergang us. In truth it isna for glory, or wealth, or
honours that we fecht, but for freedom alane, that nae honest cheil gies up but wi life
itsel."

Advertisement: