Notifications
Clear all

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

4 Posts
2 Users
0 Reactions
934 Views
Posts: 85
Topic starter
(@zeeshan333)
Estimable Member
Joined: 5 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: 4910
 Sofy
Admin
(@sofy)
Support Team
Joined: 7 years ago

Hi zeeshan333,

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

Sofy
Posts: 4910
 Sofy
Admin
(@sofy)
Support Team
Joined: 7 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: 5 years ago

Wow, cheers for the quick reply.