BuddyDev

Search

Replies

  • Participant
    Level: Guru
    Posts: 504
    Daniel on in reply to: Remove overlapping link on -forgot password- page #47347
    This reply has been marked as private.
  • Participant
    Level: Guru
    Posts: 504
    Daniel on in reply to: Remove overlapping link on -forgot password- page #47344

    Hi Brajesh,

    I would like to renew BuddyDev membership, could I please have a little discount code?

    Thank you.

    Regards
    Daniel

  • Participant
    Level: Guru
    Posts: 504
    Daniel on in reply to: Remove overlapping link on -forgot password- page #47342

    Hi Brajesh,

    It worked that’s great 🙂

    I figured out that due that users compare social media with the big ones like Facebook, Twitter etc. and when they recognize that a site is not as professional as the big players, then they don’t come back again.

    Thank you!

    Regards
    Daniel

  • Participant
    Level: Guru
    Posts: 504

    Hi Brajesh,

    Sorry I’m not a php programmer, could you please just tell me how to put my url please? I have pasted your code below again, I want that the redirect will be to https://www.mywebsite/members/me

    /**
     * Redirect user on successful php upload and crop.
     */
    add_action( 'bp_enqueue_scripts', function () {
        // you can set the url value to anything.
    	$url = trailingslashit( trailingslashit( bp_get_members_directory_permalink() ) . 'me/' . bp_get_members_invitations_slug() );
    	ob_start();
    	?>
        bp.Avatar.Attachment.on( 'change:url', function( data ) {
            if( data.get('object') == 'user' ) {
                window.location="<?php echo esc_url( $url ); ?>";
            }
        } );
    	<?php
    	$script = ob_get_clean();
    	wp_add_inline_script( 'bp-avatar', $script, 'after' );
    }, 100 );

    Thank you!

    Regards
    Daniel

    Regards
    Daniel

  • Participant
    Level: Guru
    Posts: 504
    This reply has been marked as private.
  • Participant
    Level: Guru
    Posts: 504
    Daniel on in reply to: Remove overlapping link on -forgot password- page #47335

    Hi Brajesh,

    Thank you for the code, that’s awesome!

    Just may I ask you to which php file I need to add the code? Is it the child theme’s function.php file or the login.php file?

    Thank you.

    Regards
    Daniel

  • Participant
    Level: Guru
    Posts: 504

    Hi guys,

    That’s a nice feature, to which php file can I add the code to redirect user after successfully upload and crop profile photo?

    Thanks for the input.

    Regards
    Daniel

  • Participant
    Level: Guru
    Posts: 504

    Hi,

    I know that this will be customized code that will need to be added on my themes function php file:

    
    /*Replace Login page url link*/
    function login_page_URL( $url ) {
    	$url = home_url( '/members/me' );
    	return $url;
    }
    add_filter( 'login_headerurl', 'login_page_URL' );

    But the code should have a condition that only for logged in users the main website url should change. That’s why I wanted to ask you if I could hire you to do the job? The goal will be that the logged in users will not see anymore the login landing page after they are logged-in and when they are clicking on the website logo, that they will get redirected to their BP page.

    I can pay via Paypal.

    Thanks for your feedback.

    Regards
    Daniel

  • Participant
    Level: Guru
    Posts: 504
    Daniel on in reply to: Remove overlapping link on -forgot password- page #47306

    Hi Brajesh,

    Thanks for your help! I would like to hide the logo and the overlapping link together but the CSS I am using don’t apply on that page at all, that’s very strange.

    I have used:

    body.login div#login h1 a {
    		display: none;
    }

    and as well I tried:

    
    .login h1 {
     display: none
    }

    but the CSS code doesn’t effect the page.

    Do you have any solution to hide the logo and the overlapping link together to get rid of it?

    Thank you for your assistance.

    Regards
    Daniel

  • Participant
    Level: Guru
    Posts: 504
    Daniel on in reply to: Remove overlapping link on -forgot password- page #47296
    This reply has been marked as private.