-
Henry Wright replied to the topic Member Alphabetical Sort in the forum How-to & Troubleshooting 8 years, 12 months ago
The default sort order is ‘active’ members first. To easily change that, you can make use of
bp_after_has_members_parse_args
. For example, try adding this to your theme’s functions.php file:function my_custom_member_list_sort( $ret ) {
[Read more]
$ret['type'] = 'alphabetical';
return $ret;
}
add_filter( 'bp_after_has_members_parse_args',… -
Henry Wright replied to the topic Changing avatar images and profile links in the forum How-to & Troubleshooting 8 years, 12 months ago
Thanks for sharing @jimme595.
bp_core_get_userlink
is useful to know! -
Henry Wright replied to the topic Changing avatar images and profile links in the forum How-to & Troubleshooting 8 years, 12 months ago
Not that I’m aware of. As far as I know you have to filter each type of action individually. The best way to do that is to go through your activity stream and list all of the different types of action. I doubt there will be many, perhaps ~10. Then search the codebase for the static portion of the string to find the right hook.
Anyone else here…[Read more]
-
Henry Wright replied to the topic Changing avatar images and profile links in the forum How-to & Troubleshooting 8 years, 12 months ago
Right, I see! Sorry about that.
The X created the group X text (and link around the first X) can be changed via the
groups_activity_created_group_action
filter. -
Henry Wright replied to the topic Changing avatar images and profile links in the forum How-to & Troubleshooting 8 years, 12 months ago
You’ll need to use a different filter hook to change the user profile links. The
bp_core_default_avatar_user
filter is just for changing the imagesrc
attribute. -
Henry Wright replied to the topic Suddenly Unable to Upload Avatars or Cover Images in the forum How-to & Troubleshooting 8 years, 12 months ago
I am new to using W3 Total Cache. Are there any guides out there to setting that up for BuddyPress?
Not that I know of. Is there anything in the W3 Total Cache documentation?
-
Henry Wright replied to the topic Set Users and Profiles to Private in the forum How-to & Troubleshooting 8 years, 12 months ago
@imath just built a plugin which looks pretty great. Try BP Restricted Community.
-
Henry Wright replied to the topic Changing avatar images and profile links in the forum How-to & Troubleshooting 8 years, 12 months ago
You’re not quite using the
bp_core_default_avatar_user
filter properly. The function you hook to it can take 2 parameters, the 2nd of which is$params
.function _bp_core_get_user_domain( $avatar_default, $params ) {
// You get the user ID here with $params['item_id']
}
add_filter( 'bp_core_default_avatar_user', '_bp_core_get_user_domain', 10,… -
Henry Wright replied to the topic Suddenly Unable to Upload Avatars or Cover Images in the forum How-to & Troubleshooting 9 years ago
The key to finding a solution to this is investigate what has changed. If it was once working, then what has been introduced since then? Or, what have you deactivated since then etc.
-
Henry Wright replied to the topic Having a spring clean – most efficient way to clean up the activity stream? in the forum How-to & Troubleshooting 9 years ago
If I deleted notifications, would people lose the ability to accept friend requests?
If you deleted friend request notifications, members would still be able to accept those friendship requests, they’d just have to go to their friend requests page and click accept or reject as usual.
-
Henry Wright replied to the topic Having a spring clean – most efficient way to clean up the activity stream? in the forum How-to & Troubleshooting 9 years ago
Is there a table in the DB that deals specifically with notifications?
Yes. That’d be
bp_notifications
If so, I guess I could just empty it before I emptied the stream and stream meta tables.
Shout up if anyone thinks that could be a problem.
Instead of deleting directly from the database, you should use these…[Read more]
-
Henry Wright replied to the topic Changing avatar images and profile links in the forum How-to & Troubleshooting 9 years ago
bp_core_default_avatar_user
will fire only if you have disabled Gravatar via thebp_core_fetch_avatar_no_grav
hook. -
Henry Wright replied to the topic Having a spring clean – most efficient way to clean up the activity stream? in the forum How-to & Troubleshooting 9 years ago
So is the general consensus that you never purge the stream?
Personally I wouldn’t, because members might ask where their old status updates have gone if they ever decide to look back over them. But that’s just my opinion rather than a consensus. Whether it’s a good idea will depend on many things:
Are old items out of date (contain lots of…[Read more]
-
Henry Wright replied to the topic Dynamically Display HTML depending on User in the forum Creating & Extending 9 years ago
Yes, that sounds right. Getting the user ID is slightly different in BuddyPress depending on the context. See the Playing with the user’s ID in different contexts article for details.
-
Henry Wright replied to the topic Having a spring clean – most efficient way to clean up the activity stream? in the forum How-to & Troubleshooting 9 years ago
Just to add, if you are looking for something to delete, old notifications might be a good place to start. The usual way (in BuddyPress) is to keep all of these, but many places around the web nuke them after they’re ~7 days old.
-
Henry Wright replied to the topic Having a spring clean – most efficient way to clean up the activity stream? in the forum How-to & Troubleshooting 9 years ago
Am I okay to just clear the db table for bp_activity and bp_activity_meta
I wouldn’t do this because if anyone has notifications which point to the items you delete, then the member will be taken to a broken link.
I’m also guessing stream items DON’T get indexed by Google? I’m not going to create loads of broken results?
There’s nothing in Bu…[Read more]
-
Henry Wright replied to the topic Quoted message in activity stream in the forum How-to & Troubleshooting 9 years ago
This is theme-related. You’ll need to use CSS to change the text size.
-
Henry Wright replied to the topic Dynamically Display HTML depending on User in the forum Creating & Extending 9 years ago
Maybe try
echo c_ws_plugin__s2member_user_access::user_access_level( $user );
to see what that outputs?Note:
$user
should be aWP_User
object. -
Henry Wright replied to the topic Dynamically Display HTML depending on User in the forum Creating & Extending 9 years ago
You need a way of getting the user’s type, then you can do this:
if ( $type === 'employee' ) {
// Show button.
} elseif ( $type === 'employer' ) {
// Hide button.
} -
Henry Wright replied to the topic Vendor registration is currently closed. If you have an existing account, you ma in the forum How-to & Troubleshooting 9 years ago
But where is the text “Vendor registration is currently closed. If you have an existing account, you may login and apply to become a vendor” coming from? I did’t find that anywhere in BuddyPress code when I just ran a search.
- Load More
@henrywright
Active 8 months, 1 week ago