Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.
Help keep Vanilla free:
<?php
/*
Extension Name: Namewhore Tab Extension
Extension Url: http://www.trabusproject.com/vanilla/
Description: Adds a Namewhore search tab to the menu, which will execute a search for all comments with the current user's username in the text. Will not display for guests.
Version: 1.0
Author: Trabus (based upon Ben's User Tab extension)
Author Url: http://www.trabusproject.com
*/
if($Context->Session->UserID > 0){
$userName=$Context->Session->User->Name;
if (in_array($Context->SelfUrl, array("index.php", "categories.php", "comments.php", "search.php", "post.php", "account.php", "settings.php"))) {
$Menu->AddTab("Namewhore", "Namewhore", "search.php?PostBackAction=Search&Keywords=$userName&btnSubmit=Search&Type=Comments", "NameWhoreTab", $Attributes = "", $Position = "3", $ForcePosition = "1");
}
}
?>
1 to 13 of 13