Jul 22, 2017 7:52 pm
I want to add an extra text box when clicking on Add topic. I have tried to modify the next code, which is in wpforo/wpf-assets/js/frontend.js, in the line 41.
$( "#add_wpftopic" ).click(function(){
$( ".wpf-topic-create" ).slideToggle( "slow" );
I tried to just add an alert to test if it was the right part of the code, but it does not seem like it. But I did not find any other part where there was an action assigned to "add_wpftopic", which is the ID of the button "Add topic".
Is it possible to add extra features to this button? My final intention is to add a drop-down list where the user will choose a product, and then he will write the message.
Thanks!
1 Reply
Jul 25, 2017 10:45 am
The topic and reply form is located in /wpforo/wpf-includes/class-template.php file. Function names:
function topic_form($forumid)
function reply_form($args)