Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Aiheen aloitti: fotografo74 - maaliskuu 02, 2009, 02:36:21 IP

Otsikko: Problem with highlighted menu tab
Kirjoitti: fotografo74 - maaliskuu 02, 2009, 02:36:21 IP
Hi :-)
How can i control the highlighted state of menu tab ?
The code is in in subs.php?
When i select a tab, another tab is highlighted!
Thanks!
Antonio
Otsikko: Re: Problem with highlighted menu tab
Kirjoitti: Kermit - maaliskuu 03, 2009, 01:28:50 IP
Nope not in Subs.php,for creating a new button you should use Subs.php,but for highligthened tab you should look in index.template.php

<li id="button_', $act, '">
<a', $button['active_button'] ? ' class="active"' : '', ' title="', $act , '" href="', $button['href'], '">
<span', isset($button['is_last']) ? ' class="last"' : '', '>', ($button['active_button'] ? '<em>' : ''), $button['title'], ($button['active_button'] ? '</em>' : ''), '</span>
</a>
</li>';


There are the related lines for default core theme
Otsikko: Re: Problem with highlighted menu tab
Kirjoitti: fotografo74 - maaliskuu 04, 2009, 02:33:11 AP
Lainaus käyttäjältä: Duncan85 - maaliskuu 03, 2009, 01:28:50 IP
Nope not in Subs.php,for creating a new button you should use Subs.php,but for highligthened tab you should look in index.template.php

<li id="button_', $act, '">
<a', $button['active_button'] ? ' class="active"' : '', ' title="', $act , '" href="', $button['href'], '">
<span', isset($button['is_last']) ? ' class="last"' : '', '>', ($button['active_button'] ? '<em>' : ''), $button['title'], ($button['active_button'] ? '</em>' : ''), '</span>
</a>
</li>';


There are the related lines for default core theme
Thanks!
Like screenshot attached, when i click to Fotografie, the tab Galleria is highligthened!
I use SMF Gallery Pro and i created tab Fotografie with Custom tab Mod ( http://www.macroforum.org/smf2rc/index.php?action=gallery&sa=listall;type=recent )
Why?
Antonio
Otsikko: Re: Problem with highlighted menu tab
Kirjoitti: Kermit - maaliskuu 04, 2009, 05:24:54 AP
Please attach your Subs.php & index.template.php
Otsikko: Re: Problem with highlighted menu tab
Kirjoitti: fotografo74 - maaliskuu 04, 2009, 05:34:36 AP
Thanks Duncan85 :-)
I attached Subs.php and index.template.php
Antonio
Otsikko: Re: Problem with highlighted menu tab
Kirjoitti: Kermit - maaliskuu 04, 2009, 05:47:32 AP
Btw. is that the link for the Fotografie tab  ?

http://www.macroforum.org/smf2rc/index.php?action=gallery&sa=listall;type=recent


If yes,it's normal that the gallery tab is highligthened,because they both have the same action name gallery
Otsikko: Re: Problem with highlighted menu tab
Kirjoitti: fotografo74 - maaliskuu 04, 2009, 06:16:19 AP
Lainaus käyttäjältä: Duncan85 - maaliskuu 04, 2009, 05:47:32 AP
Btw. is that the link for the Fotografie tab  ?

http://www.macroforum.org/smf2rc/index.php?action=gallery&sa=listall;type=recent


If yes,it's normal that the gallery tab is highligthened,because they both have the same action name gallery
Ah ok :-)
Yes, the link is this
http://www.macroforum.org/smf2rc/index.php?action=gallery&sa=listall;type=recent

I try create same action in gallery but with other name :-)

Thanks!
Antonio