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…
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 :).
 
Having an issue in which members that are trying to change the thread display options, are being given this bad link and sent back to the index.

Code:
http://thelowerworld.com/index.php?index/index.php?groups/forums&id=4

Also, there are no page numbering being displayed. For older threads it's almost impossible to view them with the option to go to page "2"
 
The pagination is appearing, thank you. Problem is that the linking of going to page 2 is not what it should be. Hovering over the link for page 2 is giving the following link below.

Screenshot 2015-06-03 at 3.05.42 PM.webp

When clicking on it, you are sent to the main index page of the forum, not too page 2.
 
Back
Top