Replies
- Tosin on June 19, 2021 at 6:52 pm in reply to: [Resolved] Add roles to users on new registration and first login #39199
Thank you brajesh
Please can you check the rough code
Also the code should not affect administrators (Admins should be excluded)
/** * Change user role on first login * */ function buddydev_change_user_role_on_first_login( $user_login, $user ) { if ( ! function_exists( 'buddypress' ) ) { return; } // check for user's last activity. $last_activity = bp_get_user_last_activity( $user->ID ); if ( empty( $last_activity ) ) { get_user_by('id', $user_id)->set_role('active member'); } } add_action( 'wp_login', 'buddydev_change_user_role_on_first_login', -1, 2 );
Thanks
This might help I use this plugin to extend user login session https://wordpress.org/plugins/remember-me-controls/
- Tosin on June 4, 2021 at 3:22 pm in reply to: [Resolved] Buddypress moderation button shortcode #38945
Thanks
But now how will I output the button in a custom location inside my theme files using maybe do shortcode to output the button.
- Tosin on June 4, 2021 at 12:52 pm in reply to: [Resolved] Buddypress moderation button shortcode #38942
ok noted ive removed the code
thanks
- Tosin on June 3, 2021 at 11:31 am in reply to: [Resolved] Buddypress moderation button shortcode #38929
The code messed up this page https://www.nigerpress.com/archive/ the code should not show or display blog post archive pages for posts and other custom post types. The button should only display in the title of single posts and single adverts.
The button is also displaying in menu
see link for example https://www.nigerpress.com/article/business-palm-oil-saga/The button is also not showing in the custom post type advert see https://www.nigerpress.com/advert/high-quality-traditional-clothing-wares/
- Tosin on June 2, 2021 at 6:04 pm in reply to: [Resolved] Buddypress moderation button shortcode #38918
sure I can use code snippet
Thanks
- Tosin on June 2, 2021 at 12:45 pm in reply to: [Resolved] Buddypress moderation button shortcode #38913
Good day sir,
How is the progress
- Tosin on May 31, 2021 at 7:27 pm in reply to: [Resolved] Enforce strong passwords in Buddypress General Settings #38903
Hello
Is it possible to make the validation (medium password) instead of (strong password)
Thanks
Hello,
Where you able to submit this feature request to the buddypress dev team?
Thanks
- Tosin on May 14, 2021 at 9:58 am in reply to: Auto matically change user role after meeting conditions #38653
Thanks for the feedback, im really sorry for the inconvenience and I pray and hope this covid problem is eradicated as soon as possible please stay safe.
PS: just to share – this plugin (https://wordpress.org/plugins/bp-verified-member/) has a new feature to automatically verify all users that belong to a specific user role, in plugin the settings I selected the role AUTHOR – so all AUTHORS on my site are automatically verified.
When users sign up in my site they are registered as CONTRIBUTORS, now to prevent the process of manually verifying users and automating the whole verification process all I need to do is to change a user’s role from CONTRIBUTOR to AUTHOR after certain conditions are met.
I will remind you later about this maybe next month, I hope you consider.
Please the team at Buddydev should stay safe, we really depend on you guys.
Thanks so much for your outstanding support