wbTeamPro Feature Request & Bug Tracker - wbTeamPro
View Issue Details
0010264wbTeamPro[All Projects] Featurespublic2017-01-30 09:312015-01-25 00:00
StarNetwork 
webuddha 
normalfeaturealways
Under Reviewopen 
v3.0.13 
 
0010264: Show Project managment and time tracking for relevant customers only
It's possible to hide the My Projects and My Time Tracking for all clients and show it only to customer with activity
for example, if I have hosting customers (as many of whmcs admins)
the Projects / times relevant only to some part of the customers and it's Unnecessary for everyone.

Yours sincerely,
Shalom Burla
Star Network and Promotion LTD
No tags attached.
Issue History
2013-07-23 09:27StarNetworkNew Issue
2013-07-23 09:27StarNetwork
2013-07-24 10:49emaillion
2013-07-25 05:462stroke
2014-03-11 15:01webuddhaNote Added: 0010110
2014-03-11 15:01webuddhaAssigned To => webuddha
2014-03-11 15:01webuddhaStatusNew => Feedback
2014-03-11 15:13webuddhaNote Added: 0010111
2014-03-11 15:19StarNetworkNote Added: 0010112
2014-03-11 15:19StarNetworkStatusFeedback => Under Review

Notes
(0010110)
webuddha   
2014-03-11 15:01   
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.
(0010111)
webuddha   
2014-03-11 15:13   
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}
(0010112)
StarNetwork   
2014-03-11 15:19   
I did already something else, but am talking about it to be part of the wbteampro Options.

Yours sincerely,
Star Network.