Replies
- Brajesh Singh on July 29, 2016 at 12:21 am in reply to: Pictures posted in Activity to automatically Upload to Group Gallery #4811
Hi,
Just updating. With MediaPress 1.0.6, Any new media posted in activity when group is selected with go to group wall.It will work out of the box now. Please give it a try.
Thank you
Brajesh Hi Christian,
I have pushed an update for MediaPress. Since your site has some custom changes with MediaPress, please do not upgrade for now.I will ask Ravi to get in touch with you and assist you in upgrading. Once the upgrade is complete, you won’t have this issue in future again.
I am not sure how do I help you with the old activities though. And I am sorry but I am not able to assist on NFSW sites.
Thank you
Brajesh- Brajesh Singh on July 29, 2016 at 12:15 am in reply to: Activity Form doesn't attach MediaPress media #4809
Hi Abe,
I have just pushed 1.0.6 and It does have a fix related to activity attachment. Please do give it a try and see if that makes it work for you or not?Thank you
Brajesh Hi Dandy,
thank you for posting. It is a little bit complicated.You need to remove the nav item and then re register. Also, in most of the case, you will have to rewrite the screen handler for the page. I will advise avoiding it unless it is absolute necessary for your site.
If you need only a few tabs, I will be happy to provide specific code.
thank you
BrajeshHi Quincy,
You are welcome.The user meta approach will need me to add a few actions first. Also, I thought about it and since you only need it on the members listing page, The benefits may not outweigh the effor needed for synchronizing. So, Here is a better thing to do. Let us put it in our bp-custom.php
function bd_cache_networks( $bp_user_query ) { $user_ids = $bp_user_query->user_ids;//should be array of ids $networks = array();//multi dimensional array of [user_id] =>[blog_id1, blog_id2] if ( ! empty( $user_ids ) ) { global $wpdb; $table = mnetwork_get_table_name();; $list = '(' . join( ',', $user_ids ) .')'; $user_networks = $wpdb->get_results( "SELECT user_id, network_id FRM {$table} WHERE user_id IN {$list}" ); foreach ( $user_networks as $unetwork ) { if ( !isset( $networks[ $unetwork->user_id ] ) ) { $networks[ $unetwork->user_id ] = array();// } //push the blog to user blogs list $networks[$unetwork->user_id][] = $unetwork->network_id; } } //store the current results //not the best way, but will work fine buddypress()->bdbp_networks_list = $networks; } add_action( 'bp_user_query_populate_extras', 'bd_cache_networks' ) /** * Get an array of blog ids to which this user belongs to * * @return boolean|mixed */ //now in members loop function bd_get_user_blog_ids() { if ( isset( buddypress()->bdbp_networks_list ) ) { return buddypress()->bdbp_networks_list[bp_get_member_user_id()]; } return false; }now, calling bd_get_user_blog_ids() in the member loop will give you all the blog ids of which the user is a member.
Hope that helps.
- This reply was modified 9 years, 10 months ago by
Brajesh Singh. Reason: updated code with the missing table name
- This reply was modified 9 years, 10 months ago by
- Brajesh Singh on July 27, 2016 at 4:09 pm in reply to: [Resolved] BP Custom Background for User Profile – not working when site has background set #4802
Hi leigh,
Not Yet, but I will do today/tomorrow.Thank you
Brajesh - Brajesh Singh on July 27, 2016 at 4:01 pm in reply to: Want to create location based search for members in buddypress #4801
Hi Vineeta,
In that case please think about this:-
1. How do you want to collect user location data?
2. Do you want to store the location as lat/lang pair or as spatial data type. MySQL dos have support for basic gis functionality/spatial data types, so you should create a new table and store user/point combination there. The Point is spatial data type and you will be storing WKT here.3. If you have used the data type point, you may use spatial functions ST_DWithin/ST_Distance to accomplish your task.
https://dev.mysql.com/doc/refman/5.6/en/spatial-relation-functions-object-shapes.htmlIf you are not comfortable with GIS data, you may store the user location as latitude/longitude pair. This tutorial (It is old when mysql had no support for spatial data types), by Google should help
https://developers.google.com/maps/articles/phpsqlsearch_v3
All the best
Brajesh - Brajesh Singh on July 27, 2016 at 3:49 pm in reply to: bp-simple-front-end-post conflict membermouse #4800
Hi Roberto,
I am sorry for the convenience. Thank you for the screenshot that helped me to understand.The problem lies on part oe MemberMouse plugin and not us. We are not doing anything special Just calling
wp_editor( $content, 'bp_simple_post_text', array( 'media_buttons'=> $this->allow_upload, 'quicktags'=> false)) ;Please see this
https://github.com/sbrajesh/bp-simple-front-end-post/blob/master/form.php#L27
The plugin should check if it should be enabled on the front end editor for the given user capability.
Please ask their support and let them know it, They should be able to fix it.
Hope that helps.
Hi Marco,
I am sorry for the trouble.BP Youtube, Flickr are deprecated plugins. Sorry about that. It should be mentioned on those plugin pages.
We will be looking the Community Activity on profile, Lock Unlock activity and Clear notification and will update you.
Now coming to your next questions:-
1. Forum mentions, Yes, It is doabale but will need you to filter on the notification message generation. Please see the function bp_activity_format_notifications for more details and available filters.
2. There are multiple ways to do it. I will suggest filtering
‘bp_after_has_Activities_parse_args’Hope that helps.
Hi Mike,Please wait. Let me see if we can do it without any modification using pure css and some filters. I will update tonight if we can do that or not.
PS: Thank you Ravi for the support here.
Brajesh