Advertisement:

Author Topic: Adding Buttons to the menu in Subs.php  (Read 193 times)

Offline greenlungs81

  • Semi-Newbie
  • *
  • Posts: 16
Adding Buttons to the menu in Subs.php
« 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 [nofollow]',
            'show' => true,
            'sub_buttons' => array(
            ),
         ),

 Any idea Why its doing this? Its been a while since i messed with smf

Offline Sir Osis of Liver

  • SMF Hero
  • ******
  • Posts: 9,164
Re: Adding Buttons to the menu in Subs.php
« Reply #1 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.

Code: [Select]

     'title' => 'Twitch Streams',


Offline greenlungs81

  • Semi-Newbie
  • *
  • Posts: 16
Re: Adding Buttons to the menu in Subs.php
« Reply #2 on: January 08, 2019, 11:35:49 PM »
I feel Stupid HAHA Thanks  8)