$typeLimit variable based on the URL parameter ?type=. When you visit /online/ with no parameter, it defaults to "Everyone".<xf:title page="{$page}">{{ phrase('current_visitors') }}</xf:title>
<xf:title page="{$page}">{{ phrase('current_visitors') }}</xf:title>
<xf:if is="!$typeLimit"><script>window.location.replace('{{ link('online', null, {'type': 'member'}) }}');</script></xf:if>
It appears that the above solution is AI generated and not the best option. To restore the function so you can use the everyone tab, please see this solution. This one keeps everything working normally, but does get the result you'd like to show the members tab by default.This works but no longer allows view of everyone tab. I presume that's because it redirects.
Hmm, how does AI get to be a licensed customer?It appears that the above solution is AI generated and not the best option.
Thanks but for some reason this is not working. I can see it should be as marked as solution in the linked thread.It appears that the above solution is AI generated and not the best option. To restore the function so you can use the everyone tab, please see this solution. This one keeps everything working normally, but does get the result you'd like to show the members tab by default.
I saw your request and went ahead and created this for you:I would like to make Members the deafult tab for the online list (Current Visitors) instead of Everyone.
Can anyone please help? Thank you.
$typeLimit variable from the ?type= URL parameter. There's no data-active-tab attribute anywhere.<a href="{{ link('online') }}">{$title}</a><a href="{{ link('online', null, {'type': 'member'}) }}">{$title}</a>
- beerForo
- Replies: 10
- Forum: XenForo questions and support
We use essential cookies to make this site work, and optional cookies to enhance your experience.