-
Henry Wright replied to the topic Accessing BP_Groups_Member::get_group_ids in Theme Function in the forum Creating & Extending 6 years, 10 months ago
You need to hook to something like
wp
. Try adding this in your functions.php file:add_action( 'wp', function() {
// Add your code here
} ); -
Henry Wright replied to the topic Accessing BP_Groups_Member::get_group_ids in Theme Function in the forum Creating & Extending 6 years, 10 months ago
You’re using the class method properly. This should output an array containing an array of groups and a count.
$group_ids = BP_Groups_Member::get_group_ids( $user_id );
var_dump( $group_ids );Make sure the
$user_id
argument you are passing to the class method is valid. It should be an integer but I don’t think type is enforced in this case so…[Read more] -
Henry Wright replied to the topic Adding time and date to messages in the forum How-to & Troubleshooting 6 years, 10 months ago
If your question relates to your bbPress forum then try asking at bbPress. Alternatively see here for information on the
bp_activity_add()
function: -
Henry Wright replied to the topic BuddyPress is not generating pages for it's components in the forum How-to & Troubleshooting 6 years, 10 months ago
Try creating the pages manually by going to the WordPress admin area. You should then be able to associate each of the pages you have created with your BuddyPress components.
-
Henry Wright replied to the topic Blog 'Page Not Found' in the forum How-to & Troubleshooting 6 years, 10 months ago
members/username/ is generated by BuddyPress and author/username/ is generated by WordPress. You don’t have to merge them, they can live peacefully together without problems.
-
Henry Wright replied to the topic Activity Streams Problem in the forum How-to & Troubleshooting 6 years, 10 months ago
TinyMCE has justify, underline and text size buttons. You would need to integrate it with the activity post form. See these resources for more info:
-
Henry Wright replied to the topic usernames only in the forum How-to & Troubleshooting 6 years, 10 months ago
wordpress.org uses Subversion for version control and GitHub uses Git. Some developers just prefer to develop using Git and then post releases to wordpress.org
-
Henry Wright replied to the topic usernames only in the forum How-to & Troubleshooting 6 years, 10 months ago
The plugin hasn’t been abandoned. It’s still maintained by @r-a-y. See https://github.com/r-a-y/buddypress-usernames-only
-
Henry Wright replied to the topic messages_new_message sends double the threads when running more than 12 times in in the forum How-to & Troubleshooting 6 years, 10 months ago
messages_new_message()
accepts an array argument. “recipients” can be an array of user IDs. Try this:$args = array(
'sender_id' => bp_loggedin_user_id(),
'recipients' => array( 76, 77, 81, 82, 118, 120, 122, 123, 124, 131, 132, 133 ),
'subject' => 'Test subject',
'content' => 'Test content'
);
messages_new_message( $args… -
Henry Wright replied to the topic Specific posts (post format) for listings in the forum Creating & Extending 6 years, 10 months ago
Post Formats is a WordPress theme feature. See https://codex.wordpress.org/Post_Formats. Try asking your question at https://wordpress.org/support/
-
Henry Wright replied to the topic Activation email not sent in the forum Installing BuddyPress 6 years, 10 months ago
Check with the users that the email isn’t in the junk folder. This often happens so I usually recommend checking that first.
-
Henry Wright replied to the topic Reactions on new post and comments in the forum Third Party Plugins 6 years, 10 months ago
I tried BP Reactions after activating it, it does not show up
You could try opening an issue on the plugin’s forum: https://wordpress.org/support/plugin/bp-reactions
-
Henry Wright replied to the topic Styling in (BuddyPress) Members widget in the forum How-to & Troubleshooting 6 years, 10 months ago
#05a9c5
is your theme’s link colour. For some reason, your theme is setting widget links to the colour#777
. As @leog371 mentioned above, you can override that behaviour by adding this to your child theme’s style.css document:.widget ul li a {
color: #05a9c5;
} -
Henry Wright replied to the topic Jamroom To BuddyPress in the forum Requests & Feedback 6 years, 10 months ago
I’m not aware of a migration tool. My guess is you will have to build something custom.
-
Henry Wright replied to the topic open links in target _blank in groups in the forum Installing BuddyPress 6 years, 10 months ago
Can you show an example link?
-
Henry Wright replied to the topic Test in the forum Miscellaneous 6 years, 10 months ago
Please don’t post test messages @joshstephenseditor.
Many thanks
-
Henry Wright replied to the topic Function create_function() is deprecated in the forum Requests & Feedback 6 years, 11 months ago
The latest version of BuddyPress doesn’t use
create_function()
. Try upgrading to version 2.9.2. -
Henry Wright replied to the topic Display some user data on a single page in the forum Creating & Extending 6 years, 11 months ago
If I were to use each individual user’s ID, then every time there is a new member, I have to write a new line?
You won’t have to write a new line when a member is added. My code should be used within a loop so you’ll perform the action on every member in the collection. Adding to or removing from the collection isn’t a problem. The collection i…[Read more]
-
Henry Wright replied to the topic Display some user data on a single page in the forum Creating & Extending 6 years, 11 months ago
If you have the user’s ID then you can pass it to the
get_userdata()
WordPress function like this:$user_id = 1;
$user = get_userdata( $user_id );Then you can use the
$user
object like this:echo sanitize_email( $user->user_email );
Note, how you get the user’s ID will depend on the context.…[Read more]
-
Henry Wright replied to the topic Buddypress registration form and profile fields in the forum Creating & Extending 6 years, 11 months ago
If I understand properly, you need conditional profile fields. Try BuddyDev’s Conditional Profile Fields for BuddyPress.
- Load More
@henrywright
Active 8 months, 1 week ago