Vanilla open source was terminated 1 January 2025 by Higher Logic. See this announcement for more information.
New tab positioning not working
Can anyone point out what I'm doing wrong here? I'm trying to make a new tab that signs the user out, and I would like that tab to be on the right-most side of the tab menu. No mater what I do with the positioning values I cannot get it to appear anywhere but the left-most side (to the left of "Discussions").
<?php
/*
Extension Name: Signout Tab
Extension Url: http://www.gubbish.org
Description: Adds Sign Out tab
Version: 1
Author: Chead
Author Url: http://www.gubbish.org
*/
if (in_array($Context->SelfUrl, array("index.php", "categories.php", "comments.php", "search.php", "post.php", "account.php", "settings.php"))) {
$Menu->AddTab("Sign Out", "Sign Out", "http://www.sanfrancisquad.com/vanilla/people.php?PostBackAction=SignOutNow", "Signout Tab", $Attributes = "", $Position = "6", $ForcePosition = "1");
}
?>
0
This discussion has been closed.
Comments
SkyBlueshoes
Edit: I also tried "15" and it didn't move.