Re: Duplicate Messages Tab in Private Message Plugin
I had the same problem with my plugins with the avatar tab too. It makes tabs duplicate.
I’ll have to lookup the workaround I did…
Okay the bug fix I had to use was to wrap the function that adds a tab and check if $self was set.
ie.
function add_tab(blah) {
global $self;
if (!self) {
// code that adds tab goes here
}
}
So what you probably need to do is change this line like so:
if (!$self && bb_get_current_user_info( 'id' ) == $user_id) {