BuddyDev

Search

Need help with links, BuddyPress Notify Post Author on Blog Comment

  • Keymaster
    (BuddyDev Team)
    Posts: 21801
    Brajesh Singh on #4320

    Hi Michael,
    Welcome to BuddyDev.

    I am sorry, I may not have understood you correctly. So, please correct me where needed.

    1. The plugin works by linking to dashboard URL if the comment is not approved
    2. If the comment is approved, It links to the front end comment of the site.

    Please see the section here
    https://github.com/buddydev/bp-notify-post-author-on-blog-comment/blob/master/bp-blog-comment-notifier.php#L242

    You may modify those lines or I can add filter if needed. Please do let me know how may I help further.

    Thank you
    Brajesh

  • Participant
    Level: Initiated
    Posts: 19
    Michael on #4386

    Thank you sir for the fast reply, and for helping me find (and bookmark) this post!

    I have my site set to auto-approve the comments, and I get a link in notifications as [http://monoico.com/wp-admin/comment.php?action=approve&c=4]

    In the reference link you provided above, that is the code I have been working with to try to get a front-end blog-post link such as [http://monoico.com/news_subdirectory/2016/06/17/title-of-user-blog-post/]

    In the example link you gave above, if I switch the $link= then I get a broken link, simply as this:
    Edited: [http://monoico.com/#comment-]

    Also please note that the “news_subdirectory” is a subdirectory site, and is not the main wordpress site, but is a secondary site of a multipress install. I hope that answers everything sir!

    • This reply was modified 6 years, 3 months ago by Michael.
  • Participant
    Level: Initiated
    Posts: 19
    Michael on #4413

    I don’t mean to rush you or anything, I just forgot to add if you would create a filter that might work this way for me, please? I have tried for a week to do myself and asking others to and at no luck. It calls the comment ID perfectly so I’m sure it can be done I just don’t know how to get the blog post link to work, thanks again sir!

  • Keymaster
    (BuddyDev Team)
    Posts: 21801
    Brajesh Singh on #4414

    Hi Michael,
    Thank you for the details and I will certainly update this plugin. Please give me a day.

    Thank you
    Brajesh

  • Participant
    Level: Initiated
    Posts: 19
    Michael on #4415

    wow thanks 🙂

  • Participant
    Level: Initiated
    Posts: 19
    Michael on #4446

    Hi, I just wanted to see if there was any advance on this, thank you

  • Keymaster
    (BuddyDev Team)
    Posts: 21801
    Brajesh Singh on #4464

    Sorry, I could not work on it. I will today.

    Thank you
    Brajesh

  • Participant
    Level: Initiated
    Posts: 19
    Michael on #4471

    awesome, thank you sir

  • Keymaster
    (BuddyDev Team)
    Posts: 21801
    Brajesh Singh on #4486

    Hi Michael,
    I have worked on it. It won’t work for older notifications but will work with newer.

    The one problem I am facing is getting the correct url og a comment. A blog can use any type of permalink setting, so front end linking will make it a little complex. Should I use the ?p=post_id#comment_id instead ?)

The topic ‘Need help with links, BuddyPress Notify Post Author on Blog Comment’ is closed to new replies.

This topic is: not resolved