Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 25 replies - 1 through 25 (of 3,194 total)
  • Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    function bp_filter_groups_from_activity( $a, $activities ) {
    
    	if ( bp_is_current_component( 'activity' ) ) {
    		foreach ( $activities->activities as $key => $activity ) {
    			
    			if ( $activity->component =='groups') {
    				unset( $activities->activities[$key] );
    				$activities->activity_count = $activities->activity_count-1;
    				$activities->total_activity_count = $activities->total_activity_count-1;
    				$activities->pag_num = $activities->pag_num -1;
    			}
    		}
    		 
    		$activities_new = array_values( $activities->activities );
    		$activities->activities = $activities_new;
    		 	
    	}
    	return $activities;
    }
    add_action('bp_has_activities','bp_filter_groups_from_activity', 10, 2 );
    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    array( $this is because code is inside a class and it’s referring back to itself

    add_action( 'xprofile_set_field_data', array( $this, 'OnBuddyPressUserUpdate' ), 101 );

    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    change whatever you want in the arguments

    function filter_send_message_btn() {
    
    		$args = array(
    			'id'                => 'private_message',
    			'component'         => 'messages',
    			'must_be_logged_in' => true,
    			'block_self'        => true,
    			'wrapper_id'        => 'send-private-message',
    			'link_href'         => bp_get_send_private_message_link(),
    			'link_title'        => __( 'Send a private message to this user.', 'buddypress' ),
    			'link_text'         => __( 'Private Message', 'buddypress' ),
    			'link_class'        => 'send-message',
    		);
    
    		return $args;
    
    }
    add_filter('bp_get_send_message_button_args', 'filter_send_message_btn');
    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    I work at WebDevStudios, if the plugin above breaks in any way then message me.

    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    list what you’ve done to prevent spam

    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    that search for friends has always been a bit slow. it could be a combo of slow hardware, alot of friends or js that isn’t written efficiently.

    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    Switch theme to twenty twelve and test. Sounds like some wonky css

    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    BuddyPress uses cookies for globals. You will need to sync those accordingly.

    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    post the contents of your page.php into pastebin and put link here. Sounds like missing div

    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    In the activity directory there is a friends tab. Only your activity shows on your profile

    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    if you are trying to make directory pages a sub page of activity. That wont work.

    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    function bbg_enqueue_styles() {
    	remove_theme_support( 'bp-default-responsive' );
    }
    add_action( 'wp_enqueue_scripts', 'bbg_enqueue_styles', 5 );
    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    what Henry posted is correct way. scroll down to Add Classes By Filters

    http://codex.wordpress.org/Function_Reference/body_class

    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    moved this to its own thread, please refrain from posting new issues on other topics

    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    From a developers perspective, BuddyPress gives you a large amount of functionality in what a social network is known to be. For FREE. The last bits that you need for a unique site/app/experience is up to you. BuddyPress even includes many APIs to add more functionality.

    BuddyPress dropped theme dependency in version 1.7. The base templates that come with the plugin are generically a basic social network. This is just one example of how to use the core software on the front end.

    Here is a perfect example of doing something besides a “dated social network” as you put it, and this was years ago, it’s a web based game with BuddyPress. http://www.bpinspire.com/zombies-vs-hippies

    It is really a disservice to the contributors of this project when people post these rants. They work countless hours to give you something that is ridiculously feature rich. No one is ever going to develop for you a “magical just what you expect” social network for free.

    If you think there are areas that need enhancement then help contribute to the project.

    http://codex.buddypress.org/participate-and-contribute/

    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    show for displayed user

    remove that

    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    you can create a plugin for you extra code or us bp-custom.php

    http://codex.buddypress.org/plugindev/bp-custom-php/

    The contents of about.php go in the content function. There shouldn’t be a template file.

    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    No plugins for that specific function. Closest to that are plugins to add a default friend on sign up.

    There is a function you can use as a basis to create this functionality.

    friends_add_friend( $initiator_userid, $friend_userid, $force_accept = true );

    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    Buddy-default looks the same as bp-default but it’s stripped of BuddyPress template so the templates get loaded from new template compatibility. Only a theme getting template capability files will use ajax new posts notice.

    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    bp-custom.php goes in wp-content/plugins. If that file exists BuddyPress will load it. By using this file instead of function.php you will preserve your added code if you ever wish to change themes.

    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    Do not use your own template files. Use plugins.php and hook your content.

    function about_page() {
       add_action( 'bp_template_title', 'about_page_show_screen_title' );
       add_action( 'bp_template_content', 'about_page_show_screen_content' );
       bp_core_load_template( apply_filters( 'bp_core_template_plugin', 'members/single/plugins' ) );
    }
    
    function about_page_show_screen_title() {
        echo 'About Page';
    }
    
    function about_page_show_screen_content() {
       echo 'the content of the page';
    }
    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    You could try to use https://github.com/modemlooper/Buddy-Default

    It’s the BP-default theme but it uses new bp-templates. You’ll have to change the parent: in style.css. Also, the template files in current BP are a bit different than the original bp-default.

    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    buddypress/members/single/notifications

    folder is missing?

    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    You should not use your super admin account for your profile on BuddyPress. Create a new administrator account for that and reserve the super admin for backend admin tasks only.

Viewing 25 replies - 1 through 25 (of 3,194 total)