XF 1.1 Need help with navigation

Okay so i went to /library/XfRu/UserAlbums/EventListener/Tab.php and changed the linksTemplate to the EWRmedio one. So the tablinks that are on medio are displayed on useralbums too.

I really just need the useralbums tab removed and when I'm on the index for useralbums I need the medio tab selected.

I also need to know the linksTemplate code for the forum homepage.

Code:
<?php
/**
* XenForo User Albums
*
* @category XenForo Application
* @package    XfRu_UserAlbums
* @copyright  Copyright (c) 2010 XF-Russia. (http://www.xf-russia.ru)
* @license
* @version  $Id: Tab.php 186 2011-04-03 13:47:51Z pepelac $ $Date: 2011-04-03 15:47:51 +0200 (Sun, 03 Apr 2011) $ $Revision: 186 $
* @author Pepelac
*
*/
 
class XfRu_UserAlbums_EventListener_Tab
 
{
    public static function addTab(array &$extraTabs, $selected)
    {
        if (XfRu_UserAlbums_Permissions::canViewAlbums())
        {
            if (!XenForo_Visitor::getUserId() && XenForo_Application::get('options')->XfRu_UA_hideMenuTabToGuests)
            {
                return;
            }
            $extraTabs['useralbums'] =array(
                'title' => new XenForo_Phrase('xfr_useralbums_user_albums'),
                'href' =>  XenForo_Link::buildPublicLink('useralbums'),
                'position' => 'middle',
                'selected' => ($selected == 'useralbums'),
                'linksTemplate' => 'EWRmedio_Navtabs',
            );
        }
    }
}
 
Popup menus in secondary links? DP does that. You can get the code from the page source:

https://tools.digitalpoint.com/

No no, I already have it.

See this post:

http://xenforo.com/community/threads/moving-links-into-a-drop-down.43195/#post-464963

In short, you can use CSS to hide existing tabs, and the NodesAsTabs addon can reassign pages to other tabs using link-forums.

I don't want to put links in the drop-down. I just need to remove an addon's tab, and when Im on that addon's index I need another tab to be selected.
 
Back
Top Bottom