• andreiandronachi95

    (@andreiandronachi95)


    I have a forum built with bbpress and I have installed bbPress Anonymous Subscriptions plugin. Everything work good if I added a reply or a topic and the checkbox is check. But, I want to let client to subscribe to a topic even if he don’t add any reply. For example, I have the next code

    
    <div id="form-subscription">
        <span class="form-subscription-close"><span>
        <div class="form-subscription-content">
            <div class="subscription-first-image first-sub"></div>
            <div class="subscription-second-image second-sub" style="display:none"></div>
            <h3 class="first-sub">Subscribe to this topic</h3>
            <h3 class="second-sub" style="display:none">I put you on the list!</h3>
            <div class="topic-subscription-text"><span class="first-sub">Enter email address</span>
                <span class="second-sub" style="display:none">When a new answer appears on this topic, we'll send you an email notification.</span>
            </div>
            <input type="text" id="email_subscribe_to_topic" value="" tabindex="102" size="40">
            <label class="privacy-policy first-sub">
                <input class="privacy-policy-checkbox" type="checkbox" />I agree with <b>Privacy policy.</b>
            </label>
            <button class="button first-sub" id="topic-subscription">SEND</button>
            <button class="button second-sub" id="finish-subscription" style="display:none">Thank you!</button>
        </div>
    </div>
    

    Is it possible to add an email address and after I will press “Send” the client subscribe to a specific topic and if a reply will be added to that topic with bbPress Anonymous Subscriptions?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Stefano

    (@ste_95)

    Hi there,
    the best I could do is actually create a separate PHP function that handles the subscription, so that you could call subscribe_email( $topic_id, $email ). Is that something you would find helpful?

    A nice day,
    Stefano

    Thread Starter andreiandronachi95

    (@andreiandronachi95)

    Thank you for response! No, it’s ok, I already have a script that run every hour, but I was curious if I can do this with this plugin

    Plugin Author Stefano

    (@ste_95)

    It is not a native feature, but it can be done if you are up for some custom coding yourself ??

    Thread Starter andreiandronachi95

    (@andreiandronachi95)

    Some custom coding is not a problem. But is not something “must have”, I was curious if the plugin have this function if I didn’t find it. Thank you! ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Subscribe to a topic’ is closed to new replies.