Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: TuXAPuK on August 09, 2019, 08:06:04 PM

Title: Newly created tab, how to make this active?
Post by: TuXAPuK on August 09, 2019, 08:06:04 PM
On site "forum.rukilovolt.info" make'd new tab named as "Статьи"... But i have truble with active flag, how to make them "active" when page/subpage active?
Title: Re: Newly created tab, how to make this active?
Post by: Sir Osis of Liver on August 09, 2019, 10:23:30 PM
How did you add the button?  Code should look like this -



'test' => array(
'title' => 'test',
'href' => $scripturl . '?action=test',
'show' => true,
'sub_buttons' => array(
),
),


Title: Re: Newly created tab, how to make this active?
Post by: TuXAPuK on August 09, 2019, 11:18:46 PM
<code php>
            'articles' => array(
                'title' => 'Статьи',
                'href' => $scripturl . '?action=article-list',
                'show' => true,
                'sub_buttons' => array(
                ),
</code>
Title: Re: Newly created tab, how to make this active?
Post by: Sir Osis of Liver on August 10, 2019, 12:06:52 AM
Try this -



            'article-list' => array(
                'title' => 'Статьи',
                'href' => $scripturl . '?action=article-list',
                'show' => true,
                'sub_buttons' => array(
                ),

Title: Re: Newly created tab, how to make this active?
Post by: TuXAPuK on August 10, 2019, 10:14:06 AM
Thanks! :)