Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
plugins-topic
BlogLinking Plugin Events-Managerbzddypress
Avatar
xDave
Germany
Member
sp_UserOfflineSmall Offline
Dec 11, 2014 - 5:28 pm

Hey there once again ;)

I´m back with a question, not sure whether it is an issue of the sp bloglinking addon or buddypress plugin.

I use the events manager plugin on my page. With bloglinking you can choose a forum where the comments go to as Forum Topic. This is working fine. 

So when you for instance post a comment it is added as a forum post within the blogpost linking topic. 

BUT..when you use the function in combination with blog articles the comment goes to the forum (ok) and is also postet on the bp activity stream(ok). When you post a comment on Events in dte Eventsmanager it goes to the forum (ok) but is NOT shown on the Activity stream..(nOK).

How can I make it behave like it does on Blog-Comments ?

 

Best regards

Dave

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Dec 11, 2014 - 9:16 pm

when you post a comment in the events manager, it shows up in the forum??  how is that??? can you explain? 

what is this events manager and how does it know how to post in the forum, vice a wp blog post which we hook into???

Avatar
xDave
Germany
Member
sp_UserOfflineSmall Offline
Dec 12, 2014 - 1:17 am

Ehm..yes. 

Okay again :)

Blogpost behavior:

Create Blogpost->
make the bloglinking active and choose forum where it should show up->
save->
Bloglinking creates a forum post with the blogpost content in the chosen forum->
Comments on the Blogpost are created as Forumposts AND on bp wall

 

Events-Manager behavior:

pretty much the same EXCEPT the Comment (the auto created Forrumpost) being shown on the wall.

 

Okay. What is Events Manager. It is a pretty popular....management tool for events in WP ;)
And how it works I don´t know, but it seems creating Events is pretty much the same like creating Blogposts plus showing the options you provide with the plugin on the bottom...

 

Shown as "event","event recurring" here in the options, tooScreenShot310.jpgImage Enlarger

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Dec 12, 2014 - 4:36 am

I will need @mr-papa to respond to the specific BuddyPress question (although I will try and see if I can find anything out in the meantime) but this seems likely to come down to whether the correct WordPress action hooks are fired or not which is what determines add-on plugin activity after an event (like creating a blog post).

We can see that your Events Manager is, in fact, implemented as a WordPress Custom Post Type. This clearly runs the 'publish' action hook. So the question is probably - what hooks are fired when a comment is made on the custom post type.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Dec 12, 2014 - 4:46 am

OK - again I need @mr-papa to discuss the Simple:Press BuddyPress plugin side of things but I can confirm (for both you and for him) that the Blog Linking plugin uses the WordPress 'comment_post' action hook (along with 'wp_set_comment_status').

Our BuddyPress plugin does not call this at all and I assume that this is because it is actually concerned with fortum activity and not blog post activity which the core BuddyPress plugin itself is responsible for. So I suspect the answer would be that this comes down to the interaction between the Custom Post Type Events post and BuddyPress itself.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Dec 12, 2014 - 9:26 pm

well, I have no data to back this up currently, but this is what I think is happening...

you are getting activity from the wp comments on the blog post, not from the forum post....  buddypress does take comments and make them activities...  you are not getting activity from the event custom post type comments because buddypress is not catching those...  perhaps there is a setting in buddpress to make that happen...

should you be getting activity from the forum posts?  I would say yes...  but if activity for the blog post comment in the forum was coming from sp, then you would get it for the cpt comment in forum too... we dont know the difference...  I suspect, but do not know, that the blog linking plugin is creating the comment post outside the api... hence the buddypress integration plugin doesnt know about it and add it to activity...

Now, IF that is the case, correcting or improving the blog linking plugin would actually cause you to get a double activity stream from the comment and the blog post... not ideal either... an option to not have them count, would leave you right where you are today...  maybe a filter so you could programmatically remove could work...

but first, need to prove, or disprove, my hypothesis...  that's on tap for this weekend...

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Dec 12, 2014 - 9:50 pm

I have confirmed this to be the case...  You are getting the activity from the wp comment on the blog post...  its not coming from the forum post via the comment...  and buddypress is not catching the wp comment on the custom post type post...  I would check buddypress for this option...

also verified that the blog linking plugin is not using our post api for creating the forum post from the comment, so core or any other plugin that acts on new posts wont see the post created...  I have opened a ticket to address this in the blog linking plugin...

but as mentioned, when we fix this, you may get duplicate activity - one from wp comment and one from forum post...  will have to think about best way to handle that...

Avatar
xDave
Germany
Member
sp_UserOfflineSmall Offline
Dec 16, 2014 - 5:04 am

Best would be same behavior as on blogposts. But double activity is better than none, I can moderate doubleposts on the stream.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Dec 16, 2014 - 5:19 am

If I am wrong we will come back and post here but I am pretty sure that this has now been fixed up for the next update which will be shortly after WordPress 4.1 goes into the wild.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Dec 16, 2014 - 9:42 pm

yes, fixed in next release... unfortunately,  you will get an activity for the wp comment and for the forum post...  because buddypress is not catching the comment on the custom post type, you will only get the forum post... might be a setting you can do within buddypress... also, you may be able to tell buddypress to ignore the post comment too... 

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17363
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625