Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

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

  • matom
    Participant

    @matom

    I’ve tried this with 1.8-beta2 as I was pleased to find out that the Group Extension has been rewritten – thanks to the dev team for this change.

    It no longer outputs the full HTML, but unfortunately it’s still not correct. Instead it now outputs:

    Are you sure you want to do this? Please try again. (Please try again links to the page it’s on)

    I’ve updated the ticket here: https://buddypress.trac.wordpress.org/ticket/5052


    @boonebgorges
    – I’ve been banging my head against this issue for quite a while now – so any help would be much appreciated.


    matom
    Participant

    @matom

    I’ve posted a ticket about this issue:

    https://buddypress.trac.wordpress.org/ticket/5052


    matom
    Participant

    @matom

    Hi @tolisvt,

    Did you find a solution for this?

    I’ve tried so many things but can’t get to the bottom of this.

    What I’ve found out is that it somehow has something to do with the request URL (ie. http://my-domain/groups/my-group/admin/my-group-extension/). I’ve copied the generated HTML of the group extension admin page into the groups/single/home.php of the default BP theme, replacing everything so it runs the same HTML on every single group page, with the result that:

    – /groups/my-group/ -> returns the data correctly
    – /groups/my-group/admin/edit-details -> returns the data correctly
    – /groups/my-group/admin/my-group-extension/ -> returns the incorrect data (the full HTML of the current page)?

    If anyone knows why this might be and what I can do to solve it, please let me know. I really need to get this resolved.

    Thanks.


    matom
    Participant

    @matom

    Found it – it needs to be hooked to bp_groups_posted_update:

    `add_action( ‘bp_groups_posted_update’, ‘add_title_to_group_activity’, 10, 4 );`


    matom
    Participant

    @matom

    This works fine for me too, thanks – but it works only for personal activity updates and I really need it to work on group updates.

    Is there a different action I need to hook this to to add meta data to group updates?

    This is what I’ve got in my functions.php

    `function add_title_to_activity( $content, $user_id, $activity_id ) {
    bp_activity_update_meta( $activity_id, ‘activity_title’, $_POST );
    }

    add_action( ‘bp_activity_posted_update’, ‘add_title_to_activity’, 10, 3 );`

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