News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

add a button

Started by jsl104, March 07, 2012, 04:30:26 AM

Previous topic - Next topic

jsl104

im trying to add a button to my menu with the help of the FAQ but everytime i put it in the subs and download it filezilla my site says there is something wrong with my php. im not doin something right.

http://wiki.simplemachines.org/smf/How_do_I_add_buttons_to_SMF_2.0 - thats the instructions on how to add a button


         'roster' => array(
            'title' => $txt['roster]',
            'href' => $scripturl . ?action=roster',
            'show' => true,
            'sub_buttons' => array(
            ),
         ),

^^^^^ that is what i did, but it doesnt work. this is my first time trying to add a button and i have tried all night and i cant get it right. i dont know what the href is, i jus copied what everything else did. if you can help me with my problem that would be great.

Shambles

I think you missed off a single quote before your ?action=

jsl104

im pretty sure i had it on there when i was doing it on the php. i jus left it out when i posted it on here. but good eye.

Killer Possum

In addition to what Shambles said, it looks like you've got the second ' on the wrong side for $txt['roster]' -  should be, $txt['roster']

Advertisement: