Replies
- Brajesh Singh on July 11, 2016 at 1:51 pm 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 - Brajesh Singh on July 11, 2016 at 8:16 am in reply to: [Resolved] BP Custom Background for User Profile – not working when site has background set #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 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?
Hi Carleton,
Yes, you can enable that from MediaPress->settings->General and checkingShow upload Quota?to yes.
Does that work for you or not?
Thank you
BrajeshThank you for the kind words 🙂
- Brajesh Singh on July 9, 2016 at 10:49 am 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 usingbp_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.
- Brajesh Singh on July 9, 2016 at 10:42 am in reply to: [Resolved] How to Identify a Group Post #4635
Thank you Lee. It is a pleasure to help 🙂
- Brajesh Singh on July 9, 2016 at 10:05 am 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.
- Brajesh Singh on July 9, 2016 at 9:58 am in reply to: [Resolved] BP Custom Background for User Profile – not working when site has background set #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 - Brajesh Singh on July 8, 2016 at 9:35 am in reply to: [Resolved] Add more than 1 Single Member Type #4627
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.