Viewing 4 posts - 1 through 4 (of 4 total)
  • Question

    #42740
    @secondfirsts

    This is a pretty technical question… I’m trying to add a buddypress activity meta field to activity updates with a buddypress plugin. The goal is letting users share their feelings when they post an update. Any direction to how I can add a form input field to pass extra data from the wall update?

    More detail on what I’ve tried…
    If I put an extra form input field in the activity update form it isn’t submitted to my plugin by the BB wall. I figured out that the wall plugin takes over the form submission with javascript and doesn’t include any other fields besides the content. I notice that your BB Media plugin that works with the wall to add photos, does some fancy jQuery ajaxPrefilter to add it’s own photo data. I copied that way of doing it, but it seems that only my code OR BB Media will successfully submit their extra data using the ajaxPrefilter.

    Answers

    #42787
    @secondfirsts

    Just to clarify, using the method I described above, my plugin is working. I can submit my feeling field through the ajaxPrefilter. However, if I also attach a photo with BB Media it seems my ‘feeling’ ajaxPrefilter is overrode by BB Media and my field isn’t sent. If I make sure I enqueue my javascript after BB Media then it goes the other way around, my ajaxPrefilter overrides and any attached photos aren’t sent to BB Media and aren’t posted.

    I was just hoping perhaps you all have advice on how I should add a field. The normal way doesn’t seem to work because BB Wall takes over the ajax post of the form. Copying what you did in BB Media works, but seems to conflict with any other plugin trying to do the same thing.

    #42814

    Alyssa
    Participant
    @alyssa-buddyboss

    @secondfirsts Varun will be in touch shortly to help you out.

    #42830

    Anonymous
    @

    Hi @secondfirsts, you can send me your codes at [email protected]

    if you are just adding some icons to activity, you can use little simple apprach https://wordpress.org/plugins/buddypress-sticker/
    In this approach text had been inserted into what’s new text area using Jquery

    You can change the icon set easily.

    On ajaxPrefilter. i can give you suggestion after checking your codes .

    Regards
    Varun Dubey

Viewing 4 posts - 1 through 4 (of 4 total)
  • The question ‘Add Update Field’ is closed to new replies.