R
ragtek
Guest
see title
(if somebody doesn't know what i mean:
http://xenforo.com/community/members/ragtek.82/#info doesn't link to the information tab, the first tab is always active instead of #info in my example...
vs
http://www.vbulletin-germany.org/member.php?12-ragtek&tab=releases#releases
which links direct to my releases tab
it's really anoying, specially if you have addons which have to redirect to the same page after some action... e.g. when i create/delete a usernote, it redirects after the action to the profile posts tab instead of setting the user notes tab active
It's a bug since the first beta, which is really very annoying...
The only way i'm aware of, is this:
but it's working only for own pages where i exactly know how many tabs exist and the possition, so it's not possible to use this "hack" for addons adding own tabs to the profile, because you never know the possition of your tab
(if somebody doesn't know what i mean:
http://xenforo.com/community/members/ragtek.82/#info doesn't link to the information tab, the first tab is always active instead of #info in my example...
vs
http://www.vbulletin-germany.org/member.php?12-ragtek&tab=releases#releases
which links direct to my releases tab
it's really anoying, specially if you have addons which have to redirect to the same page after some action... e.g. when i create/delete a usernote, it redirects after the action to the profile posts tab instead of setting the user notes tab active
It's a bug since the first beta, which is really very annoying...
The only way i'm aware of, is this:
Code:
<script type="text/javascript">
$(document).bind('XenForoActivationComplete', function() {
$test = document.URL.split("#")[1];
if ($test && $test == 'invitestab') {
$tabContainer = $('#ragtektabs');
var $api = $tabContainer.data('tabs');
$current = $api.click(1);
}
$noTab = $("li.noTab");
console.log($noTab);
$noTab.bind('click', function(){
window.location = $noTab.data('url');
});
});
</script>
Upvote
0