Page 1 of 1
Forum

Welcome to the Tweaking4All community forums!
When participating, please keep the Forum Rules in mind!

Topics for particular software or systems: Start your topic link with the name of the application or system.
For example “MacOS X – Your question“, or “MS Word – Your Tip or Trick“.

Please note that switching to another language when reading a post will not bring you to the same post, in Dutch, as there is no translation for that post!



bbPress - Auto chec...
 
Share:
Notifications
Clear all

[Solved] bbPress - Auto check topic reply notification

1 Posts
1 Users
0 Reactions
2,915 Views
 Hans
(@hans)
Famed Member Admin
Joined: 12 years ago
Posts: 2859
Topic starter  

By default bbPress (WordPress forum) has the notification checkbox UNchecked.
To make this default checked, create a folder called "bbpress" in your theme folder.

Copy from your bbpress plugin folder

/wp-content/plugins/bbpress/templates/default/bbpress

the following files into the newly created "bbpress" folder of your theme:

form-reply.php
form-topic.php

Locate in both files the line

<input name="bbp_topic_subscription" id="bbp_topic_subscription" type="checkbox" value="bbp_subscribe"<?php bbp_form_topic_subscribed(); ?> tabindex="<?php bbp_tab_index(); ?>" />

and change them to

<input name="bbp_topic_subscription" id="bbp_topic_subscription" type="checkbox" value="bbp_subscribe" checked tabindex="<?php bbp_tab_index(); ?>" />

Notice that added "checked" after the value field and the removal of the PHP part with bbp_form_topic_subscribed() in it.

Save both files and as of now the checkbox will by default be checked.


   
ReplyQuote
Share: