-
Henry Wright replied to the topic new plugin: BP Messages Tool in the forum Creating & Extending 9 years, 1 month ago
Thanks for this, super useful! +1
-
Henry Wright replied to the topic How to trigger hooks on member profile update? in the forum Creating & Extending 9 years, 1 month ago
Great to see you figured this out. You probably want to let the function return naturally without using
die("END");
? -
Henry Wright started the topic New plugin: Crowdmentions in the forum Showcase 9 years, 1 month ago
Use a single command to mention a group of members on your BuddyPress site.
Usage:
The @group command can be used within a group to mention all of that group’s members
The @mod command can be used within a group to mention that group’s moderators
The @friends command can be used anywhere. If used within a group, friends who are not members…[Read more] -
Henry Wright replied to the topic new blog post in site wide activity stream but not in personal activity stream in the forum How-to & Troubleshooting 9 years, 1 month ago
Great to see you got it working!
-
Henry Wright replied to the topic new blog post in site wide activity stream but not in personal activity stream in the forum How-to & Troubleshooting 9 years, 1 month ago
Have a read of the Playing with the user’s ID in different contexts article. It should give you an idea how to get the user’s ID in many of the different situations you’ll come across when using BP.
Take for example the logged in user, you can use
bp_loggedin_user_id()
to get their ID. -
Henry Wright replied to the topic new blog post in site wide activity stream but not in personal activity stream in the forum How-to & Troubleshooting 9 years, 1 month ago
I don’t think you can do
global $user_id;
. So when adding your activity,$user_id
isn’t what you expect it to be. -
Henry Wright replied to the topic Is Buddypress' "Username" field mandatory? in the forum How-to & Troubleshooting 9 years, 1 month ago
I’m not sure why you have 2? There’s only supposed to be 1. Do you have a screenshot or a link you can post?
-
Henry Wright replied to the topic Activity stream font size in the forum Installing BuddyPress 9 years, 1 month ago
You can do this through your theme’s style.css file but the solution will depend on which theme you’re using.
#activity {
font-size: 110%;
}Note it’s the
#activity
bit that will depend on your theme so that might need changing. -
Henry Wright replied to the topic Is Buddypress' "Username" field mandatory? in the forum How-to & Troubleshooting 9 years, 1 month ago
The BuddyPress username field is mandatory. There’s no way to remove it without breaking functionality.
-
Henry Wright replied to the topic groups_notification_new_membership_request_subject customization in the forum How-to & Troubleshooting 9 years, 1 month ago
@paragbhagwat You could always submit a request on Trac to ask that the extra argument(s) you need be passed.
Ref: https://buddypress.trac.wordpress.org/
The username and password you use here in the forums will work there too.
-
Henry Wright replied to the topic groups_notification_new_membership_request_subject customization in the forum How-to & Troubleshooting 9 years, 1 month ago
That’s because you have to build the message back up. You can do that because all of the variables you might need are passed to your custom function.
-
Henry Wright replied to the topic groups_notification_new_membership_request_subject customization in the forum How-to & Troubleshooting 9 years, 1 month ago
Try something like this:
function paragbhagwat_message_filter( $message, $group, $requesting_user_name, $profile_link, $group_requests, $settings_link ) {
// Do something with $message here.
return $message;
}
add_filter( 'groups_notification_new_membership_request_message', 'paragbhagwat_message_filter', 10, 6 ) -
Henry Wright replied to the topic How can I contribute? in the forum Ideas 9 years, 1 month ago
Hey @venutius
It’s great to see you’re interested in contributing. Check out the Participate and Contribute article for the various ways you can help out with the project.
Hope this helps!
-
Henry Wright replied to the topic What could stop post comments from displaying? in the forum How-to & Troubleshooting 9 years, 1 month ago
Looking at the Activity Loop article, there’s 3 steps to this:
1. Pass display_comments to your loop:
if ( bp_has_activities( bp_ajax_querystring( 'activity' ) . '&display_comments=stream' ) ) :
2. Wrap your HTML in an
activity
class (This is an optional step if you want AJAX to work).3. Add the code (see article) inside your loop, below
activ…
[Read more] -
Henry Wright replied to the topic What could stop post comments from displaying? in the forum How-to & Troubleshooting 9 years, 1 month ago
If you go to Settings > BuddyPress and then select the Settings tab at the top, you should see Blog & Forum Comments under the Activity Settings section on that page. Ensure that checkbox is checked.
-
Henry Wright replied to the topic Displaying group members roles in member list in the forum How-to & Troubleshooting 9 years, 1 month ago
This will work, I’ve used the right hook this time, and tested myself to make sure it’s working:
function venutius_display_member_role() {
global $members_template;
// This is a confirmed group member.
if ( $members_template->member->is_confirmed )
echo '<p>Member</p>';// This is a group moderator.
if (…[Read more] -
Henry Wright replied to the topic Can I @everyone when I message? in the forum How-to & Troubleshooting 9 years, 1 month ago
Yes I get that, I guess we could think of an alternative, like @groupadmin?
Yep, something like that’d work!
-
Henry Wright replied to the topic Displaying group members roles in member list in the forum How-to & Troubleshooting 9 years, 1 month ago
I added it to the Members.php file but it seems to have no effect.
This should actually go in your theme’s functions.php file.
-
Henry Wright replied to the topic Can I @everyone when I message? in the forum How-to & Troubleshooting 9 years, 1 month ago
would it be possible to have a shout to both admins and mods?
I thought about that but there’s a slight problem using @admin or @administrator as a command. Most BuddyPress websites use these usernames as their main user account. To avoid notifying the main site admin, we need to think of a different command to use for this group.
-
Henry Wright replied to the topic Displaying group members roles in member list in the forum How-to & Troubleshooting 9 years, 1 month ago
I haven’t tried this but you could try doing something like this:
function venutius_display_member_role() {
global $members_template;
// This is a confirmed group member.
if ( $members_template->member->is_confirmed )
echo '<p>Member</p>';// This is a group moderator.
if ( $members_template->member->is_mod )…[Read more] - Load More
@henrywright
Active 8 months, 1 week ago