AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

AI Assistant
Notifications
Clear all

[Closed] Add extra feature to Add topic button

2 Posts
2 Users
1 Reactions
2,128 Views
Posts: 1
 luis
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@luis)
New Member
Joined: 9 years ago
[#4743]

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: 10762
Admin
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@robert)
Support Team
Joined: 3 months 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)

Share: