I need help with plugin coding. I searched around on how to change the default profile tab to "About Me". I found help with that and changed the default tab successfully.
I used the code below to write the plugin.
hook location - member_build_blocks_start
PHP Code:
if (!$vbulletin->GPC_exists['tab'])
{
$vbulletin->GPC['tab'] = 'aboutme';
}
I then changed wording within the code so that it would make the blogs the default tab.
PHP Code:
if (!$vbulletin->GPC_exists['tab'])
{
$vbulletin->GPC['tab'] = 'blog';
}
I have done this even though there are users who have 0 blogs. Since they have no blogs there is no tab to be displayed. It just shows a blank area in the profile. I would like to make it so that when a user does not have any blogs the profile automatically displays the "about me" tab. It seems like an easy task. Please help me with this.