Replies
- Brajesh Singh on June 22, 2021 at 7:13 pm in reply to: [Resolved] ‘BuddyBlog Pro’ changes posts URLs after activating in BB Theme / BB Platform #39230
Thank you.
- Brajesh Singh on June 22, 2021 at 7:13 pm in reply to: Getting the error i.e. jQuery is not defined #39229
Hi Vishakha,
Are you using a custom theme? If yes, Please contact the theme author. They will be in a better position to assist you with it.Regards
Brajesh Hi Robert,
Thank you for using the plugin.Woffice support told me it has to do with your plugin and will not help. Has this question ever came up before or should I look elsewhere for assistance. Sorry if I broke the rules, first time here. Please any assistance is greatly appreciated.
That’s really bad customer service.
The layout is messed by theme’s css. If you can link me to your
site(you may use private reply below), I can look and assist you with custom css.Regards
Brajesh- Brajesh Singh on June 22, 2021 at 8:31 am in reply to: [Resolved] BuddyPress Friends Suggestions Pro #39218
Hi Julia,
Thank you for confirming that it works.Yes, the colours for button/link etc are inherited from theme. Please use custom css to override them.
Regards
Brajesh - Brajesh Singh on June 22, 2021 at 8:30 am in reply to: [Resolved] Add roles to users on new registration and first login #39217
Hi Tosin,
What is active_member? Have you created a new role using some plugin? - Brajesh Singh on June 22, 2021 at 8:29 am in reply to: [Resolved] ‘BuddyBlog Pro’ changes posts URLs after activating in BB Theme / BB Platform #39216
Hi Thorstein,
Thank you for the question.Please visit Dashboard->BuddyBlog->Settings-> Tab for your post type(e.g Post) and scroll to the bottom.
You will see a Miscellaneous section and couple of options. Please make sure to tick the “Make single post viewable on profile?” option as “No”
Here is a screenshot showing the same.
https://i.imgur.com/DYuSxxS.png
BuddyBlog Pro will avoid filtering the post url then.
Regards
Brajesh - Brajesh Singh on June 21, 2021 at 11:23 pm in reply to: [Resolved] Add roles to users on new registration and first login #39211
HiTosin,
you code is good except this lineget_user_by('id', $user_id)->set_role('active member');I do not think role ids can have space. If you are using a plugin to create the role, Please use the role id and not the label. For example, “subscriber” is the role while “Subscriber” is the role label.
Here is an example containing your code(modified).
/** * Change user role on first login */ function buddydev_change_user_role_on_first_login( $user_login, $user ) { if ( ! function_exists( 'buddypress' ) || user_can( $user->ID, 'manage_options' ) ) { return; } // check for user's last activity. $last_activity = bp_get_user_last_activity( $user->ID ); if ( empty( $last_activity ) ) { $role = 'subscriber'; // please change with your desired role. $user->set_role( $role ); } } add_action( 'wp_login', 'buddydev_change_user_role_on_first_login', - 1, 2 );Regards
Brajesh - Brajesh Singh on June 19, 2021 at 10:23 pm in reply to: Buddy Circle add icon not displaying in member list #39200
Hi Troy,
Please upgrade to 1.1.7. It supports the button in BuddyBoss theme’s members directory.Regards
Brajesh - Brajesh Singh on June 19, 2021 at 3:14 pm in reply to: [Resolved] BuddyPress Profile Visibility Manager #39197
Hi,
I hope you have it solved now.
Marking it resolved due to lack of replies.Regards
Brajesh - Brajesh Singh on June 19, 2021 at 3:13 pm in reply to: [Resolved] Add roles to users on new registration and first login #39196
Hi Tosin,
1. You can set default role from Dashboard->settings->General screen and then updating the “New User Default Role” option.
2. You do have the code for first login action, you can do a get_user_by(‘id’, $user_id)->set_role(‘Your custom role id’) to set this new role.
e.g get_user_by(‘id’, $user_id)->set_role(‘subscriber’)
Hope that helps.
Regards
Brajesh