PDA

View Full Version : Default Profile Tab


TBforums
03-17-2011, 02:55 PM
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

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.

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.

Lynne
03-17-2011, 05:04 PM
Unfortunately, the blog uses the same hook location and it's info doesn't get processed until after that hook. So, you may need to actually modify the code in member.php to do what you want.