Customizing SMF > Graphics and Templates

add a button


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. - 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.

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

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']


[0] Message Index

Go to full version