[4770] 1st level buttons not working.. (smf, configuration, members etc)

Started by fullmetalgirl, June 21, 2011, 09:51:31 AM

Previous topic - Next topic

fullmetalgirl

Hi,

I would really like to see the 1st level buttons to direct me to the first childpage of that button.
So if i click on configuration i want to be send to the base features,

right now the button is just doing nothing. something i find very anoying.
Thnx up front :)

running 2.0
http://www.gras-valkparkieten.nl/smf2/

Antechinus

Yes I agree. It's one of the things we inherited in 2.0, but both Norv and myself are not in favour of the current setup and agree that having all menu links active makes a lot more sense for future versions. Unfortunately, recoding 2.0 to do this is a bit of a PITA.

fullmetalgirl

thnx for your answer,

it's to bad...
hopefully it will come someday :)

Antechinus

I'll have a look at it when I get time, unless someone beats me to it. Wouldn't be a bad plan to write it as a mod for 2.0, just as a test run for 2.1 changes.


fullmetalgirl


onepiece

Possible fix:

Sources/Subs-Menu.php

Code (Find) Select
   // If we didn't find the area we were looking for go to a default one.

Code (Replace) Select
   foreach ($menu_context['sections'] as $section_id => $section)
   {
      foreach ($section['areas'] as $area_id => $area)
      {
         if (!isset($menu_context['sections'][$section_id]['url']))
         {
            $menu_context['sections'][$section_id]['url'] = isset($area['url']) ? $area['url'] : $menu_context['base_url'] . ';area=' . $area_id;
            break;
         }
      }
   }

   // If we didn't find the area we were looking for go to a default one.


Themes/default/GenericMenu.template.php

Code (Find) Select
<a class="active firstlevel" href="#"

Code (Replace) Select
<a class="active firstlevel" href="', $section['url'], $menu_context['extra_parameters'], '">

Code (Find) Select
<a class="firstlevel" href="#">

Code (Replace) Select
<a class="firstlevel" href="', $section['url'], $menu_context['extra_parameters'], '">


Advertisement: