Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 20 replies - 26 through 45 (of 45 total)
  • @etivite

    Member

    download the older version of restrict group creation – that should work on 1.2.9

    @etivite

    Member

    standard feature in other community software solutions – sometimes you have to manage members/trolls/issues via which the site admins needs to verify the context.

    @etivite

    Member

    it would make a good wp-admin plugin to view all member PMs. if someone has done that – is different question :P

    @etivite

    Member

    possible hooking the remove_action prior that that action being added

    https://buddypress.trac.wordpress.org/browser/tags/1.5/bp-themes/bp-default/functions.php#L112

    @etivite

    Member

    WP Google+ Connect

    @etivite

    Member

    a point to note – there is a group meta table for this reason and should avoid modifying core items.

    @etivite

    Member

    looks like a bug
    https://buddypress.trac.wordpress.org/browser/tags/1.5/bp-blogs/bp-blogs-activity.php#L57

    Suppose to check for an existing activity keying off the blog id, post id, user id, etc and then it updates instead of inserting.

    @etivite

    Member

    you’ll need to perform a sql count query on the activity table for a given user_id

    @etivite

    Member

    archive.php has it as well

    @etivite

    Member

    it has been covered before – you’ll need to filter on bp_has_activities (search the forum on this term and you’ll find some examples) and then loop over the array and unset which activities do not meet your requirement. not ideal and may mess up ‘load more/pagination’

    @etivite

    Member

    status is updates, topics/posts is forum posts (but bbpress1.0), time since active is part of the default template(and bp includes a template function), and followers plugin did not work on my instance but that includes a count template function.

    if you want the exact output here – you could use the functions in the plugin (+ followers and bp core time_since) and output your own mixup of counts via the action hook bp_after_sidebar_me

    Once BP 1.6 + BBP 2.1 hits – I’ll update this plugin with ordering and more counts

    @etivite

    Member

    only polls for activity_update types; not all – straight db query and caching the results.

    @etivite

    Member

    member profile stats pulls the same data (and a bit more)

    @etivite

    Member

    the last 2 are the only ones i’m aware of – but you would need to check if the returned ‘groups’ array is not empty. Have a look at the function located in bp-groups-classes.php – in fact it might be easier to create your own sql query and check for _admin & _mod

    @etivite

    Member

    if you have the group_id
    `
    check_is_admin( $user_id, $group_id )
    check_is_mod( $user_id, $group_id )
    `

    or
    `
    BP_Groups_Member::get_is_mod_of( $user_id )
    BP_Groups_Member::get_is_admin_of( $user_id )
    `

    which returns an array with number of groups & the groups

    @etivite

    Member

    @etivite

    Member

    already done core via the function `bp_activity_make_nofollow_filter`

    @etivite

    Member

    You can block them from being saved to the activity table (db)
    https://wordpress.org/extend/plugins/buddypress-block-activity-stream-types/

    (otherwise, posts on the forums about removing them from the activity loop array)

    then if you need to block a certain blog_id (if on multisite)
    etivite_bp_activity_block_denied_activity_type_check

    this filter will pass a long additional data to check for – but you’ll need to dig into the code to figure that portion out.

    @etivite

    Member

    What I’ve done in the past for blocking activity comment replies but the same idea can be modified for forum replies. (ie, change out the permalink)


    $bp->root_domain . '/wp-login.php?redirect_to=' . urlencode( bp_activity_get_permalink( $activities_template->activity->id ) )

    @etivite

    Member

    something like this (add to your theme functions php file)


    function etivite_remove_group_invites_step() {
    global $bp;

    // If we're not at domain.org/groups/create/ then return false
    if ( !bp_is_groups_component() || !bp_is_current_action( 'create' ) )
    return false;

    unset( $bp->groups->group_creation_steps );
    }
    add_action( 'bp_groups_setup_nav', 'etivite_remove_group_invites_step', 9999 );

Viewing 20 replies - 26 through 45 (of 45 total)
Skip to toolbar