Skip to:
Content
Pages
Categories
Search
Top
Bottom

Signature for Activity updates (need a little help to add_filter)

  • @sicksight

    Participant

    I want to make it possible to show a signature under each activity update content.

    I want to filter $activity_id in function bp_dtheme_post_update() in bp-default/_inc/ajax.php line 129 with this code:
    http://pastebin.com/NGtZRuqD
    But it didn´t work…. Where is the bug? oO

    Maybe @modemlooper, @r-a-y, … could help me again? ;)

Viewing 8 replies - 1 through 8 (of 8 total)
  • @modemlooper

    Moderator

    Doesn’t the forums extra plugin allow this?

    @nuprn1

    Participant

    @modemlooper only on group forum topics/posts

    but if someone is using the group forum extras signature plugin – the data is stored in get_userdata under signature which you could use this internal function to retrieve it
    bp_forum_extras_signatures_fetch_user_signature( $passintheuser_id )

    @sicksight

    Participant

    @nuprn1 Thank´s, but something is wrong with my add_filter code, and I need your help to fix this… :(

    @nuprn1

    Participant

    i’d go with appending the sig within the templatetags instead of updating (what if they changed the sig after posting an update?)

    ie, on the filter bp_get_activity_content_body

    @sicksight

    Participant

    @nuprn1 Yes, your right with the filter bp_get_activity_content_body!

    But I am very interested in why this code does not work:
    http://pastebin.com/NGtZRuqD -.-

    Perhaps someone can tell me my errors(?). :)

    @nuprn1

    Participant

    the code in the paste bin does not reference a valid filter or action hook.

    bp_dtheme_post_update is a function hooked on the action wp_ajax_post_update

    you would need to drill down to bp_activity_post_update or groups_post_update – depending on the object type

    @sicksight

    Participant

    my problem is solved! thanks! :)

    @hachimaki

    Member

    You could explain it a bit more? Because I was wondering how to do exactly the same, and i’m not an experimented coder

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Signature for Activity updates (need a little help to add_filter)’ is closed to new replies.
Skip to toolbar