Skip to:
Content
Pages
Categories
Search
Top
Bottom

Automatic subscribtion


  • Ricsca2
    Participant

    @ricsca2

    I find bbpress a great forum but it has some basic shortcomings.
    For example, when a user creates or replies to a discussion, they should be automatically subscribed.
    This option is very useful to keep the forum active and who is not very familiar with forum does not know of its usefulness and does not know how to activate it on bbpress.

    Is there a way to activate it by default without using plugins?

Viewing 4 replies - 1 through 4 (of 4 total)

  • Julia
    Participant

    @sub0810

    How about this code?

    
    type="checkbox" ⇒ type="checkbox"checked
    

    You can customize the form-reply.php and form-topic.php .

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

    You can change the code simply and put both files in your child theme’s bbpress folder.


    Ricsca2
    Participant

    @ricsca2

    Could you explain me better how to do that I don’t want to damage my site? 🙂
    Thank you


    Robin W
    Moderator

    @robin-w

    bbp style pack

    once activated go to

    dashboard>settings>bbp style pack>Topic/Reply Form item 6


    Julia
    Participant

    @sub0810

    You can customze two file form-reply.php and form-topic.php .

    bbress> templates > default > form-topic.php at line 170

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

    bbress> templates > default > form-reply.php at line 104

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

    Then the topic and reply are automatically subscribed simply.
    But the participant can uncheck the checkbox about subscription by himself.
    If you do not want participant uncheck the checkbox, you can delete checkbox by CSS.

    Put these customized files in your child theme’s folder-bbpress.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Skip to toolbar