-
GyziieDK replied to the topic Exclude Site Role From Member Directory in the forum How-to & Troubleshooting 1 month, 2 weeks 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]
-
Varun Dubey replied to the topic Help with labels in the forum How-to & Troubleshooting 10 months, 3 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:
*… -
Slava Abakumov replied to the topic Email all users of updated Forums in the forum Creating & Extending 7 years, 10 months ago
Yes, you can use a hook in a function
bp_activity_add()
called the same./**
* Fires at the end of the execution of adding a new activity item, before returning the new activity item ID.
*
* @since 1.1.0
*
* @param array $r Array of parsed arguments for the activity item being added.
*/
do_action( 'bp_activity_add', $r );
So you should…[Read more]
-
Joshua Blevins started the topic Question about bp_activity_action in the forum Creating & Extending 9 years ago
Right now I am trying to make my own custom entry.php for my activity loops. When looking at the bp-default one to get a good idea of what one should look like i ran into the following code.
<?php bp_activity_action(); ?>
Now I found this function in bp-activity-template.php in the github project, but that was not too helpful either. The file…[Read more]
-
Henry Wright replied to the topic urgent !!!! need a hook which is called during click og comment button urgent! in the forum How-to & Troubleshooting 9 years, 3 months ago
do we have to passed argument along with that hook…
It isn’t mandatory but you can if you want to.
$comment_id
,$r
and$activity
can be passed to your custom function.Ref:
[Read more]
@param int $comment_id ID of the newly posted activity comment.
@param array $r Array of parsed comment arguments.
@param int $activity ID of the activity i… -
Marc started the topic Bug in bp_notifications_get_notifications_for_user hook or misunderstood in the forum Installing BuddyPress 9 years, 4 months ago
Hi everyone,
I’am currently try to add custom notification from a non BuddyPress component. I’m using this hooks:
bp_notifications_get_registered_components
bp_notifications_get_notifications_for_user
and this function:
bp_notifications_add_notification
Everything works well except the hook
bp_notifications_get_notifications_for_user
. My problem…[Read more] -
https://www.rebelmouse.com/NetworkheadsoftheArabLiberatio/ replied to the topic in the forum param 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/'… -
Brajesh Singh replied to the topic Link to a private message in the forum How-to & Troubleshooting 11 years, 10 months ago
-
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 forum topic Display age on profile page in the group How-To and 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
`
/**
* Get Age from BuddyPress date of Birth
* @param string […] -
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
*… -
Svenl77 posted on the forum topic BuddyPress-Links 0.4.x Releases and Support in the group Third Party Components & Plugins: 14 years, 8 months ago
The plugin is not 100% update friendly, if I disable buddypress the site crashes. Fatal error: Call to undefined function bp_core_load_template() in /data/wwwcust/sv3-132/html/wp-content/plugins/buddypress-links/bp-links-core.php on line 277 I fixed this bug for my version with if ( defined( ‘BP_VERSION’ ) ) ` /** * Use this only inside of screen…[Read more]
@param
Not recently active