BuddyDev

Search

Replies

  • Participant
    Level: Guru
    Posts: 904

    OK thanks

    But can this be achieved using a simple code like this for login redirect

    
    function custom_login_redirect_to($user_login, $user) {
    	bp_core_redirect( get_option('siteurl') . "/profile/" );
    }
    add_action('wp_login', 'custom_login_redirect_to', 10, 2);
    

    I found this link https://buddydev.com/buddypress-tutorial-redirect-user-first-login/

    Thanks

  • Participant
    Level: Guru
    Posts: 904

    AWESOME!! Thanks Brajesh, More suggestions would be

    1. Adding a widget for who to follow like twitter
    2. option to set different criteria like author post count, author comment count(this would identify authors who are driving deep engagement through comment conversations), etc

    I really think this feature would drive engagement in any community as members would compete to get featured in the who to follow suggestion, which will encorage members to create more content since being listed would be based on post count.

    Thanks

  • Participant
    Level: Guru
    Posts: 904
    Tosin on in reply to: BuddyPress Auto Activate Auto Login Problem #30810

    I did not get a solution to this but I think the problem is related to Easy WP hosting because this problem started just after I migrated my site from siteground to Namecheap’s Easy WP

  • Participant
    Level: Guru
    Posts: 904
    Tosin on in reply to: BuddyPress public message shortcode. #30545

    I found a solution

     /**
     * BuddyPress public message shortcode.
     */
    function bp_public_message_shortcode() {	
    $username = bp_core_get_username( $user_id );
    $empty = '';
    
    if( is_user_logged_in() && bp_loggedin_user_id() != get_the_author_meta( 'ID' ) ) {
    	return '<a class="inner-msg" href=" '.wp_nonce_url( site_url() . '/news-feed/?r=' . $username ) .'  ">Shoutout To Author</a>';
     } 
    if( bp_loggedin_user_id() ) {
        return $empty;
     }
     else if( !is_user_logged_in() ) {
        return '<a class="outer-msg" href=" '.esc_url( wp_login_url()) .' ">Login to follow or message this author !</a>';
     }
    } 
    add_shortcode( 'bp_public_message_link', 'bp_public_message_shortcode' ); 
  • Participant
    Level: Guru
    Posts: 904
    Tosin on in reply to: BuddyPress public message shortcode. #30523

    Can you also add a css class to the link

  • Participant
    Level: Guru
    Posts: 904
    Tosin on in reply to: [Resolved] How to limit buddypress registrations #30309

    It worked perfectly now thanks a lot Ravi, im really gratefull

  • Participant
    Level: Guru
    Posts: 904
    Tosin on in reply to: [Resolved] How to limit buddypress registrations #30305

    The code did not work and I am not using multisite

  • Participant
    Level: Guru
    Posts: 904
    Tosin on in reply to: [Resolved] How to limit buddypress registrations #30296

    Thanks for the reply but I dont really know how to code and how to check for the conditions

    The conditons needed are
    1. User must be a guest or logged out
    2. Total site members must be 5,000
    3. redirect to page with ID 45565

    Thank you

    • This reply was modified 4 years, 11 months ago by Tosin.
  • Participant
    Level: Guru
    Posts: 904

    Thanks for the confirmation, there must be a plugin conflict on my end I will also check

  • Participant
    Level: Guru
    Posts: 904
    Tosin on in reply to: Buddypress Private Reply Plugin #29648

    I also think the private replies should have a custom CSS selectors so that they can be styled differently just like how private replies have a blue border or background on this support forum.