BuddyBoss Home – Web › Support Forums › Plugins › BuddyBoss Wall › Add Update Field
- This topic has 3 replies, 3 contibutors, and was last updated 9 years, 4 months ago by Anonymous.
Question
July 15, 2015 at 5:32 pm #42740@secondfirstsThis 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
July 16, 2015 at 10:09 am #42787@secondfirstsJust 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.
July 16, 2015 at 7:43 pm #42814@alyssa-buddyboss
AlyssaParticipant@secondfirsts Varun will be in touch shortly to help you out.
July 17, 2015 at 4:30 am #42830@
AnonymousHi @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 JqueryYou can change the icon set easily.
On ajaxPrefilter. i can give you suggestion after checking your codes .
Regards
Varun Dubey
- The question ‘Add Update Field’ is closed to new replies.