Thread: How to add dropdown menu on navigation bar

Results 1 to 7 of 7
  1. #1 [SMF]How to add dropdown menu on navigation bar 



    Join Date
    Dec 2010
    Posts
    831
    Thanks given
    257
    Thanks received
    118
    Rep Power
    204
    This is common sense, just wanted to post this on here too because people keeps asking me how to do it...

    What we are adding:


    Note: You don't need any PHP knowledge to add this, but read carefully. If you make mistake,
    it can disturb your forum.


    Before trying to add this, I recommend you to download your subs.php
    so if you get any errors, you can just upload your old version of subs.php


    Let's get started.

    On your Control Panel go to file manager

    Open public html and go to "Sources" folder.

    Scroll down until you see file called "subs.php"

    Right-Click subs.php and click "edit"



    Now it should open it for you, do Ctrl + F on your keyboard to search.

    On search field type: 'forum' => array(

    Now you should see code like this: (It can be different, because I'm using Simpleportal modification)
    Code:
    'forum' => array(
    				'title' => empty($txt['sp-forum']) ? 'Forum' : $txt['sp-forum'],
    				'href' => $scripturl . ($modSettings['sp_portal_mode'] == 1 && empty($context['disable_sp']) ? '?action=forum' : ''),
    				'show' => in_array($modSettings['sp_portal_mode'], array(1, 3)) && empty($context['disable_sp']),
    				'sub_buttons' => array(
    				),
    			),
    Now under last
    Code:
    ),
    Add:
    Code:
    'play' => array(
    				'title' => 'Play',
    				'href' => $scripturl,
    				'show' => true,
    				'sub_buttons' => array(
    					'webclient' => array(
    						'title' => 'Webclient',
    						'href' => 'Replace this with link',
    						'show' => true,
    					),
    'download' => array(
    						'title' => 'Download',
    						'href' => $scripturl . 'Replace this with link',
    						'show' => true,
    				),
    			),
    ),
    You can replace 'Play', 'Webclient' and 'Download' with your own titles.
    Save it after you're done.
    Reply With Quote  
     

  2. Thankful user:


  3. #2  
    Registered Member
    Morphine's Avatar
    Join Date
    Jul 2011
    Posts
    1,821
    Thanks given
    495
    Thanks received
    261
    Rep Power
    136
    Nice tut.
    Reply With Quote  
     

  4. Thankful user:


  5. #3  
    Registered Member
    Join Date
    Oct 2011
    Posts
    96
    Thanks given
    15
    Thanks received
    5
    Rep Power
    11
    thanks needed this
    Reply With Quote  
     

  6. Thankful user:


  7. #4  
    Registered Member

    Join Date
    Apr 2009
    Posts
    1,728
    Thanks given
    403
    Thanks received
    207
    Rep Power
    390
    What forums are you using?
    Reply With Quote  
     

  8. #5  



    Join Date
    Dec 2010
    Posts
    831
    Thanks given
    257
    Thanks received
    118
    Rep Power
    204
    Quote Originally Posted by Phat 4 u View Post
    What forums are you using?
    SMF 2.0.2

    Forgot to mention that this tutorial is for SMF.
    Reply With Quote  
     

  9. #6  
    Para Para Paradse Paradise's Avatar
    Join Date
    Aug 2010
    Posts
    341
    Thanks given
    61
    Thanks received
    23
    Rep Power
    44
    Will use, nice job
    Skype: cunny-funt
    Reply With Quote  
     

  10. Thankful user:


  11. #7  
    Registered Member
    Join Date
    Mar 2012
    Posts
    25
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    Finally..
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Navigation bar
    By purely had u in forum Requests
    Replies: 3
    Last Post: 01-29-2012, 07:09 AM
  2. Replies: 19
    Last Post: 01-18-2012, 08:04 PM
  3. ComboBox/Dropdown Menu
    By Sasquatch420 in forum Help
    Replies: 1
    Last Post: 11-27-2011, 01:36 AM
  4. Navigation Menu Help
    By lt mays in forum General
    Replies: 0
    Last Post: 11-25-2007, 07:09 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •