Hi, thank you for the plugin! I have the newest versions of WP and BP installed and am having some problem. After installing the plugin, this works great to put notifications onto the Notifications page of each user, however the link provided in the notifications page is not working for users to view comments (which I want from the frontend post, and not from the backend wp-admin). I looked at code and have tried all other options I can find for plugins, but I cannot figure out what is going on or how to fix this, and need some assistance from someone who’s a genius 🙂
The comments number which is provided (at the end of link given, from the original plugin install) is correctly relayed to the Notifications page so I know this can work how I want it, however I am placing the code wrong I’m sure, and am not sure what code to place…….
Personally, I need to have a few lines of code in this plugin that would give me the actual comments link of the blog-post commented on. However I’m unsuccessful in reduplicating even an ID number from the blog-post. I do have a multisite install. The mainsite,com is where the Notifications page shows for users, while the blog-posts are coming from the sub-directory site mainsite,com/news
Is there someway to correctly call the /news/ blog-post full link with #comment or even just the blog-post link itself, which would go to (in the plugin) the $link=value at the bottom? Everything I try relays the notifications page data/link/ID/etc and with the actual comment ID showing in the link, I’m sure it is possible to pull the full blog-post link I just don’t know how and ultimately need help with this.
Thanks to all who read and help!
Need help with links, BuddyPress Notify Post Author on Blog Comment
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#L242You may modify those lines or I can add filter if needed. Please do let me know how may I help further.
Thank you
BrajeshThank 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 8 years, 4 months ago by Michael.
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!
Hi Michael,
Thank you for the details and I will certainly update this plugin. Please give me a day.Thank you
BrajeshSorry, I could not work on it. I will today.
Thank you
BrajeshHi 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.