Duplicate Messages Tab in Private Message Plugin
-
I have the Private Messages plugin and the Avatar plugin both installed, and whenever I click on the Avatar tab in user profiles, I get two Messages tabs. I added the function suggested in the PM plugin forum:
function add_pm_tab()
{
global $user_id;
global $self;
if (bb_get_current_user_info( ‘id’ ) == $user_id) {
add_profile_tab(__(‘Messages’), ‘edit_profile’, ”, ‘pm.php’);
}
}
add_action( ‘bb_profile_menu’, ‘add_pm_tab’ );
bb_add_filter(‘get_bb_location’, ‘get_mess_bb_location’);
bb_add_filter(‘get_bb_location’, ‘get_pm_bb_location’);
To display the PM message tab on the users’ profiles. Any idea what’s causing the tab to duplicate? It only happens when users click on the Avatar tab in their profile.
You must be logged in to reply to this topic.