Replies
- Daniel on November 14, 2022 at 6:44 pm in reply to: Remove overlapping link on -forgot password- page #47347This reply has been marked as private.
- Daniel on November 14, 2022 at 6:10 pm 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 - Daniel on November 14, 2022 at 5:52 pm 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 - Daniel on November 14, 2022 at 5:45 pm in reply to: [Resolved] Redirect users immediately after profile photo upload #47341
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
DanielRegards
Daniel - Daniel on November 14, 2022 at 4:28 pm in reply to: [Resolved] Customize website logo link to get redirected to BP profile when logged in #47336This reply has been marked as private.
- Daniel on November 14, 2022 at 4:11 pm 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 - Daniel on November 13, 2022 at 4:34 pm in reply to: [Resolved] Redirect users immediately after profile photo upload #47316
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 - Daniel on November 13, 2022 at 11:38 am in reply to: [Resolved] Customize website logo link to get redirected to BP profile when logged in #47315
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 - Daniel on November 12, 2022 at 8:20 am 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 - Daniel on November 11, 2022 at 1:26 pm in reply to: Remove overlapping link on -forgot password- page #47296This reply has been marked as private.