Replies
- Brajesh Singh on June 24, 2017 at 11:47 am in reply to: [Resolved] X-Profile Fields in BuddyPress Multi Network #9565
Hi Jason,
Welcome to BuddyDev.Please put this code in your bp-custom.php
/** * Filter profile tables to use main site's tables. * * @param $tables * * @return array */ function buddydev_global_profile_tables( $tables ) { global $wpdb; $prefix = $wpdb->base_prefix; // overwrite names $tables = array( 'table_name_data' => $prefix . 'bp_xprofile_data', 'table_name_groups' => $prefix . 'bp_xprofile_groups', 'table_name_fields' => $prefix . 'bp_xprofile_fields', 'table_name_meta' => $prefix . 'bp_xprofile_meta', ); return $tables; } add_filter( 'bp_xprofile_global_tables', 'buddydev_global_profile_tables'); /** * Filter meta table to use the main site's tables * * @param array $tables * * @return array */ function buddydev_gloabl_profile_meta_tables( $tables ) { global $wpdb; $prefix = $wpdb->base_prefix; $tables = array( 'xprofile_group' => $prefix . 'bp_xprofile_meta', 'xprofile_field' => $prefix . 'bp_xprofile_meta', 'xprofile_data' => $prefix . 'bp_xprofile_meta', ); return $tables; } add_filter( 'bp_xprofile_meta_tables', 'buddydev_gloabl_profile_meta_tables' );We are overriding the table names to use it from the main sites.
Hope that helps.
- This reply was modified 8 years, 10 months ago by
Brajesh Singh. Reason: fixing the name used in filter
- This reply was modified 8 years, 10 months ago by
Most probably the selector is not working. Safari 10.1 and above should work.
https://caniuse.com/#search=%3Alast-childI have used :last-child selector as there were no other way to select the link on Boss theme.
Which version of safari are you using? Also, Please make sure to clear the cache.
- Brajesh Singh on June 23, 2017 at 4:57 am in reply to: [Resolved] Automatically join groups on registration #9559
Thank you Jay.
I am glad you liked it.Great suggestion about adding to group based on member type. I will put an update by tomorrow with the Group selector option.
Please do let me know if yu have more suggestions.
Thank you.
Brajesh Hi Lyndon,
Please upgrade to 1.0.4
https://buddydev.com/plugins/buddypress-clear-notifications/I have added support for the Boss theme. To be honest, The Boss theme messes the notification menu and currently, I have added the support by selecting the last item in the menu. I sure hope they improve it in future and provide some other concrete way to select menu items.
Please let me know if it works for you or not?
- Brajesh Singh on June 21, 2017 at 9:41 pm in reply to: Non-static method ::get_limit() should not be called statically #9551
Thank you.
I have been testing the plugin alone. Will do a test with these two active and get back to you tomorrow.Thank you
Brajesh Hi Lyndon,
Thank you for posting.
It seems to be a theme conflict.The plugin should clear without reloading the page.
Since one of my clients use this theme, I will test the plugin on the staging site I am managing and assist you further tomorrow.
Thank you
Brajesh- Brajesh Singh on June 19, 2017 at 4:50 am in reply to: Non-static method ::get_limit() should not be called statically #9547
Hi,
Are you on BuddyPress 2.8.2? Which version of php are you using? I am sorry I could not reproduce it.All I see on line 1017 of bp-core-filters.php is a function to set mail header and trying to get user ID.
- Brajesh Singh on June 18, 2017 at 3:36 pm in reply to: [Resolved] Error / Fix line 196 bp-profile-visibility.php #9545
It’s good to have the WP_DEBUG enabled on development sites, It helps catch a lot of future issues:)
- Brajesh Singh on June 18, 2017 at 3:32 pm in reply to: Buddypress Recent Profile Vistors – Total Views Time Range #9544
Hi,
I have updated the plugin page with the new documentation and screenshots.Please upgrade to 1.4.1
https://buddydev.com/plugins/recent-visitors-for-buddypress-profileand you can use the widget/shortcode to list most visited users.
Hope that helps.
- Brajesh Singh on June 18, 2017 at 4:56 am in reply to: Buddypress Recent Profile Vistors – Count views per session #9542
For this topic:-
We do not record all the visit. Currently, It is only one record between two users for the visited user. With each new visit we just increment the visit count for the visitor to visited user and the last visited time of the record.Updating last visited time allows us to have the correct details of unique views etc over a preciod of time.
Also, we are not using the visit count directly anywhere, so I don’t see a side effect of that. keeping a count can help some site making decision on suggesting interests.