Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • @a3sthetix

    Participant

    Take a look at how BuddyPress Activity Plus appends shortcodes to the end of activity posts. Then, have a look at BuddyPress Activity Stream Hashtags.

    The concept would be to append shortcodes or a hashtag on form submission. The hashtag would be interpreted by the activity stream hashtags OR the shortcode would be interpreted during the activity stream loop.

    The difference is pre-processing the data to become links or post-processing data when the page loads.

    I’m still working on something similar. I need to have it done by tomorrow, so I’ve been a little sloppy about it.

    1. Edit activity/post-form.php (modify the form to add your new fields)
    2. Add JS to use your selections to insert hashtag or shortcode to the end of the activity textarea.
    3. Add filtering links to show hashtag filter OR write custom filtering system

    Hope that helps. I’m still crunching!

    @a3sthetix

    Participant

    I realize it’s been almost 2 years since this topic began, but I’m working on a similar issue.

    My solution is to encode the tags / meta information into shortcodes which are appended to the post. When the post is displayed, the short codes are interpreted and displayed.

    @a3sthetix

    Participant

    The key here is this line of PHP:

    `<?php if ( bp_has_groups( 'user_id=' . bp_loggedin_user_id() . '&type=alphabetical&max=100&per_page=100&populate_extras=0' ) ) :
    while ( bp_groups() ) : bp_the_group(); ?>`

    Ideally you would want to not output the group right away. You would want the group information to go into a variable for processing. The proper way to do this is with a new plugin or template file.

    So grab all the group names `bp_group_name()` and ids `bp_group_id()` into a PHP array and then run a new loop once you’ve resorted the array.

Viewing 3 replies - 1 through 3 (of 3 total)
Skip to toolbar