Notes |
|
|
This can be done with some custom {php} added to the template where the link is being rendered. I believe providing this as a default part of the installation may be overkill. |
|
|
|
This would work for the wbTeamPro link
{* wbTeamPro Customization *}
{php}
$myCount = mysql_fetch_assoc(full_query("
SELECT COUNT(*) AS `count`
FROM `tbladdon_wbteampro_project`
WHERE `client_userid` = '". (int)$this->_tpl_vars['clientsdetails']['id'] ."'
AND `client_visible` = 'visible'
"));
$this->_tpl_vars['userHasVisibleProject'] = ($myCount && (int)$myCount['count'] ? true : false);
{/php}
{if $userHasVisibleProject}<a class="dropdown-toggle" data-toggle="dropdown" href="#" title="{$LANG.wbteampro_tab}">Projects <b class="caret"></a>{/if} |
|
|
|
I did already something else, but am talking about it to be part of the wbteampro Options.
Yours sincerely,
Star Network. |
|