Matthew Hawley
Well-known member
Okay so, what I want to do is, remove the nav tab of different addons, BUT i dont want to remove the tablinks.
<?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/
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.
I already answered that. Use NodesAsTabs:
http://xenforo.com/community/threads/moving-links-into-a-drop-down.43195/#post-464963
...with emphasis on this latest update:
http://xenforo.com/community/resources/nodes-as-tabs.9/update?update=1441
Yep. This:
http://xenforo.com/community/resources/nodes-as-tabs.9/update?update=1441
Install NodesAsTabs, enable tab selection for link-forums, create a link-forum for albums and manually assign it to the tabid for xenmedio.
Or you can edit the route handler. Code example:
http://xenforo.com/community/thread...which-default-to-forum-tab.30502/#post-352357
How do i find the tab id
<li class="navTab members Popup PopupControl PopupClosed">
We use essential cookies to make this site work, and optional cookies to enhance your experience.