mrwassen (@dwl003)

Forum Replies Created

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

  • mrwassen
    Participant

    @dwl003

    Hi Robin,

    Thanks for the suggested code. I tried it but it keeps returning nothing when specifying an existing forum ID. I checked that $attr contains the specified forum_id, but am unsure on how to troubleshoot bbp_forum_subscription_link().

    Any help would be appreciated.

    Thanks

    Dennis


    mrwassen
    Participant

    @dwl003

    Hi simjonna,

    Thanks for your reply. I think you have misunderstood my question. What I am looking for is the code to create a shortcode which returns the subscribe/unsubscribe link. It would be added to my theme’s functions.php and look something like this:

    function bp_subscribe_shortcode() {	
      ... logic to create a URL to subscribe, unsubscribe...
    } 
    add_shortcode( 'bbp-subscribe-link', 'bp_subscribe_shortcode' );

    It would accept one input: the ID of the forum, e.g.:

    [bbp-subscribe-link forum_id=’557′]

    It can then be placed in a page or a post etc.

    Any help appreciated.

    Thanks

    Dennis


    mrwassen
    Participant

    @dwl003

    Thanks Robin – that worked perfectly. BTW I just discovered the style pack – excellent stuff 🙂

    Thanks again,

    Dennis


    mrwassen
    Participant

    @dwl003

    After re-reading my original request, it seems a bit vague so let me clarify:

    After entering a new forum post and clicking “Post”, I am looking to display the topic index of the forum that was posted to.

    Ditto for a reply to a post.

    Hopefully this can be achieved with a small modification in the child theme functions.php ?

    Thanks in advance for any help.

    Dennis


    mrwassen
    Participant

    @dwl003

    One quick follow-up:

    I just realized there is an checkbox option for a user to subscribe to replies to an individual topic. I tested this and also in this case no reply email notification was received, so just to summarize the issues:

    1) user1 subscribed to a forum – user2 posts a new topic:
    new topic notification is sent out to user1 (good)

    2) user1 subscribed to a forum and user2 replies to a topic in that forum:
    reply notification not sent out to user1 (maybe good if 3 worked)

    3) user1 subscribed to a topic (checkbox) and reply posted by user2:
    reply notification email not sent out to user1 (not good)

    Thanks

    Dennis

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