Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: greenlungs81 on January 08, 2019, 11:17:58 PM

Title: Adding Buttons to the menu in Subs.php
Post by: greenlungs81 on January 08, 2019, 11:17:58 PM
I'm trying to add a button to my smf menu but when i add it it just shows a blank spot in the bar the button works but its not showing the text its right beside forum. Here's the code i used


         'twitch_streams' => array(
            'title' => $txt['Twitch Streams'],
            'href' => 'https://greenlungs-community.000webhostapp.com/index.php?page=twitch_streams',
            'show' => true,
            'sub_buttons' => array(
            ),
         ),

Any idea Why its doing this? Its been a while since i messed with smf
Title: Re: Adding Buttons to the menu in Subs.php
Post by: Sir Osis of Liver on January 08, 2019, 11:25:59 PM
Just put the title in quotes, you're not using the $txt variable unless you add it to language file.



     'title' => 'Twitch Streams',

Title: Re: Adding Buttons to the menu in Subs.php
Post by: greenlungs81 on January 08, 2019, 11:35:49 PM
I feel Stupid HAHA Thanks  8)