Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
'Namewhore Tab' extension
Will execute a search on all comments with your username in the text. Good for busy boards with users that visit infrequently. Oh hell, you all know what namewhoring is for chrissakes. :P
Copy and paste into notepad, then save as NameWhoreTab.php, with the filetype as 'All files'. Or get it at http://www.trabusproject.com/vanilla/NameWhoreTab.phps
Drop in your extensions folder and enable it.
Copy and paste into notepad, then save as NameWhoreTab.php, with the filetype as 'All files'. Or get it at http://www.trabusproject.com/vanilla/NameWhoreTab.phps
Drop in your extensions folder and enable it.
<?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");
}
}
?>
0
This discussion has been closed.
Comments
"Adds a Namewhore search tab to the menu, which allows you to find discussions with your name in them."
or something similar?
"current user's username"
better phrasing? you don't like my simplified description?