Notifications
Clear all

Limited Support

Our team is currently on holiday, so support will be limited during this period. Response times may be slower than usual, and some inquiries may be delayed.
We appreciate your patience and understanding, and we’ll resume our usual support by the end of August.

 

wpForo 1.x.x [Solved] Threaded automatic forum selected

4 Posts
2 Users
0 Reactions
1,141 Views
Posts: 85
Topic starter
(@zeeshan333)
Estimable Member
Joined: 6 years ago

Hi there,

Because my forum is in its early stages, I only need one section in my extended forum section.

Here is a link to the forum: http://examqa.com/forums/

Is there a way such that when a user clicks "Add topic", it automatically selects the first forum in the menu rather than the user clicking the corresponding forum in the drop down menu? I feel as though this will make things less complicated for my users as they aren't used to forums and will get confused over things like this.

Cheers.

3 Replies
Sofy
Posts: 5483
 Sofy
Admin
(@sofy)
Support Team
Joined: 8 years ago

Hi zeeshan333,

I'll ask the developers and let you know if there is an easy solution. 

Sofy
Posts: 5483
 Sofy
Admin
(@sofy)
Support Team
Joined: 8 years ago

Hi @zeeshan333,

Please follow the steps below:

1. Install the Simple Custom CSS and JS plugin:  https://wordpress.org/plugins/custom-css-js/

2. Add the following JS code via the plugin

jQuery(document).ready(function(){
jQuery("#wpforo #wpforo-wrap .wpfl-4 .add_wpftopic:not(.not_reg_user)").click(function (e){
var wrap = jQuery(this).closest('div.wpfl-4');
var form_wrap = jQuery( ".wpf-topic-form-extra-wrap", wrap );
if (!jQuery(e.target).find('.fa-times').length && !jQuery(e.target).hasClass('fa-times')) {
setTimeout(function(){jQuery(".wpf-topic-form-forumid", form_wrap).val("9").change()}, 500);
}
});
});

It'll work as you expected.

Posts: 85
Topic starter
(@zeeshan333)
Estimable Member
Joined: 6 years ago

Wow, cheers for the quick reply.