Author Topic: [SMF 2] How do I add a custom tab?  (Read 8820 times)

Offline Paladin

  • Newbie
  • *
  • Posts: 7
    • ObsceneInnocence
Re: [SMF 2] How do I add a custom tab?
« Reply #10 on: Jul 08, 2011, 20:46:58 »
I got this part to work
Quote
         'arcade' => array(
            'title' => 'Arcade',
            'href' => 'http://www.mysite.example/arcade',
            'show' => true,
            'sub_buttons' => array(
               'highscores' => array(
                  'title' => 'High Scores',
                  'href' => 'http://www.mysite.example/arcade/highscores.php',
                  'show' => true,
               ),
            ),
         ),
but how do I add sub menus to "hiscores"

*my forum doesn't have arcade, hiscores, etc just taking the code from the one tutorial
My forum about making money and getting stuff free online:
http://obsceneinnocence.com/index.php

Offline Chair

  • Hero Member
  • *****
  • Posts: 861
  • I'm a Yes-Man.
    • Brosquad
    • Email
Re: [SMF 2] How do I add a custom tab?
« Reply #11 on: Jul 09, 2011, 00:06:03 »
Code: [Select]
'arcade' => array(
            'title' => 'Arcade',
            'href' => 'http://www.mysite.example/arcade',
            'show' => true,
            'sub_buttons' => array(
               'highscores' => array(
                  'title' => 'High Scores',
                  'href' => 'http://www.mysite.example/arcade/highscores.php',
                  'show' => true,
                  'sub_buttons' => array(
                 // [insert sub buttons here, follow the structure of the main menu]
               ),
               ),
            ),
         ),


Some people deserve a high five once in a while....in the face... with an ARG
(see what I did there?)