Replies
Yeah got this done. Thank you so much for your kind support.
Hi Brajesh,
Is there any downside of using the following function:
public function is_profile_group( $name ) {
global $wpdb;
$group_id = $wpdb->get_var( $wpdb->prepare( ‘SELECT id FROM ‘. $wpdb->prefix .’bp_xprofile_groups WHERE name = %s’, $name ) );
if( $group_id ) {
return true;
} else {
return false;
}
}Hi Brajesh,
I tried to use the function, but it returns null regardless of what I pass. I tried to look into the profile object and find the table_name_groups, but can’t find it. I guess that’s the reason why it returns null.
Thanks
Hi Brajesh,
Thank you for your help. I will give it a try and let you know.
Thanks again.
Hi Brajesh,
Thank you so much. I will send you a link of my theme when it’s complete and live.
You are awesome !!!!
Cheers
Hi Brajesh,
I think for now it would be great to un-register the file from the plugin and re-register it from the theme. I will copy the css file from the plugin and work with it in the theme. Let me know how do I do that?
Also, Gallery tab in the bp_get_displayed_user_nav() comes at last before the “settings” tab. Your plugin is so important so I want to move it in the third place. Activity, Profile, Gallery, Friends ….. so on.
I can re-order the BP profile nav by accessing the $bp global variable.
global $bp
$bp->bp_nav[‘activity’][‘position’] = 5;
$bp->bp_nav[‘profile’][‘position’] = 10;
$bp->bp_nav[‘Friends’][‘position’] = 15;I tried with the Gallery same way, but it doesn’t seem to work. Any help regarding this would be great.
Thank you so much for your support.
Regards