Skip to:
Content
Pages
Categories
Search
Top
Bottom

problem with adding like button on activity content

  • @alimir

    Participant

    hey guys,
    I created a free like plugin for buddypress. (with ‘wp_bp_activity_meta’ table)
    For showing the button and data, i used ‘add_filter’ on ‘bp_get_activity_action’ function:

    function wp_put_ulike_buddypress($content) {
    	$content.= wp_ulike_buddypress('put');
    	return $content;
    }
    
    add_filter('bp_get_activity_action', 'wp_put_ulike_buddypress');

    Now there is a problem here! this filter, will adds button text on Admin activity, and ‘bp_get_activity_id’ function can’t work in here! like this picture:
    http://www.imageupload.co.uk/images/2014/11/05/bp-problem.jpg
    Also when i use ‘is_admin’ Condition, it takes some problems on the main activity page.

    So, what should i do to solve this problem?!?

  • The topic ‘problem with adding like button on activity content’ is closed to new replies.
Skip to toolbar