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: 236
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 1
Guests: 200
Total: 201

Author Topic: i need help with urban theme. i need edit menu  (Read 6027 times)

0 Members and 1 Guest are viewing this topic.

Offline biohazardjoker

  • Member
  • *
  • Posts: 1
    • View Profile
i need help with urban theme. i need edit menu
« on: May 19, 2009, 01:24:48 am »
ok my problem is this i need to edit the menu but i dont get it how to edit it, "im a noob in php" im trying to find the menu in file index.template.php but in the part of the menu appears this

Quote
// Show the menu up top. Something like [home] [help] [profile] [logout]...

function template_menu()

{

   global $context, $settings, $options, $scripturl, $txt;



   // Work out where we currently are.

   $current_action = 'home';

   if (in_array($context['current_action'], array('admin', 'ban', 'boardrecount', 'cleanperms', 'detailedversion', 'dumpdb', 'featuresettings', 'featuresettings2', 'findmember', 'maintain', 'manageattachments', 'manageboards', 'managecalendar', 'managesearch', 'membergroups', 'modlog', 'news', 'optimizetables', 'packageget', 'packages', 'permissions', 'pgdownload', 'postsettings', 'regcenter', 'repairboards', 'reports', 'serversettings', 'serversettings2', 'smileys', 'viewErrorLog', 'viewmembers')))

      $current_action = 'admin';

   if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm', 'forum')))

      $current_action = $context['current_action'];

   if ($context['current_action'] == 'search2')

      $current_action = 'search';



   if (isset($_GET['board']) || isset($_GET['topic']))

      $current_action = 'forum';



   if ($context['current_action'] == 'theme')

      $current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' ? 'profile' : 'admin';



   // Are we using right-to-left orientation?

   if ($context['right_to_left'])

   {

      $first = 'last';

      $last = 'first';

   }

   else

   {

      $first = 'first';

      $last = 'last';

   }



     // Show the start of the tab section.

      echo '

            <div id="topnav">

               <ul class="topnav" style="overflow: visible; float: left;">

                     

                  <li class="level1"><a href="', $scripturl, '" class="level1"><span><span class="title">' , $txt[103] , '</span></span></a></li>



                  <li class="level1"><a href="', $scripturl, '?action=help" class="level1"><span><span class="title">' , $txt[119] , '</span></span></a></li>';



               

                  // Is the user allowed to administrate at all? ([admin])

                  if ($context['allow_admin'])

                  echo '

                                  <li class="level1"><a href="', $scripturl, '?action=admin" class="level1"><span><span class="title">' , $txt[2] , '</span></span></a></li>';

                             

                  // Edit Profile... [profile]

                  if ($context['allow_edit_profile'])

                  echo '

                                  <li class="level1 parent"><a href="', $scripturl, '?action=profile" class="level1 parent"><span><span class="title">' , $txt[79] , '</span></span></a>

                                  <ul class="level2">

                      <li class="level2"><a href="', $scripturl, '?action=profile" class="level2"><span>' , $txt['hcm_summary'] , '</span></a></li>

                      <li class="level2"><a href="', $scripturl, '?action=profile;sa=account" class="level2"><span>' , $txt['hcm_account'] , '</span></a></li>

                      <li class="level2"><a href="', $scripturl, '?action=profile;sa=forumProfile" class="level2"><span>' , $txt['hcm_forumProfile'] , '</span></a></li>

                  </ul></li>';

any help to this noob please???

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
5211 Views
Last post March 04, 2007, 12:33:15 am
by ©RebelRose
2 Replies
4426 Views
Last post February 15, 2008, 02:07:58 pm
by lanec
0 Replies
5070 Views
Last post October 16, 2010, 02:23:48 am
by morokat
1 Replies
3942 Views
Last post April 15, 2011, 02:31:43 pm
by SMFHacks
3 Replies
3495 Views
Last post March 20, 2015, 02:46:46 am
by lonewood

+- 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