How to edit the main menu of a SMF forum ?

Discussion in 'Forum Management' started by bluearrow, Jan 16, 2008.

  1. #1
    I want to add another 2 links to the main menu of my SMF forum ? anyone can tell me how to do it ?:)

    .
     
    bluearrow, Jan 16, 2008 IP
  2. rockinaway

    rockinaway Guest

    Best Answers:
    0
    #2
    You can edit the main menu by going to the bottom of your themes index.template.php file. There there will be a list of already added link, just follow the same format :)

    For further help, take a look at the forum in my signature :)
     
    rockinaway, Jan 17, 2008 IP
  3. Bohol

    Bohol Peon

    Messages:
    2,680
    Likes Received:
    75
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks rockinaway. I need that info.
     
    Bohol, Jan 18, 2008 IP
  4. bluearrow

    bluearrow Well-Known Member

    Messages:
    1,339
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    130
    #4
    Could you explain bit more. I can see this part .

    echo	'<li><a href="', $scripturl, '">' , $txt[103] , '</a></li>';
    Code (markup):
    How to add my own link there. ? :)

    .
     
    bluearrow, Jan 18, 2008 IP
  5. rockinaway

    rockinaway Guest

    Best Answers:
    0
    #5
    Do you want to add it to the menubar? The says 'Forum', 'Search' etc?

    Or elsewhere. Please tell me exactly where you want it :) A screenshot could prove useful :)
     
    rockinaway, Jan 18, 2008 IP
  6. bluearrow

    bluearrow Well-Known Member

    Messages:
    1,339
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    130
    #6
    Yup I want to add more links to menubar where you have Home , Help , Search etc. :)
     
    bluearrow, Jan 18, 2008 IP
  7. rockinaway

    rockinaway Guest

    Best Answers:
    0
  8. sawz

    sawz Prominent Member

    Messages:
    8,225
    Likes Received:
    808
    Best Answers:
    0
    Trophy Points:
    360
    #8
    is this the forum?
    http://forums.mangaraiders.com/

    it may be different then the default index.template.php
    i tried to download a copy of that theme from SMF to look at that file, but it was corrupted.

    i found a copy

    in index.template.php, find

    // Show the [help] button.
    	echo	'<li><a href="', $scripturl, '?action=help">' , $txt[119] , '</a></li>';
    Code (markup):
    add after:

    // How about an extra button.
    	echo	'<li><a href="your_link.com">' , $txt[1190] , '</a></li>';
    Code (markup):
    you'll have to find this
    txt[119] = 'Help';
    Code (markup):
    in index.english.php and add another line,
    txt[1190] = 'Help';
    Code (markup):
    change Help to whatever text you want to show
     
    sawz, Jan 20, 2008 IP