Add additional user actions to the Activity Stream – UserPro Forums https://forum.userproplugin.com/forums/topic/add-additional-user-actions-to-the-activity-stream/feed/ Sat, 27 Apr 2024 19:02:00 +0000 https://bbpress.org/?v=2.6.2 en-US https://forum.userproplugin.com/forums/topic/add-additional-user-actions-to-the-activity-stream/#post-18710 <![CDATA[Add additional user actions to the Activity Stream]]> https://forum.userproplugin.com/forums/topic/add-additional-user-actions-to-the-activity-stream/#post-18710 Fri, 24 Jan 2014 13:56:22 +0000 mosaicrob Hi All,

I think the Activity Stream is one of the most powerful features of userpro, and really like how it shows information from various sources. (for example, when I create a new page, post, bbpress comment, etc)

But how would I add activity to this stream if it’s not being found by default? I’m using SabaiDirectory, and want the published listings to show up in the activity stream. I assume it is easy to do, even though these front end listings do not create custom post types.

Any suggestions on which files/where to edit? Thanks very much.

]]>
https://forum.userproplugin.com/forums/topic/add-additional-user-actions-to-the-activity-stream/#post-22330 <![CDATA[Reply To: Add additional user actions to the Activity Stream]]> https://forum.userproplugin.com/forums/topic/add-additional-user-actions-to-the-activity-stream/#post-22330 Fri, 21 Feb 2014 13:45:48 +0000 mosaicrob Are there any suggestions here? Just looking how or add user activity from another plugin to the activity stream. Thx.

]]>
https://forum.userproplugin.com/forums/topic/add-additional-user-actions-to-the-activity-stream/#post-28618 <![CDATA[Reply To: Add additional user actions to the Activity Stream]]> https://forum.userproplugin.com/forums/topic/add-additional-user-actions-to-the-activity-stream/#post-28618 Thu, 20 Mar 2014 02:59:45 +0000 massmosaic Is it possible to get an answer to this?

]]>
https://forum.userproplugin.com/forums/topic/add-additional-user-actions-to-the-activity-stream/#post-28624 <![CDATA[Reply To: Add additional user actions to the Activity Stream]]> https://forum.userproplugin.com/forums/topic/add-additional-user-actions-to-the-activity-stream/#post-28624 Thu, 20 Mar 2014 06:21:37 +0000 Ghost1227 It kinda depends on what you are trying to do and how comfortable you are with PHP. The feed itself is filterable… userpro_public_activity_filter for the public feed, and userpro_private_activity_filter for the private. The aforementioned filters allow you to modify the feed itself before it is displayed. However, this requires processing the additions each time the feed is displayed, and as such is more memory intensive than you may like, depending on use case. The activity feed itself is processed from a stored activity log. Ideally, you would want to add log entries to this log, but this method is much more complicated. Adding log entries of types which are unsupported is easier said than done, but it is possible.

]]>
https://forum.userproplugin.com/forums/topic/add-additional-user-actions-to-the-activity-stream/#post-28736 <![CDATA[Reply To: Add additional user actions to the Activity Stream]]> https://forum.userproplugin.com/forums/topic/add-additional-user-actions-to-the-activity-stream/#post-28736 Thu, 20 Mar 2014 22:10:28 +0000 massmosaic Thank you very much for your reply. We have a developer who is very good with php, so if a bit complex that wouldn’t scare us off.

So seems not as much about filtering for us as we want to add a non standard wp items. Sabai directory the above mentioned plugins keeps listings in it’s own db table. From what you say here, it looks like we need to add the log entries.

Are you able to give a brief summary of how or where this is found for us to pass onto our developer?

Thank you

]]>
https://forum.userproplugin.com/forums/topic/add-additional-user-actions-to-the-activity-stream/#post-28739 <![CDATA[Reply To: Add additional user actions to the Activity Stream]]> https://forum.userproplugin.com/forums/topic/add-additional-user-actions-to-the-activity-stream/#post-28739 Thu, 20 Mar 2014 23:29:13 +0000 Ghost1227 I think you’re misunderstanding the word ‘filter’. In WordPress, a filter isn’t necessarily ‘removing’ something like it’s seen in the traditional sense. Rather, it’s a type of hook that allows modification of a given variable.

Example

Yes, this is a VERY simplistic example, but running this function will append a single status item displaying nothing but ‘Hi there!’ to the activity stream for the user with ID 1. Hopefully that makes sense, and I apologize for the ridiculous way of displaying it, but the bbPress code formatting kinda sucks…

]]>
https://forum.userproplugin.com/forums/topic/add-additional-user-actions-to-the-activity-stream/#post-28743 <![CDATA[Reply To: Add additional user actions to the Activity Stream]]> https://forum.userproplugin.com/forums/topic/add-additional-user-actions-to-the-activity-stream/#post-28743 Thu, 20 Mar 2014 23:38:17 +0000 massmosaic Thank you. I’ll get our developer to check this out and get back to you. Very appreciative for your assistance 🙂

]]>
https://forum.userproplugin.com/forums/topic/add-additional-user-actions-to-the-activity-stream/#post-28744 <![CDATA[Reply To: Add additional user actions to the Activity Stream]]> https://forum.userproplugin.com/forums/topic/add-additional-user-actions-to-the-activity-stream/#post-28744 Fri, 21 Mar 2014 00:03:07 +0000 massmosaic Hi,

I’d like to add the response from our developer verbatim here. Wondering if you could help shine some light as to why our activity isn’t displaying? Thanks again:

“I’ve read this thread thoroughly. They are correct in saying we need to add the activity log to the DB table where it is stored.

And, this is exactly what I’ve done. If you read my emails, I clearly state that the codes are all in place for this. The Sabai listings create an activity log and it is already being added to the db table where the other activities are stored.

There is nothing else to do to get this to happen. I have done the hard work here.
The problem is, the sabai activity is not displaying. I don’t know why.

All that other stuff they are explaining is a workaround hack that stuffs our listings into the the output.
It is not efficient at all.

So, update them that we are getting the logs in the activity table. The system is just not displaying it.”

]]>
https://forum.userproplugin.com/forums/topic/add-additional-user-actions-to-the-activity-stream/#post-28786 <![CDATA[Reply To: Add additional user actions to the Activity Stream]]> https://forum.userproplugin.com/forums/topic/add-additional-user-actions-to-the-activity-stream/#post-28786 Fri, 21 Mar 2014 12:37:05 +0000 Ghost1227 Hehe… I did say that the filter wasn’t the efficient way. As for why it’s not displaying, I couldn’t tell you. Is the data being stored in the correct format? I ran a quick test on my local copy and it worked fine, but the logging system isn’t really intended to be used externally, so documentation is a bit scarce. I’d also like to point out that I’m not a UserPro developer, just another user who happens to be a professional WordPress developer who likes to help out with plugins that are worthwhile… getting feedback from the official UserPro staff on this might be beneficial.

]]>
https://forum.userproplugin.com/forums/topic/add-additional-user-actions-to-the-activity-stream/#post-29251 <![CDATA[Reply To: Add additional user actions to the Activity Stream]]> https://forum.userproplugin.com/forums/topic/add-additional-user-actions-to-the-activity-stream/#post-29251 Mon, 24 Mar 2014 06:36:47 +0000 massmosaic Hi there,

Really appreciate your assistance. Especially as you aren’t a User Pro developer.

Totally agree that it would be awesome to get assistance from a User Pro developer, but they just don’t seem to want to answer this query.

Any tips or anything to show us what the correct format to store the data in?

]]>