Replies
- Brajesh Singh on May 2, 2016 at 3:13 am in reply to: [Resolved] Show new notification without having to refresh? #3730
No Problem. all the best with the project.
Regards
Brajesh Hi Michael,
Welcome to BuddyDev.Congratulations for starting with WordPress, BuddyPress & bbPress.
The first step is to make a plan. do not make a plan based on a theme. Instead, I will suggest for making a proper plan, list of features, must haves and optional(nice to have features) etc and then evaluating the BuddyPress/bbPress/WordPress for the situations.
As far as themes are concerned, all the free/premium BuddyPress themes which have been released till today are bad. None of these have proper code(Yes, I have access to all premium themes for every existing BuddyPress vendor out there).
I don’t have any particular choice. You may decide based on the appearance but all are equally bad and I don’ suggest any for long term project.
We have been working on one of our own themes too, but it is delayed. We do have plans to release it in 2 weeks. If you are interested, I can send a copy in 2 weeks.
Thank you
BrajeshHi Joy,
I am sorry, I could not reply to yopur PM earlier.Please do not use the above code.
Do you want to set the “All Activity” as default page when activity is clicked? If yes, Please put the following code in bp-custom.php
function buddydev_set_default_nav() { bp_core_new_nav_default ( array( 'parent_slug' => buddypress()->activity->id, 'subnav_slug' => 'all-activity', 'screen_function' => 'bp_community_activity_screen' ) ); } add_action( 'bp_setup_nav', 'buddydev_set_default_nav', 20 );That will do it. Please do let me know if it works or not?
Thank you
Brajesh- Brajesh Singh on April 29, 2016 at 3:03 am in reply to: Conditional Fields plugin won't activate #3721This reply has been marked as private.
Hi Kim,
I am sorry but I could not understand the last reply properly.The best way to list all members will be using the the BuddyPress Members loop.
in bp_has_members(), pass type=alphabetical and it will list all members(even those who never logged in).
Hope that helps.
- Brajesh Singh on April 27, 2016 at 7:55 am in reply to: [Resolved] BuddyPress hosting in India #3715
Hi Lavish,
Welcome to BuddyDev.
Since you are looking for local service provider, I will suggest BigRock. You can use their Indian server and their customer service is great.For me, It seems they are value for money in Indian context.
PS: Go with any hosting but avoid BlueHost for hosting BuddyPress. Their servers seems to be oversold. The best option is Digitalocean if you are comfortable managing your own server.
Hope that helps
Regards
Brajesh Hi Kim,
The problem lies with BuddyPress. It does not list users who haven’t logged in once(It uses a user meta and checks for that).
It is possible to do so. If you list members by using alphabetic filter, It will list all the members.PS: What are you doing to insert the members on team page? using short code?
Thank you
BrajeshHi Kim,
Welcome to BuddyDev.I am sorry for the inconvenience,.
Have these users logged in atleast once? Are they visible inside all tab?Thank you
Brajesh- Brajesh Singh on April 25, 2016 at 11:38 am in reply to: Profile Visibility for existing users #3704
Hi Kathy,
Welcome to BuddyDev. Thank you for purchasing the plugin.1. Please update the settings that you want to applied to all users in the Admin settings page
2. Please put the following code in your bp-custom.php
function bppv_custom_bulk_update() { if ( get_site_option( 'bppv_custom_bulk_updated') || ! function_exists( 'bp_profile_visibility_get_default_settings' ) ) { return ;//do not update again } //only admins with capability to manage users can do it if ( ! current_user_can( 'delete_users' ) ) { return ; } //apologies for the implicit dependency $settings = bp_profile_visibility_get_default_settings(); if ( empty( $settings ) ) { return ; } $keys = array_keys( $settings ); if ( empty( $keys ) ) { return ; } $meta_keys = array_map( 'esc_sql', $keys ); $list = '\'' . join( '\', \'', $meta_keys ) . '\''; $meta_list = '(' . $list .')'; //delete current preference global $wpdb; //Drop it for all existing Users $delete_sql = "DELETE FROM {$wpdb->usermeta} WHERE meta_key IN {$meta_list}"; $wpdb->query( $delete_sql ); //now update for each key foreach ( $settings as $key => $val ) { if ( $key =='admin_only' ) { continue;// } $update_settings_query = "INSERT INTO {$wpdb->usermeta} (user_id, meta_key, meta_value) SELECT ID, %s as meta_key, %s as meta_value FROM {$wpdb->users} where ID !=0"; $prepared_query = $wpdb->prepare( $update_settings_query, $key, $val ); $wpdb->query( $prepared_query ); update_site_option( 'bppv_custom_bulk_updated', 1 ); } } //Run it only once add_action( 'init', 'bppv_custom_bulk_update' );//It needs to be run only once and It will overwrite the settings of ALL USERS(even for users with existing preference).
After one run, you can remove the code if you want.
Hope that helps.
- Brajesh Singh on April 24, 2016 at 1:08 pm in reply to: [Resolved] How to change Default@wordpress.com in Buddypress #3699
Hi Chris,
Thank you confirming.Have a great time building your social network 🙂
Regards
Brajesh