Social Groups (Teams)

Social Groups (Teams) [Paid] 2.9.1a

No permission to buy (0.00)
Dear Nobita,

How do I remove the groups button from profiles

2015-05-25_17-44-33.png


And from the member card.

2015-05-25_17-45-04.png
 
Dear Nobita,

How do I remove the groups button from profiles

2015-05-25_17-44-33.png


And from the member card.

2015-05-25_17-45-04.png
The Dark WizardFor member card you should edit this template: Team_user_view_info
And remove this line or just give comment:
Code:
<xen:comment><dt>{xen:phrase Teams_teams}:</dt> <dd><a href="{xen:helper groupRoute, 'browsegroups/membership', '', 'category=user','user_id={$user.user_id}', 'type=admin'}" class="concealed">{xen:number $user.team_count}</a></dd></xen:comment>

For user profile:
Edit this template: Team_member_view_tabs_heading
Code:
<xen:comment>
<xen:if is="{$canViewTeams}">
    <li><a href="{xen:link members, $user}#teams">{xen:phrase Teams_teams}</a></li>
</xen:if></xen:comment>

And this template: Team_member_view_tabs_content
Code:
<xen:comment>
<xen:if is="{$canViewTeams}">
    <li id="teams" class="profileContent" data-loadUrl="{xen:helper groupRoute, 'browsegroups/user', '', 'user_id={$user.user_id}'}">
        {xen:phrase loading}...
        <noscript><a href="{xen:helper groupRoute, 'browsegroups/user','user_id={$user.user_id}'}">{xen:phrase view}</a></noscript>
    </li>
</xen:if></xen:comment>
 
For member card you should edit this template: Team_user_view_info
And remove this line or just give comment:
Code:
<xen:comment><dt>{xen:phrase Teams_teams}:</dt> <dd><a href="{xen:helper groupRoute, 'browsegroups/membership', '', 'category=user','user_id={$user.user_id}', 'type=admin'}" class="concealed">{xen:number $user.team_count}</a></dd></xen:comment>

For user profile:
Edit this template: Team_member_view_tabs_heading
Code:
<xen:comment>
<xen:if is="{$canViewTeams}">
    <li><a href="{xen:link members, $user}#teams">{xen:phrase Teams_teams}</a></li>
</xen:if></xen:comment>

And this template: Team_member_view_tabs_content
Code:
<xen:comment>
<xen:if is="{$canViewTeams}">
    <li id="teams" class="profileContent" data-loadUrl="{xen:helper groupRoute, 'browsegroups/user', '', 'user_id={$user.user_id}'}">
        {xen:phrase loading}...
        <noscript><a href="{xen:helper groupRoute, 'browsegroups/user','user_id={$user.user_id}'}">{xen:phrase view}</a></noscript>
    </li>
</xen:if></xen:comment>
Nobita
Thank you very much it worked!

Fantastic support :3.

One last thing. How do I remove it from the navbar?
 
View previous replies…
Thanks for the like.

Let me know how to do this last bit when you get a chance :).
The Dark WizardJust open the file: library/Nobita/Teams/Listener.php

And comment this lines:
PHP:
if (self::$_canViewTeams)
        {
            $extraTabs[TEAM_ROUTE_PREFIX] = array(
                //'href' => XenForo_Link::buildPublicLink("full:" . TEAM_ROUTE_PREFIX),
                'href'     => group_route(null, null, null, 'canonical'),
                'title' => new XenForo_Phrase("Teams_teams"),
                'position' => Nobita_Teams_Option::get('navigationPosition'),
                'selected' => ($selectedTabId == TEAM_ROUTE_PREFIX),
                'linksTemplate' => 'Team_navigation_tab_links'
            );
        }

After comment it should be:
PHP:
/*if (self::$_canViewTeams)
        {
            $extraTabs[TEAM_ROUTE_PREFIX] = array(
                //'href' => XenForo_Link::buildPublicLink("full:" . TEAM_ROUTE_PREFIX),
                'href'     => group_route(null, null, null, 'canonical'),
                'title' => new XenForo_Phrase("Teams_teams"),
                'position' => Nobita_Teams_Option::get('navigationPosition'),
                'selected' => ($selectedTabId == TEAM_ROUTE_PREFIX),
                'linksTemplate' => 'Team_navigation_tab_links'
            );
        }*/

Note: When you disable it. Noone can see the group title in the navigation but if you have link. You still viewable.
 
Just open the file: library/Nobita/Teams/Listener.php

And comment this lines:
PHP:
if (self::$_canViewTeams)
        {
            $extraTabs[TEAM_ROUTE_PREFIX] = array(
                //'href' => XenForo_Link::buildPublicLink("full:" . TEAM_ROUTE_PREFIX),
                'href'     => group_route(null, null, null, 'canonical'),
                'title' => new XenForo_Phrase("Teams_teams"),
                'position' => Nobita_Teams_Option::get('navigationPosition'),
                'selected' => ($selectedTabId == TEAM_ROUTE_PREFIX),
                'linksTemplate' => 'Team_navigation_tab_links'
            );
        }

After comment it should be:
PHP:
/*if (self::$_canViewTeams)
        {
            $extraTabs[TEAM_ROUTE_PREFIX] = array(
                //'href' => XenForo_Link::buildPublicLink("full:" . TEAM_ROUTE_PREFIX),
                'href'     => group_route(null, null, null, 'canonical'),
                'title' => new XenForo_Phrase("Teams_teams"),
                'position' => Nobita_Teams_Option::get('navigationPosition'),
                'selected' => ($selectedTabId == TEAM_ROUTE_PREFIX),
                'linksTemplate' => 'Team_navigation_tab_links'
            );
        }*/

Note: When you disable it. Noone can see the group title in the navigation but if you have link. You still viewable.
Nobita
Thank you :).
 
Back
Top