shabbadoof
Member
Try this in EXTRA.css:
CSS:@media (max-width:@maxResponsiveNarrowWidth) { .custom-tab-1 { display: none; } }
Afraid they are still appearing on mobile
Try this in EXTRA.css:
CSS:@media (max-width:@maxResponsiveNarrowWidth) { .custom-tab-1 { display: none; } }
.siropuCustomTab.selected .tabLinks {
z-index: 1;
}
You don't need this add-on in XenForo 2 as it is built in.Could you but compatible Your add-ons for version 2.0.0 Stp
That did the trick, thanks a ton. To get the breadcrumb to show up, I need to edit the add-on code correct? In the Public Controller?@Ludachris, try this code in EXTRA.css to see if fixes the child issue:
CSS:.siropuCustomTab.selected .tabLinks { z-index: 1; }
Awesome, thank you.You can control breadcrumbs via template so the page you link to can have something like:
Code:<xen:navigation> <xen:breadcrumb href="{xen:link full:route}">breadcrumb name</xen:breadcrumb> </xen:navigation>
Another question on routes... I have a filter system that adds to the end of the URL for these pages. When you select a filter option, the custom tab is no longer selected. Can I address this in the custom tabs interface or is this a coding issue for the add-on? I can PM you a link to see what I'm talking about. Thanks in advance!@Ludachris, try this code in EXTRA.css to see if fixes the child issue:
CSS:.siropuCustomTab.selected .tabLinks { z-index: 1; }
I can do an upgrade version that exports tabs to XF2, but once I complete my premium add-ons for XF2.any plan to add tabs export option for Xf2?
Hey @DDempsey - I tried using this code but could not get it to work. The tab selection works except when there is something added to the end of the URL. For example this works "/custom-tab/" but this does not "/custom-tab/filter?type=22". How can your code above be edited to address my situation?Might I suggest a edit to Helper.php
this code will support selecting the Tab in case the url is something like "/custom-tab/page.2/something.4/View"
PHP:public static function uriMatch($uri) { $requestPaths = XenForo_Application::get('requestPaths'); $requestUri = $requestPaths['requestUri']; $requestAddon = "/".substr(substr($requestPaths['requestUri'],1),0,strpos(substr($requestPaths['requestUri'],1),'/'))."/"; $fullUri = $requestPaths['fullUri']; $noBasePathUri = substr($requestUri, strlen($requestPaths['basePath']), strlen($requestUri)); if ($uri == $requestUri || $uri == $requestAddon || $uri == $fullUri || $uri == $noBasePathUri) { return true; } }
public static function uriMatch($uri)
{
$requestPaths = XenForo_Application::get('requestPaths');
$requestUri = $requestPaths['requestUri'];
$fullUri = $requestPaths['fullUri'];
$noBasePathUri = substr($requestUri, strlen($requestPaths['basePath']), strlen($requestUri));
if ($uri == $requestUri
|| $uri == $fullUri
|| $uri == $noBasePathUri
|| preg_match('/[?&]/', $noBasePathUri) && preg_match('@^/?' . preg_quote($uri) . '@', $noBasePathUri))
{
return true;
}
}
We use essential cookies to make this site work, and optional cookies to enhance your experience.