-
GyziieDK replied to the topic Exclude Site Role From Member Directory in the forum How-to & Troubleshooting 1 month, 1 week ago
Figured it out (I’m stupid lol).
I can confirm that the snippet from Brajesh Singh still works. Just make sure to place it into your bp-custom.php (/wp-content/plugins/bp-custom.php). Turns out my role wasn’t called “Basic” (as shown/named within the backend). Since I use Paid Membership Pro it used pmpro_role_1 set by PMP.
Remember to change…[Read more]
-
Mohammad Imran replied to the topic Display portion of user bio in membership directory in the forum How-to & Troubleshooting 6 months ago
@stephunique with the help of this code snippet, you can display the user bio on member directory.
/**
* User Bio on member directory.
*
* @return void
*/
function display_user_bio_on_member_directory() {
if ( ! bp_is_members_directory() ) {
return;
}
global $members_template;
$member_id = $members_template->member->id;
$bio =…[Read more] -
Varun Dubey replied to the topic Help with labels in the forum How-to & Troubleshooting 10 months, 2 weeks ago
You can use the WordPress gettext filter.
This filter allows you to intercept and modify text before it’s displayed on the page. Here’s an example of how you can use it to change a specific string in BuddyPress:
/**
[Read more]
* Translates specific strings in BuddyPress to new values.
* This function hooks into the 'gettext' filter provided by… -
Mauro replied to the topic Member Loop only MemberPress members in the forum How-to & Troubleshooting 3 years, 5 months ago
I’ve been testing this and found out that the code as is done in my previous post will break the members search feature from 3rd party plugins. So I modified this to use the “exclude” argument instead of the “include”.
Since doing this is going to be a heavy call on the server, I’ve decided to store my exclusion list in the DB as an option. I’m…[Read more]
-
Mauro replied to the topic Member Loop only MemberPress members in the forum How-to & Troubleshooting 3 years, 5 months ago
Please note the above solution won’t work if you have a custom table prefix (i.e. different than “wp_”).
I’ve put together this function using the bp_after_has_members_parse_args filter. Posting it here in case anyone needs it. So far it looks like it works fine./**
[Read more]
* Only list active MemberPress members in the members directory.
* sources:
*… -
Joshua Blevins replied to the topic Question about bp_activity_action in the forum Creating & Extending 9 years ago
I did look at that function as well.
/**
[Read more]
* Return the activity content.
*
* @since 1.0.0
* @deprecated 1.5.0
*
* @todo properly deprecate this function.
*
* @uses bp_get_activity_action()
* @uses bp_get_activity_content_body()
* @uses apply_filters() To call the 'bp_get_activity_content' hook.
*
* @return string The… -
https://www.rebelmouse.com/NetworkheadsoftheArabLiberatio/ replied to the topic in the forum return 10 years, 8 months ago
<?php
/**
* WordPress User Page
*
* Handles authentication, registering, resetting passwords, forgot password,
* and other user handling.
*
* @package WordPress
*//** Make sure that the WordPress bootstrap has run before continuing. */
require( dirname(__FILE__) . ‘/wp-load.php’ );// Redirect to https login if forced to use SSL
if (…[Read more] -
yaakhi replied to the topic Redirecting Logged in users to activity.. in the forum Third Party Plugins 11 years, 6 months ago
Sorrry but could not find the line you mentioned 🙁 here is the whole bp_profile_as_homepage_fork.php file `<?php
/*
Plugin Name: BP Profile as Homepage Fork
Description: Sets the user BP Profile as homepage on the site for logged in users. This emulates Facebook.
Author: Mort3n
Version: 1.0
License: GPL2
*//* Copyright 2013 Mort3n
This…[Read more]
-
meg@info replied to the topic [Resolved] This script blocks oEmbed in the forum Miscellaneous 11 years, 8 months ago
Hi,
Add this code yo your functions.php, i was add filter to embed_maybe_make_link wp function.
It work!! but mybe there is more good solution for auto-embeding image in bp (personaly, i was search since for long time for solution, but i dont find it :p).
/**
[Read more]
* Check if url is image
* <a href='https://buddypress.org/community/members/param/'… -
danbpfr replied to the topic Creating large group of new users – need to turn off email notifications for all of them in the forum How-to & Troubleshooting 12 years, 4 months ago
Hi,
try this in bp-custom.php
remove_filter( 'wpmu_signup_blog_notification', 'bp_core_activation_signup_blog_notification', 1, 7 );
source infos buddypress /bp-core/bp-core-filters.php
The concerned filter do this
/***
* bp_core_filter_blog_welcome_email()
*
* Replace the generated password in the welcome email.
* This will not filter when the…[Read more] -
Brajesh Singh replied to the topic Display age on profile page in the forum How-to & Troubleshooting 13 years, 2 months ago
@kirkslater,
Since you asked it in another thread, here is what you needPut this function in your functions.php or bp-custom.php
[Read more]
/**
* Get Age from BuddyPress date of Birth
* <a href='https://buddypress.org/community/members/param/' rel='nofollow'>@param</a> string $dob_field_name :name of the DOB field in xprofile, like Dob or Date of Birth
*…
@return
Not recently active