Shape the future of Social networking with WordPress: Join Project Midnight Sun! The next generation platform for community building with WordPress!

BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25454
    Brajesh Singh on in reply to: [Resolved] bp-ajax-registration not working #4652

    Hi Jerry,
    My apologies.
    You have added the css correctly.

    Can you please point me to the site? Just need to check if it is a javascript conflict?

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25454

    Hi Leigh,

    Thank you. That is a css issue on the site. Your theme use different selectors. Please put this in your bp-custom.php

    
    add_filter( 'bppg_iwilldo_it_myself', '__return_true' );//do not generate css for us
    
    //Our own css
    function buddydev_custom_inject_css() {
    	if ( ! function_exists( 'bppg_get_image' ) ) {
    		return ;// no trouble when the plugin is disabled
    	}
    	
    	$image_url = bppg_get_image();
    	
    	if ( empty( $image_url ) ) {
    		return;
    	}
    	
    	$repeat_type = bp_get_user_meta( bp_displayed_user_id(), 'profile_bg_repeat', true );
    	
    	if ( ! $repeat_type ) {
    		$repeat_type = 'repeat';
    	}
    ?>
    	<style type="text/css">
    	body.is-user-profile .site{
    	    background: url(<?php echo $image_url; ?>);
    		background-repeat: <?php echo $repeat_type; ?>;
    	}
    	</style>  
    	<?php
    }
    add_action( 'wp_head', 'buddydev_custom_inject_css', 200 );
    
    

    That will make it work.

    Also, Please never share sensitive information in another user’s topic. It is fine if you are the topic owner/creator . All topic owner may see the data. Please change the credentials.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25454
    Brajesh Singh on in reply to: MediaPress Storage Limit #4644

    Hi Carleton,

    1.For Image, It is possible to show that info with little code but that will not make any sense. MediaPress creates 3 copies(thumb, mid, large) and keeps the original image as well. So displaying the stat for the displayed image will not make much sense without adding the details for all of these three. If we do add these three, It will confuse the user.

    So, what do you suggest will be good idea?

  • Keymaster
    (BuddyDev Team)
    Posts: 25454
    Brajesh Singh on in reply to: MediaPress Storage Limit #4641

    Hi Carleton,
    Yes, you can enable that from MediaPress->settings->General and checking

    
    Show upload Quota?
    

    to yes.

    Does that work for you or not?

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25454
    Brajesh Singh on in reply to: [Resolved] How to Identify a Group Post #4638

    Thank you for the kind words 🙂

  • Keymaster
    (BuddyDev Team)
    Posts: 25454
    Brajesh Singh on in reply to: [Resolved] How to Identify a Group Post #4636

    Hi Lee,
    for @mention, There is no direct way to identify. It is possible to do a search on the activity_content using

    
    bp_activity_find_mentions( $content)
    

    This function will return an array of mentioned user names or false if none found.

    Hope you can take from there.

    PS: Doing an search for mention on all activity will not be very efficient, I will recommed another approach(Like when the activity is created, check for mention and store a meta, then use this meta later).

    Hope that helps.

  • Keymaster
    (BuddyDev Team)
    Posts: 25454
    Brajesh Singh on in reply to: [Resolved] How to Identify a Group Post #4635

    Thank you Lee. It is a pleasure to help 🙂

  • Keymaster
    (BuddyDev Team)
    Posts: 25454
    Brajesh Singh on in reply to: [Resolved] How to Identify a Group Post #4632

    Hi Lee,
    Thank you for posting.
    We can write a function like below to do check for ourself.

    
    function lee_is_group_activity( $activity = null ) {
    	
    	global $activities_template;
    	
    	if ( ! $activity ) {
    		$activity  = $activities_template->activity;
    	}
    	
    	if ( $activity && $activity->component == 'groups' && $activity->type == 'activity_update' ) {
    		return true;
    	}
    	
    	return false;
    }
    
    

    Hope that helps.

  • Keymaster
    (BuddyDev Team)
    Posts: 25454

    Hi Leigh,
    My apologies for missing your email.

    Can you please check 1.0.7 and let me know if it works for you or not? Since BuddyPress added header image support, I thought people will not need this plugin. Since I have got a few more messages related to this plugin, I will be supporting it in future

    https://buddydev.com/plugins/bp-custom-background-for-user-profile/

    Please let me know if it works for you or not? Also, If not, what are the problems you are facing?

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25454

    Thank you.

    Will multi select/multiple checkbox work for you? Still, we can’t have multiple fields(using any existing solution as member types can be either set or appended and the plugin will not know whatto do, may override the other fields data).

    If multiple select does not work, I can suggest some other strategy.