Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 22 replies - 1 through 22 (of 22 total)

  • andrew55
    Participant

    @andrew55

    I’m no expert, but do you have user roles plugin installed? I’ve had this act funny for me before, and I’ve had to reset to get permissions working right again.


    andrew55
    Participant

    @andrew55

    I don’t think there was a BuddyPress update. Did you update any other plugins or themes recently? If so, I would try disabling these plugins and seeing if the issue still persists.


    andrew55
    Participant

    @andrew55

    Lazy load will really speeds up a site, so it’s important to us. LiteSpeed Cache has image lazy loading which is compatible with the BuddyPress avatar uploading feature:

    https://wordpress.org/support/topic/lazy-load-breaking-buddypress-upload-avatar-feature/

    Thought that might help anyone who runs into this issue!

    One solution I’ve found which works for BuddyPress and


    andrew55
    Participant

    @andrew55

    That’s good to know. Thank you very much.


    andrew55
    Participant

    @andrew55

    Well, that’s great news!

    Do you suggest to download the recent version from Githb, and if so, do I just click the “Clone or Download” button, and select the zip option?

    Also, just curious why author might keep updated version on Github, and not on WordPress.org?

    I’m asking because I’m wondering if there are other plugins on Github I need to explore!

    Thank you for the replies and the clarification.


    andrew55
    Participant

    @andrew55

    Robin W over at bbPress was kind enough to provide this filter for functions.php:

    add_filter( 'bbp_get_topic_subscribers', 'rew_filter_subscrbers' );
    add_filter( 'bbp_get_forum_subscribers', 'rew_filter_subscrbers' );
    
    function rew_filter_subscribers ($users) {
    	$role = 'my_custom_role' ;
    	$filtered_ids = array();
    	foreach ( (array) $users as $user_id ) {
    		$user_info = get_userdata($user_id);
    		$user_roles = $user_info->roles ;
    		if (!in_array ($role, $user_roles)) {
    			array_push($filtered_IDs, $user_id);
    		}
    	
    	}
    return $filtered_ids ;
    }

    Used with a custom role, it works great at preventing emails from going out from bbPress.

    Of course, BuddyPress sends out several emails (friend request, private messages, etc).

    Any ideas on how I can modify the filter above to prevent sending of BuddyPress emails to user if they have a custom role enabled? Even a place to go where I might find some ideas to work with?

    Thanks for any suggestions.


    andrew55
    Participant

    @andrew55

    Thanks for all the great resources.

    Unfortunately, this is way over me head. Writing php from scratch is not a skill I’ve yet developed. I’ll keep messing with it, but if anyone has any suggestions, I’d be appreciative.


    andrew55
    Participant

    @andrew55

    @henrywright – thanks for the reply. I’m new to BuddyPress and not exactly a “master coder.”

    Do you have any suggested resources on where I might find out more about your recommendation? Thanks for any help.


    andrew55
    Participant

    @andrew55

    Actually, this isn’t working right. I prevents any bbPress topic/replies from being posting on activity walls at all (even just the titles). I guess it’s back to the drawing board.

    I’m wondering if this might do it – putting a div class around the topic/reply content in the template files of bbPress, and then only hiding this div in BuddyPress. But then I’m thinking it might result in the same issue – nothing topic/replies show in activity wall at all.

    Any suggestions greatly appreciated.


    andrew55
    Participant

    @andrew55

    I’m still testing, but I think this does it:

    .activity-list li.bbp_topic_create .activity-content .activity-inner, .activity-list li.bbp_reply_create .activity-content .activity-inner {
    	display: none !important;
    }

    It shows bbPress forum titles in BuddyPress activity streams, but not content of the bbPress reply/post. I’m still checking to see if it might cause problems somewhere else, but so far, I don’t see any.

    Hope this helps anyone who might need it.


    andrew55
    Participant

    @andrew55

    Is there a function that can be used to simply hide a div class, just within BuddyPress?

    I think I can easily add an extra div to the content area of all posts in bbPress, and this would allow me to hide the content area of bbPress posts in BuddyPress.

    I’ve been searching for such a funtion, and can’t seem to find anything. Thanks for any help.


    andrew55
    Participant

    @andrew55

    This worked for showing the roles in the group member list:

    https://buddypress.org/support/topic/display-users-role-on-the-members-loop-php-file/


    andrew55
    Participant

    @andrew55

    This works great in member-header.php:

    But when I insert the same code in…

    \buddypress\bp-templates\bp-legacy\buddypress\groups\single\members.php,

    right after…

    <?php bp_group_member_link(); ?>

    …it won’t print the role out when viewing the group member list. Any suggestion on how to accomplish this?

    Thanks for any help.


    andrew55
    Participant

    @andrew55

    Thank you for the help. I’m not too good with mysql scripts, but what about using this tool:

    Database Search and Replace Script in PHP

    It seems like is should work at finding the old urls and replacing them with the new. I guess I could just try it out (with a database backup).


    andrew55
    Participant

    @andrew55

    Thank you very much – this should keep my busy.


    andrew55
    Participant

    @andrew55

    This is great – works perfectly – thank you.

    Are there calls, such as bp_get_loggedin_user_link, but for a link to logged in user’s friends, messages, email preferences, notifications, etc? Is there maybe a list of these calls somewhere?

    Thanks for any clarification.


    andrew55
    Participant

    @andrew55

    Thanks for the clarification, although I’m still a little lost.

    Upon further research, the only BuddyPress actions I really need are:

    1. created activity wall update in profile
    2. created activity wall comment in profile

    I’ve been digging through the myCred plugin files, and have found these:

    1. bp_activity_posted_update
    2. bp_activity_comment_posted

    Just to clarify, these are the action hooks used in BuddyPress for when a user posts an activity update or activity comment? Thanks for any insights.


    andrew55
    Participant

    @andrew55

    Thank you – works perfectly.

    Question: What determines the first role in this scenario?

    Thanks for any clarification.


    andrew55
    Participant

    @andrew55

    Thanks – I’ll dig around and see what I can find out!


    andrew55
    Participant

    @andrew55

    Perfect! Thanks.


    andrew55
    Participant

    @andrew55

    IN the sidebar widget, avatar is displaying as 50px wide/tall. Any method of getting it display at 200px?

    Thanks for any help.


    andrew55
    Participant

    @andrew55

    Thanks – works great.

    Quick question – where would I put a div class such as “custom-avatar” in the code so I can adjust size of avatar?

    I tried wrapping the whole snippet in a div with no success.

Viewing 22 replies - 1 through 22 (of 22 total)
Skip to toolbar