Replies
- Tosin on July 5, 2020 at 5:48 pm in reply to: [Resolved] Redirect users only for first login to a specific page #31475
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
- Tosin on June 29, 2020 at 2:40 pm in reply to: Add who to follow navigation tab to members directory page #31303
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), etcI 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
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
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' );
Can you also add a css class to the link
- Tosin on May 28, 2020 at 9:19 pm in reply to: [Resolved] How to limit buddypress registrations #30309
It worked perfectly now thanks a lot Ravi, im really gratefull
- Tosin on May 28, 2020 at 6:55 pm in reply to: [Resolved] How to limit buddypress registrations #30305
The code did not work and I am not using multisite
- Tosin on May 28, 2020 at 11:41 am 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 45565Thank you
- This reply was modified 4 years, 11 months ago by
Tosin.
- This reply was modified 4 years, 11 months ago by
- Tosin on May 26, 2020 at 12:09 pm in reply to: [Resolved] Notify Post Author on Comment for custom post types #30207
Thanks for the confirmation, there must be a plugin conflict on my end I will also check
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.