Notifications
Clear all

Limited Support

Our support team is currently on holiday from December 25, 2025 to January 7, 2026, and replies may be delayed during this period.

We appreciate your patience and understanding while our team is away. Thank you for being part of the wpForo community!

Merry Christmas and Happy Holidays! 🎄

wpForo 1.x.x [Closed] Add extra feature to Add topic button

2 Posts
2 Users
1 Reactions
1,993 Views
Posts: 1
 luis
Topic starter
(@luis)
New Member
Joined: 8 years ago

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
Robert
Posts: 10591
Admin
(@robert)
Support Team
Joined: 10 years ago

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)