Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: GeneralMitch on June 08, 2017, 07:51:38 PM

Title: New Button menu script
Post by: GeneralMitch on June 08, 2017, 07:51:38 PM
Hey guys Im having an Issue I went into SUBS.PHP to create a new menu button on my form cause custom action wouldnt let me  add a script.  So I made the button and it appears and everything but since I dont know how to add a script to the button when u click it it just goes back to forum menu. How do I add a script to the button?
Title: Re: New Button menu script
Post by: Illori on June 08, 2017, 08:08:41 PM
have you read https://wiki.simplemachines.org/smf/Buttons_-_How_do_I_add_buttons_to_SMF_2.0 ?

what exactly do you want the button to do?
Title: Re: New Button menu script
Post by: GeneralMitch on June 08, 2017, 08:11:26 PM
Im  linking a  FORM from typeforms  and it has options to "launch in a pop up"  So The "SCRIPT " it gives me needs to be run when I click the button instead of like a URL
Title: Re: New Button menu script
Post by: GeneralMitch on June 08, 2017, 09:36:03 PM
With custom action I can get to this   part

https://gyazo.com/be0554eb8af011c32a85abbff2ee013f

But I want to not have to click the white button I want when I click the button the first time it launches the pop up