Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

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

  • 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.


    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


    Cidade Sonho
    Participant

    @somdefabrica

    I forgot the most important code 😡 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 😉


    Cidade Sonho
    Participant

    @somdefabrica

    From Brazil <3 Thanks for hard work!


    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


    Cidade Sonho
    Participant

    @somdefabrica

    If I use the plugin BP Disable Activation

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


    Cidade Sonho
    Participant

    @somdefabrica

    Hello 😡 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


    Cidade Sonho
    Participant

    @somdefabrica

    good man 🙂 love bp <3


    Cidade Sonho
    Participant

    @somdefabrica

    CLOSED TOPIC!


    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? 😡

    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


    Cidade Sonho
    Participant

    @somdefabrica

    Work like a charm *–* Thaaanks!


    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


    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


    Cidade Sonho
    Participant

    @somdefabrica

    amazing 🙂 thanks <3


    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


    Cidade Sonho
    Participant

    @somdefabrica

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


    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


    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


    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


    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


    Cidade Sonho
    Participant

    @somdefabrica

    Sorry Paul 😡 But I don´t understand ;\


    Cidade Sonho
    Participant

    @somdefabrica

    Thanks *-*


    Cidade Sonho
    Participant

    @somdefabrica

    This not work on B.P 1.6.4

    Thanks for all!

    Close topic!


    Cidade Sonho
    Participant

    @somdefabrica

    no my friend 🙁 thanks!

    I just want a easy custom field image, understand?


    Cidade Sonho
    Participant

    @somdefabrica

    up!

Viewing 25 replies - 1 through 25 (of 43 total)
Skip to toolbar