Group Mods

  • Profile picture of @mercime
  • Profile picture of r-a-y
  • Profile picture of Hugo

Support: Requests & Feedback

Feature requests; criticism.

How to add a Title for Activity Post? (3 posts)

Started 7 months, 2 weeks ago by: imjscn

  • Profile picture of imjscn imjscn said 7 months, 2 weeks ago:

    Since some plugins are adding stuffs into activity stream, so I guess adding a title would not be imposible. But, how? Can we work it out the similiar way as adding a metabox ?

  • Profile picture of r-a-y r-a-y said 7 months, 2 weeks ago:

    On the backend, you’d need to experiment with adding some activity meta.

    In BP 1.5, all the activity meta functions are available in bp-activity/bp-activity-functions.php:

    http://buddypress.trac.wordpress.org/browser/tags/1.5/bp-activity/bp-activity-functions.php#L438

    On the frontend, you’ll need to add an input field to the post form and then grabbing the form data so you can save it as activity meta. Check out /bp-default/activity/post-form.php for the actual form.

    Saving the title might be a little tricky with AJAX though.

  • Profile picture of imjscn imjscn said 7 months, 2 weeks ago:

    Thanks for the tip! I will see what I can work out :-)