Skip to:
Content
Pages
Categories
Search
Top
Bottom

how to add ‘extra’ data to the wire?


  • Anointed
    Participant

    @anointed

    What is the process to adding extra data to the buddypress wire?

    Basically I have vbulletin hooked to wordpressmu properly so that wordpress is aware of the user who is actually posting in vbulletin.

    I want to add the vbulletin posts to the buddypress wire, so that when a user makes a post in the vb forums, it is automatically added to the wire like it currently does for bbpress.

    I suppose I need to know which file generates the wire, and also what format I need to export the data from vb in so the wire will pick it up.

    Vb is just the first step, I also have full video/audio/photo software tied together with wp/bp now. Eventually I can forsee a number of different programs tied together, and I need to figure out how to go about adding this data to the wire.

    thanks

Viewing 7 replies - 1 through 7 (of 7 total)

  • gpo1
    Participant

    @gpo1

    @Anointed, What do you mean by “I also have full video/audio/photo software tied together with wp/bp now” Is it that you got all these working on BP?


    Anointed
    Participant

    @anointed

    Gpo1:

    Just like with vb, I had another commercial program ‘bridged’ to wordpress. What this means is that a person registers using vb, and is auto registered in wp db, as well as other programs. Logins are also unified, so only one login is required sitewide.

    Within the bridge code for each program there are extra db fields created that sync everything together. This means that user ‘xyz’ for vb is also user ‘xyz’ for wp and other software.

    What this allows me to do is virtually anything I want.

    For instance:

    I can actually query the database for user ‘xyz’, not only am I able to find everything user ‘xyz’ has done in wp/bp but also vb and other software.

    Then say I want to display all the vb posts, video’s, photo’s, from user ‘xyz’ inside of buddypress. Well it’s easy to pull the data because the programs are synced.

    Now it’s just a matter of bringing that info into bp, which is the reason I asked the question in the first place.

    Hope this makes sense.


    gpo1
    Participant

    @gpo1

    Thats a good bridged it’s apity it only works for VP cos I want to use it for vidiscript.com youtube software.


    Anointed
    Participant

    @anointed

    if you want to use vidiscript you would need to have a bridge created for it. It’s the same type of process really. It is NOT an easy process unless you really, and I mean really understand php.

    Just so my actual question doesn’t get lost in this:

    I still need to know what files generate the wire, and the proper format to add information to the wire should anyone care to help out.


    Burt Adsit
    Participant

    @burtadsit

    anointed, do you mean the activity streams?


    Anointed
    Participant

    @anointed

    Yes, I mean the activity stream on the buddypress homepage that shows updates whenever a person adds a blog post, forum post, posts to wire etc…

    Basically I want to add posts from vbulletin there, and once I figure that part out, I can then extend it to audio/video updates from the other system.


    Burt Adsit
    Participant

    @burtadsit

    Well, when I did this for bpgroups I just piggybacked onto the groups component. bpgroups records new topic and post activity that is directly created in bbpress. Since bp group forums was already recording the activities, I just had to simulate the same thing.

    The function bp_activity_record() in bp-activity.php does the grunt work. It takes about a zillion parameters. Here’s how I did it:

    $activity = array(
    'item_id' => (int)$group_id,
    'component_name' => 'groups',
    'component_action' => 'new_forum_post',
    'is_private' => 0,
    'secondary_item_id' => (int)$post['post_id'],
    'user_id' => (int)$post['poster_id'] );

    // create a group obj that the rest of bp can use, play nice
    $group_obj = new BP_Groups_Group($group_id);
    groups_record_activity($activity);

    groups_record_activity() in bp-groups.php takes an array param and if you look in there it eventually calls bp_activity_record()

    You’ll have to figure out how to translate all the params that takes into the table colums and eventually into what you see displayed. There aren’t any docs for the activity streams as far as I know.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘how to add ‘extra’ data to the wire?’ is closed to new replies.
Skip to toolbar