Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 25 replies - 1 through 25 (of 49 total)
  • Avatar of Cidade Sonho
    Cidade Sonho
    Participant

    @somdefabrica

    Hello Friend <3 Thank’s

    OKay let´s go

    BP – 1.6.4
    WP – 3.5.1
    Theme – BP Default

    http://www.cidadesonho.com <- buddypress site

    Internet it´s normal :)

    The slow loading it´s only when we hit to add friend.

    Avatar of Cidade Sonho
    Cidade Sonho
    Participant

    @somdefabrica

    Yes! To show all member count … but I wish a counter for every member.

    Example:

    You – 220 Views
    Me – 200 Views
    Sh – 120 Views

    Understand? Thanks =D

    Avatar of Cidade Sonho
    Cidade Sonho
    Participant

    @somdefabrica

    I forgot the most important code :x sorry

    This code need must be the first code of your bp-custom.php

    add_action( 'wp', 'custom_lockdown_redirect', 3 );
    function custom_lockdown_redirect(){
    global $wp;
    	if (!is_user_logged_in()){
    	if ( bp_is_activation_page()
    		|| bp_is_register_page()
    		|| is_page_template( 'template-custom-lockdown.php' )
    		|| ( in_array( $GLOBALS['pagenow'], array( 'wp-login.php' )))
    		)
    	 return;
    		bp_core_redirect(get_option('siteurl') . "/register");
    		exit;
    		}
    	}

    Good ;)

    Avatar of Cidade Sonho
    Cidade Sonho
    Participant

    @somdefabrica

    From Brazil <3 Thanks for hard work!

    Avatar of Cidade Sonho
    Cidade Sonho
    Participant

    @somdefabrica

    This is what I use in bp-custom

    function bp_displayed_user_is_friend() {
    global $bp;
    if ( bp_is_profile_component() || bp_is_member() ) {
    if ( ('is_friend' != BP_Friends_Friendship::check_is_friend( $bp->loggedin_user->id, $bp->displayed_user->id )) && (bp_loggedin_user_id() != bp_displayed_user_id()) )
    if ( !is_super_admin( bp_loggedin_user_id() ) )
    
    return true;
    }

    than, I add the above code in members/single/home

    <?php if ( bp_displayed_user_is_friend() ) : ?>
    <?php locate_template( array( 'members/single/not-friend.php' ), true ) ?>
    <?php else : ?>
    
    // home
    
    <?php endif ?>

    in the end, I make a not-friend.php page for logout users

    That’s it! work for me

    Avatar of Cidade Sonho
    Cidade Sonho
    Participant

    @somdefabrica

    If I use the plugin BP Disable Activation

    Everything it´s okay. But the native system it´s more useful!

    Avatar of Cidade Sonho
    Cidade Sonho
    Participant

    @somdefabrica

    Hello :x I have this problem after register

    and the member don´t get the e-mail to active your account

    Warning: sprintf() [function.sprintf]: Argument number must be greater than zero in /wp-content/plugins/buddypress/bp-core/bp-core-filters.php on line 255

    I have multi site too
    I don´t change the core files :) NEVER ;)

    why? Thanks =D for all hard work
    from Brazil

    love bp

    Avatar of Cidade Sonho
    Cidade Sonho
    Participant

    @somdefabrica

    good man :) love bp <3

    Avatar of Cidade Sonho
    Cidade Sonho
    Participant

    @somdefabrica

    CLOSED TOPIC!

    Avatar of Cidade Sonho
    Cidade Sonho
    Participant

    @somdefabrica

    Thanks for answer :) But in BP Member page, and Groups, Foruns, we have:

    <?php bp_directory_members_search_form(); ?>

    I tryng to say <?php bp_directory_activity_search_form(); ?> understand? :x

    I will try to make a search form for activity

    My BP – 1.6.5
    My WP 3.5.1
    I use BP DEFAULT ;) <3

    Avatar of Cidade Sonho
    Cidade Sonho
    Participant

    @somdefabrica

    Work like a charm *–* Thaaanks!

    Avatar of Cidade Sonho
    Cidade Sonho
    Participant

    @somdefabrica

    Sorry but the logout of admin bar don´t do this issue.

    Only the logout of sidebar make this issue.

    I remove the logout button on sidebar in my two domain and now it´s working!

    sorry about the english

    cheers from Brazil, love BuddyPress. Keep Going on Excelent Work of WordPress

    Avatar of Cidade Sonho
    Cidade Sonho
    Participant

    @somdefabrica

    I have the same error with the http://stuffgrid.com/atividades/

    WP – 3.5.1
    BP – 1.7.1

    in this social network don´t have ajax plugins installed or embed in header

    Avatar of Cidade Sonho
    Cidade Sonho
    Participant

    @somdefabrica

    amazing :) thanks <3

    Avatar of Cidade Sonho
    Cidade Sonho
    Participant

    @somdefabrica

    This work with one cpt, i wish add another.

    this code it´s okay.

    modify “user_images” by your_custom_post

    Avatar of Cidade Sonho
    Cidade Sonho
    Participant

    @somdefabrica

    Great! But It´s that a way to do this with Groups?

    Avatar of Cidade Sonho
    Cidade Sonho
    Participant

    @somdefabrica

    Hello BP team, I don´t found anything yet … anyone can help me?

    I wish register antoher custom post type in activity stream

    Thanks for all hard work BP <3

    Avatar of Cidade Sonho
    Cidade Sonho
    Participant

    @somdefabrica

    I not try this but maybe work :) thanks!

    But I wish another custom … in your example: 2 custom post type to same activity :\

    Thanks from Brazil

    http://www.cidadesonho.com/atividades Activity

    Avatar of Cidade Sonho
    Cidade Sonho
    Participant

    @somdefabrica

    `// Gravar Anuncio

    add_filter ( ‘bp_blogs_record_post_post_types’, ‘activity_publish_custom_post_types’,1,1 );
    function activity_publish_custom_post_types( $post_types ) {
    $post_types[] = ‘user_images’;
    return $post_types;
    }

    add_filter(‘bp_blogs_activity_new_post_action’, ‘record_cpt_activity_action’, 1, 3);
    function record_cpt_activity_action( $activity_action, $post, $post_permalink ) {
    global $bp;
    if( $post->post_type == ‘user_images’ ) {
    if ( is_multisite() )
    $activity_action = sprintf( __( ‘%1$s publicou um novo Anúncio: %2$s’, ‘buddypress’ ), bp_core_get_userlink( (int) $post->post_author ), ‘‘ . $post->post_title . ‘‘, ‘‘ . get_blog_option( $blog_id, ‘blogname’ ) . ‘‘ );

    else
    $activity_action = sprintf( __( ‘%1$s publicou um novo Anúncio: %2$s’, ‘buddypress’ ), bp_core_get_userlink( (int) $post->post_author ), ‘‘ . $post->post_title . ‘‘ );

    }

    return $activity_action;
    }`

    This i use to record ONE activity, but HOW to register ANOTHER

    Avatar of Cidade Sonho
    Cidade Sonho
    Participant

    @somdefabrica

    Thanks @ubernaut :) I don´t change the cores file, only bp-default theme.

    I have afraid, beacause I have Multisite. But I understand now! Thanks, Cheers

    Avatar of Cidade Sonho
    Cidade Sonho
    Participant

    @somdefabrica

    Sorry Paul :x But I don´t understand ;\

    Avatar of Cidade Sonho
    Cidade Sonho
    Participant

    @somdefabrica

    Is there a way to display a Custom Post Type?

    Thanks for the code in github, but I wish post type, not categories.

    brazil :)

    Avatar of Cidade Sonho
    Cidade Sonho
    Participant

    @somdefabrica

    Thanks *-*

    Avatar of Cidade Sonho
    Cidade Sonho
    Participant

    @somdefabrica

    This not work on B.P 1.6.4

    Thanks for all!

    Close topic!

    Avatar of Cidade Sonho
    Cidade Sonho
    Participant

    @somdefabrica

    no my friend :( thanks!

    I just want a easy custom field image, understand?

Viewing 25 replies - 1 through 25 (of 49 total)