-
Abhishek Saini replied to the topic Display Avatar Changes in Activity Feed in the forum How-to & Troubleshooting 1 year, 6 months ago
@Kokiri
Please change this function name “custom_bp_avatar_activity” and keep it unique and please remember this also that this will create a new activity So, you will get two activity for single profile uploads.
// Add action to show new avatar in activity stream[Read more]
function bp_generate_custom_avatar_activity($user_id, $args) {
// Get the user… -
Nick's profile was updated 1 year, 6 months ago
-
Cacuoctructuyenvn's profile was updated 1 year, 6 months ago
-
Debtrecoveryindonesia's profile was updated 1 year, 6 months ago
-
Ưu điểm của tủ bếp gỗ óc chó là gì?'s profile was updated 1 year, 6 months ago
-
Rút tiền thẻ tín dụng's profile was updated 1 year, 6 months ago
-
Kokiri replied to the topic Display Avatar Changes in Activity Feed in the forum How-to & Troubleshooting 1 year, 6 months ago
I wasn’t quick enough to make an edit on the post above ^
However the error says:Snippet automatically deactivated due to an error on line 3:
Cannot redeclare function custom_bp_avatar_activity.
-
Kokiri replied to the topic No way of banning users? in the forum How-to & Troubleshooting 1 year, 6 months ago
Isn’t compatible with the theme I’m using since it’s highly customized and the framework is REACT.
-
Kokiri replied to the topic Display Avatar Changes in Activity Feed in the forum How-to & Troubleshooting 1 year, 6 months ago
Unfortunately that code didn’t work for a code snippet.
-
Upen Singh replied to the topic Activity shortcode on homepage in the forum How-to & Troubleshooting 1 year, 6 months ago
Hi @lanceelliott72
Try this plugin
https://wbcomdesigns.com/downloads/shortcodes-for-buddypress/ -
Varun Dubey replied to the topic Custom Development in the forum Creating & Extending 1 year, 6 months ago
First, ensure that BuddyPress is loaded and initialized before your plugin tries to call its functions. Since BuddyPress hooks its initialization to WordPress
bp_initaction, which typically fires on wp or init at a priority of 10, you should ensure your hook runs after this or directly onbp_initwith a lower priority (higher number).You can…[Read more]
-
5 pięknych sposobów łączenia spódnic maxi: od mody ulicznej po imprezę's profile was updated 1 year, 6 months ago
-
Varun Dubey replied to the topic Custom Development in the forum Creating & Extending 1 year, 6 months ago
Ensure the BuddyPress plugin is active and add custom code in child theme functions.php or a custom plugin or using the code snippet plugin. xprofile_get_field_data is a valid function https://hooks.wbcomdesigns.com/reference/functions/xprofile_get_field_data/
-
flyradar's profile was updated 1 year, 6 months ago
-
linebet's profile was updated 1 year, 6 months ago
-
PlatR's profile was updated 1 year, 6 months ago
-
goodcharlottemerch's profile was updated 1 year, 6 months ago
-
frankieromerch's profile was updated 1 year, 6 months ago
-
FINN Interior Design & Construction's profile was updated 1 year, 6 months ago
-
Abhishek Saini replied to the topic Hide own profile in the forum How-to & Troubleshooting 1 year, 6 months ago
If you want to hide currunt loggedin user from member directory you can easily use this code snippet.
`function buddyx_exclude_users( $args ) {
if ( is_admin() && ! defined( ‘DOING_AJAX’ ) ) {
return $args;
}$excluded = isset( $args[‘exclude’] ) ? $args[‘exclude’] : array();
if ( ! is_array( $excluded ) ) {…[Read more]
- Load More