Quote:
Originally Posted by Altari
Hello,
Thank you for your help,
But this doesn't work better : I added the global show and change template hook, but nothing happen. I use VBOptimise(?), but i flushed the cache, cleared system cache etc... Nothing works like that
Anyway, i'm just trying to add this to start, and it doesn't work :
PHP Code:
global $show; if ($show['member'] == TRUE) { $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; }
|
Try This Code
Hook: build_navigation_array
Code:
PHP Code:
if (vB::$vbulletin->userinfo['userid'])
{
$lien_messujets = array(
'name' => 'rescue_messuje',
'navtype' => 'link',
'url' => '{options.toppath}search.php?do=finduser&userid='.$userid.'&starteronly=1&contenttype=vBForum_Thread',
'active' => 1,
'text' => 'Message',
'productid' => 'vbulletin',
);
$result['vbtab_forum']['links']['vbmenu_qlinks']['links']['rescue_messuje'] = $lien_messujets;
}
You can replace vbulletin with your product id but make sure that product is enabled otherwise link will not be shown.