Demo Data Plugin with BuddyPress 1.2
I have a problem with my Demo Data Plugin (http://wordpress.org/extend/plugins/demo-data-creator/) in Buddypress 1.2. The functions that add dummy wire messages no longer work, and looking for the string “wire” in the BP source gives very few results. I guess it’s all rolled into the activity system now, yes?
So my question is: can I use the
bp_activity_addfunction to add wire messages to groups and profiles? The defaults for this function are:
$defaults = array(
'id' => false, // Pass an existing activity ID to update an existing entry.
'action' => '', // The activity action - e.g. "Jon Doe posted an update"
'content' => '', // Optional: The content of the activity item e.g. "BuddyPress is awesome guys!"
'component' => false, // The name/ID of the component e.g. groups, profile, mycomponent
'type' => false, // The activity type e.g. activity_update, profile_updated
'primary_link' => '', // Optional: The primary URL for this item in RSS feeds (defaults to activity permalink)
'user_id' => $bp->loggedin_user->id, // Optional: The user to record the activity for, can be false if this activity is not for a user.
'item_id' => false, // Optional: The ID of the specific item being recorded, e.g. a blog_id
'secondary_item_id' => false, // Optional: A second ID used to further filter e.g. a comment_id
'recorded_time' => gmdate( "Y-m-d H:i:s" ), // The GMT time that this activity was recorded
'hide_sitewide' => false // Should this be hidden on the sitewide activity stream?
So to add a dummy wire message to a group I’d use:
"action"=>"Posted a Wire message",
"item_id"=>[ the group ID ]
If anyone uses this plugin and can help with any other bugs I’d be very grateful.
You must be logged in to reply to this topic.