Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4257
Latest: Alex998.
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 43295
Total Topics: 7523
Most Online Today: 221
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 191
Total: 191

Author Topic: add button to menu ?  (Read 6629 times)

0 Members and 1 Guest are viewing this topic.

Offline MinasC

  • Member
  • *
  • Posts: 36
    • View Profile
add button to menu ?
« on: February 23, 2007, 01:31:10 am »
hi there !!!

is there any way i can add a button to the main menu of smf 1.1.2 (+tp 0.971) linking to wherever i want ? (i don't want it in a block though)

thnx !!!

Offline bluedevil

  • Full Member
  • ***
  • Posts: 120
    • View Profile
Re: add button to menu ?
« Reply #1 on: February 23, 2007, 05:07:19 pm »
Edit the index.template .php of the default theme

Find this:

// Show the [home] button.
   echo'
            <td align="center" class="menubg' , $current_action == 'home' ? '2' : '' , '">
               <a href="', $scripturl, '">' , $txt[103] , '[/url]
            </td>';
       if($settings['TPortal_front_type']!='boardindex')
   // Show the [forum] button.
   echo'
            <td align="center" class="menubg' , $current_action == 'forum' ? '2' : '' , '">
               <a href="', $scripturl, '?action=forum">'.$txt['tp-forum'].'[/url]
            </td>';

   // Show the [help] button.
   echo'
            <td align="center" class="menubg' , $current_action == 'help' ? '2' : '' , '">
               <a href="', $scripturl, '?action=help">' , $txt[119] , '[/url]
            </td>';
   // How about the [search] button?
   if ($context['allow_search'])
   echo'
            <td align="center" class="menubg' , $current_action == 'search' ? '2' : '' , '">
                  <a href="', $scripturl, '?action=search">' , $txt[182] , '[/url]
            </td>';
   // Is the user allowed to administrate at all? ([admin])
   if ($context['allow_admin'])
   echo'
            <td align="center" class="menubg' , $current_action == 'admin' ? '2' : '' , '">
                  <a href="', $scripturl, '?action=admin">' , $txt[2] , '[/url]





Then make a copy like the one highlighted in red except change the places that say "forum" to (whatever you want).  Ive done it this way.  It is different on custom themes.This is for default theme only.

Make sure to back up the original file ;D

« Last Edit: February 23, 2007, 05:13:43 pm by bluedevil »

Offline MinasC

  • Member
  • *
  • Posts: 36
    • View Profile
Re: add button to menu ?
« Reply #2 on: February 23, 2007, 07:08:31 pm »
i did it with "games" but it keeps loading the page i am in !!! is that because i haven't spesified what action "games" stand for ???

(thnx a lot for the tab-making tip)

Offline bluedevil

  • Full Member
  • ***
  • Posts: 120
    • View Profile
Re: add button to menu ?
« Reply #3 on: February 24, 2007, 12:20:27 pm »
i did it with "games" but it keeps loading the page i am in !!! is that because i haven't spesified what action "games" stand for ???

(thnx a lot for the tab-making tip)

Try with "arcade" instead.

Offline MinasC

  • Member
  • *
  • Posts: 36
    • View Profile
Re: add button to menu ?
« Reply #4 on: February 25, 2007, 06:22:03 am »
got it to work at last !!! thnx a lot for the help !!!

 

Related Topics

  Subject / Started by Replies Last post
5 Replies
8137 Views
Last post February 02, 2011, 01:05:44 pm
by SMFHacks
5 Replies
8896 Views
Last post July 14, 2012, 10:09:27 pm
by SMFHacks
5 Replies
2743 Views
Last post July 31, 2017, 04:09:17 pm
by Juan Carlos
0 Replies
2571 Views
Last post July 05, 2019, 03:26:24 pm
by SMFHacks
1 Replies
1487 Views
Last post August 22, 2021, 08:25:43 pm
by SMFHacks

+- Recent Topics

Please Help! by SMFHacks
April 17, 2024, 08:04:55 am

Rate own images by fvlog19
April 11, 2024, 10:56:53 am

Tidy Child Boards on 2.1.4 by SMFHacks
April 04, 2024, 03:54:12 pm

Problems SMF 2.0.19 > 2.1.4 SMF Gallery Pro - Recents Images to overall header by Michel68
March 30, 2024, 12:41:08 pm

Can't DROP 'id_member'; check that column/key exists Datei: by SMFHacks
March 30, 2024, 11:58:20 am

No thumbnails on new uploads by Tonyvic
March 29, 2024, 06:26:18 am

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

Powered by EzPortal