Hello,
I try to add 3 links in the Quick Links menu, but that doesn't work : Sometimes nothing is shown, sometime only the last link is shown... i don't really why, maybe someone could help me ?
Here is the code i'm using (tried to do it from Paul's blog) in build_navigation_array hook
PHP Code:
if ($show['member'])
{
$userid = vB::$vbulletin->userinfo['userid'];
if (vB::$vbulletin->options['rescue_lienannoncesonoff'] == 1)
{
$lien_mesannonces = array(
'name' => 'rescue_commu_annonces',
'navtype' => 'link',
'url' => '{options.toppath}member.php?u='.$userid.'&tab=afficher_annonces',
'active' => 1,
'productid' => 'rescue',
'text' => 'Mes annonces',
);
$result['vbtab_forum']['links']['vbmenu_qlinks']['links']['rescue_commu_annonces'] = $lien_mesannonces;
}
$lien_messujets = array(
'name' => 'rescue_messujets',
'navtype' => 'link',
'url' => '{options.toppath}search.php?do=finduser&userid='.$userid.'&starteronly=1&contenttype=vBForum_Thread',
'active' => 1,
'productid' => 'rescue',
'text' => 'Mes sujets',
);
$result['vbtab_forum']['links']['vbmenu_qlinks']['links']['rescue_messujets'] = $lien_messujets;
$lien_mesmessages = array(
'name' => 'rescue_mesmessages',
'navtype' => 'link',
'url' => '{options.toppath}search.php?do=finduser&userid='.$userid.'&starteronly=1&contenttype=vBForum_Post&showposts=1',
'active' => 1,
'productid' => 'rescue',
'text' => 'Mes messages',
);
$result['vbtab_forum']['links']['vbmenu_qlinks']['links']['rescue_mesmessages'] = $lien_mesmessages;
unset($userid);
}