<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
  <title>aC forum: Hiding tabs from clients</title>
  <link>http://www.activecollab.com/forums/topic/2174/</link>
  <description>Recent posts on topic: Hiding tabs from clients</description>
  <dc:language>en-us</dc:language>
  <pubDate>Sat, 30 Aug 2008 05:51:19 UTC</pubDate>
  
  <item>
    <link>http://www.activecollab.com/forums/post/14346/#post14346</link>
    <guid>http://www.activecollab.com/forums/post/14346/#post14346</guid>
    <title>Post #6 by Ilija Studen</title>
    <dc:creator>Ilija Studen</dc:creator>
    <description><![CDATA[<p>This hack is considered deprecated for anyone using activeCollab 1.1 or later. Use project permissions and project roles instead!</p>]]></description>
    <pubDate>Sat, 09 Aug 2008 16:03:11 UTC</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/14345/#post14345</link>
    <guid>http://www.activecollab.com/forums/post/14345/#post14345</guid>
    <title>Post #5 by laurentsj</title>
    <dc:creator>laurentsj</dc:creator>
    <description><![CDATA[<p><div class="postQuote"><blockquote><div class="quoteAuthor">sccrwoohoo:</div>I noticed when I tried this no matter what permission the user had, they could not see this tab at all. I even made the use the project leader without any success. Is there a way to set this so that if the user has permissions they would see the tab?<br />
<br />
<br />
</blockquote></div><br />
<br />
yes indeed... so it would be a lot easier to explain to clients or new contractors how we work on AC<br />
<br />
</p>]]></description>
    <pubDate>Sat, 09 Aug 2008 14:34:29 UTC</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/11642/#post11642</link>
    <guid>http://www.activecollab.com/forums/post/11642/#post11642</guid>
    <title>Post #4 by sccrwoohoo</title>
    <dc:creator>sccrwoohoo</dc:creator>
    <description><![CDATA[<p>I noticed when I tried this no matter what permission the user had, they could not see this tab at all. I even made the use the project leader without any success. Is there a way to set this so that if the user has permissions they would see the tab?<br />
<br />
<br />
</p>]]></description>
    <pubDate>Sun, 03 Feb 2008 17:45:22 UTC</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/11175/#post11175</link>
    <guid>http://www.activecollab.com/forums/post/11175/#post11175</guid>
    <title>Post #3 by cbtrussell</title>
    <dc:creator>cbtrussell</dc:creator>
    <description><![CDATA[<p>No - permissions and client visibility of aC functions are quite broken in the current release. All users on a project have view permission to everything. Even if you hide a tab, that content still appears on the dashboard, on the calendar, in linked modules, etc. See this post for details:<br />
<br />
http://www.activecollab.com/forums/topic/2327/</p>]]></description>
    <pubDate>Thu, 20 Dec 2007 01:22:47 UTC</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/11128/#post11128</link>
    <guid>http://www.activecollab.com/forums/post/11128/#post11128</guid>
    <title>Post #2 by shailu_agrawal</title>
    <dc:creator>shailu_agrawal</dc:creator>
    <description><![CDATA[<p>Don't we should have a feature such that if a client is not given permission for both &quot;Time tracking add&quot; and &quot;Time tracking manage&quot;, Time tracking tab should remain hidden from the client. Most of the users of AC don't use all the the features of AC and it is very much required to keep the only required tabs to make it less confusing.</p>]]></description>
    <pubDate>Sat, 15 Dec 2007 03:32:39 UTC</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/10334/#post10334</link>
    <guid>http://www.activecollab.com/forums/post/10334/#post10334</guid>
    <title>Post #1 by Ilija Studen</title>
    <dc:creator>Ilija Studen</dc:creator>
    <description><![CDATA[<p>Plugins add tabs to the navigation when on_project_tabs event is trggered. Every module (plugin) has a on_project_tabs handler located in /activecollab/application/modules/#MODULE_NAME#/handlers/on_project_tabs.php file. Here is how handler usually looks like:<br />
<br />
<pre name="code" class="php">function calendar_handle_on_project_tabs(&amp;$tabs, &amp;$project) {
  $tabs-&gt;add('calendar', array(
    'text' =&gt; lang('Calendar'),
    'url' =&gt; Calendar::getProjectCalendarUrl($project),
  ));
} // calendar_handle_on_project_tabs</pre><br />
<br />
If you wish to hide a certain type from your clients alter it too look like this:<br />
<br />
<pre name="code" class="php">function calendar_handle_on_project_tabs(&amp;$tabs, &amp;$project) {
  $user = get_logged_user();
  if(instance_of($user, 'User') &amp;&amp; $user-&gt;isOwner()) {
    $tabs-&gt;add('calendar', array(
      'text' =&gt; lang('Calendar'),
      'url' =&gt; Calendar::getProjectCalendarUrl($project),
    ));
  } // if
} // calendar_handle_on_project_tabs</pre><br />
<br />
Notice that we are asking from the system to tell us who the logged in user is and if we have a logged in user and he is a member of owner company that we are adding a new tab. <br />
<br />
Tabs are added by the following modules:<br />
<br />
- Discussions - /discussions<br />
- Milestones - /milestones<br />
- Files - /files<br />
- Checklists - /checklists<br />
- Calendar - /calendar<br />
- Pages - /pages<br />
- Tickets - /tickets<br />
- Time - /timetracking</p>]]></description>
    <pubDate>Tue, 23 Oct 2007 13:13:45 UTC</pubDate>
  </item>
</channel>
</rss>