BuddyDev

Search

[Resolved] BP Custom Background for User Profile – not working when site has background set

  • Participant
    Level: Master
    Posts: 413
    Venutius on #1374

    Hi Rajesh,

    I’ve discovered an issue with the Custom backgrounds plugins, I think it affects both the profile and groups plugins.

    With 2015 theme, if you set a background image for the site, then these plugins stop working.

  • Participant
    Level: Master
    Posts: 413
    Venutius on #1375

    Yep just tested Group Customizer Lite and it has the same problem.

  • Keymaster
    (BuddyDev Team)
    Posts: 24593
    Brajesh Singh on #1381

    Hi George,
    Thank you. I did stop further development of these plugins as almost same feature is coming as part of BuddyPress 2.4( and their uploading experience is much better ) .

    If you need a temporary fix for it, I can provide it or if you think we should move in other direction ( As per your other thread about the same). I will be happy with that too.

    Please let me know and I will be happy to help.

    Thank you
    Brajesh

  • Participant
    Level: Master
    Posts: 413
    Venutius on #1387

    I did not realise that BP 2.4 is going to have that feature, I’m aware of the cover image aspect but thats not the same as far as I can see.

    LEt me have a play with it and get back to you.

  • Participant
    Level: Initiated
    Posts: 17
    Leigh on #4629

    Hi Rajesh,

    I too have this problem. I contacted you last week but have not as yet had a reply. As of BP 2.5 this feature is not included ( as far as I can tell). The organizations I am wanting to attract to my site want to be able to portray their brand so it is important for me to have this feature. I think it is a great asset for general users as well.

    To have both BuddyPress Group Customizer Lite plugin and BP Custom Background for User Profile working would be wonderful. Its a shame to have these plugins available but not working. Happy to pay to have you get it working for me.

    Cheers

  • Keymaster
    (BuddyDev Team)
    Posts: 24593
    Brajesh Singh on #4631

    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

  • Participant
    Level: Initiated
    Posts: 17
    Leigh on #4645
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 24593
    Brajesh Singh on #4646

    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

  • Participant
    Level: Initiated
    Posts: 17
    Leigh on #4666

    Hi Brajesh. Can’t see your last replay. It’s marked as private. Not getting email notifications either?? although that might be a hotmail delay!

    cheers

  • Keymaster
    (BuddyDev Team)
    Posts: 24593
    Brajesh Singh on #4667

    Hi Leigh,
    Have marked my reply public. I saw your previous reply private, so had marked it as private.

    PS: We have some issues related to the notification of private replies here.

    Please check the code and let me know if it works for you or not?

    Thank you
    Brajesh

The topic ‘ [Resolved] BP Custom Background for User Profile – not working when site has background set’ is closed to new replies.

This topic is: resolved