Replies
- Brajesh Singh on July 29, 2016 at 12:29 pm in reply to: [Resolved] BP Custom Background For Users Profile plugin #4821
Hi Andrew,
Thank you.We will need to modify the css which is easy. I need the selector for the above section. Can you please point me to the correct css selector or link me to a user profile(I can take the css selector from there).
I will post the code then.
Thank you
Brajesh Hi Simon,
Please wait for it. He is about to complete it and It should be available by late today or latest tomorrow.For the time being, Please put this code in your bp-custom.php to enable multi rating.
function buddydev_custom_use_multi_rating() { if ( function_exists( 'mr_filter_the_content' ) ) { echo mr_filter_the_content(''); } } add_action( 'mpp_after_single_media_content', 'buddydev_custom_use_multi_rating' );And in the multi rating setting, Please enable it for media. Now, You can visit single media page and rate.
Hope that helps.
- Brajesh Singh on July 29, 2016 at 5:22 am in reply to: Pictures posted in Activity to automatically Upload to Group Gallery #4816
Hi Todd,
Thank you for the reply.I am a little bit confused now. I will explain how the MediaPress Works.
1. MediaPress organizes Media(photo, video etc) to Galleries( consider it like folder)
2. When you upload something from activity, It goes to wall Gallery. It can either go to your profile wall gallery or group wall gallery depending on the activity is a normal update or group update.3. Yes, They are automatically crated. Please make sure you have your settings updated by visiting Dashboard->MediaPress->Settings
4. I am not sure what do you mean y gallery within a group page, can you please help me understand that?
Thank you
Brajesh - Brajesh Singh on July 29, 2016 at 5:17 am in reply to: [Resolved] BuddyPress Auto Activate Auto Login plugin download issue #4815
Hi,
Thank you for the post.
Please check your purchase again. You license expired on April 30th and that’s why you haven’t been able to download. I have sent a copy by the mail for now.To avoid any issue in future, Please make sure to upgrade your license whenever you feel comfortable.
Thank you
Brajesh - Brajesh Singh on July 29, 2016 at 12:27 am in reply to: Uploader doesn't show for every logged-in user #4812
Hi Tony,
Hope you are doing well.
I have updated the MediaPress plugin and have made the use of shortcode better.Now, There is no need for pre existing gallery or gallery selection. We can hint MediaPress to use specific galleries when user tries to upload via shortcode. It have become much better now.
Can you please tell me if we should add the uploaded media to user wall gallery on upload or do you plan to have sitewide galleries?
Thank you
Brajesh - 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, 5 months ago by
Brajesh Singh. Reason: updated code with the missing table name
- This reply was modified 9 years, 5 months ago by