Not signed in (Sign In)

Categories

Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.

Help keep Vanilla free:
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    • CommentAuthortrabus
    • CommentTimeAug 2nd 2005 edited
     # 1
    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.

    <?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");
    }
    }
    ?>
    • CommentAuthorjonezy
    • CommentTimeAug 2nd 2005
     # 2
    sweet! add it to the docs page.
    • CommentAuthorjonezy
    • CommentTimeAug 2nd 2005
     # 3
    • CommentAuthortrabus
    • CommentTimeAug 2nd 2005
     # 4
    yeah, I need to register, was just about to. :)
    • CommentAuthorjonezy
    • CommentTimeAug 2nd 2005
     # 5
    sweet!
    • CommentAuthorjonezy
    • CommentTimeAug 2nd 2005
     # 6
    i said sweet 2x in this thread.
    • CommentAuthortrabus
    • CommentTimeAug 2nd 2005
     # 7
    I just modified it to only show a namewhore tab if a user is logged in. it will not be shown for guests, as that would have a search resulting in all comments returned.
    •  
      CommentAuthorstuart
    • CommentTimeAug 2nd 2005
     # 8
    I reckon this could be better being a field in the user profile, a 'see who's talking about you' link. Still nice work.
    •  
      CommentAuthorlament
    • CommentTimeAug 2nd 2005
     # 9
    people aren't going to know what a "namewhore" is.. so how about adding this to the description:

    "Adds a Namewhore search tab to the menu, which allows you to find discussions with your name in them."

    or something similar?
    • CommentAuthortrabus
    • CommentTimeAug 2nd 2005
     # 10
    done.
    •  
      CommentAuthorlament
    • CommentTimeAug 2nd 2005 edited
     # 11
    does it work for private discussions to? if so, add "(even private discussions)" :)

    "current user's username"

    better phrasing? you don't like my simplified description? :)
    • CommentAuthortrabus
    • CommentTimeAug 2nd 2005
     # 12
    Stuart, it totally could be a link like that. I can make a profile link version later.

    The main use for it that I've found handy is when you are away for a couple weeks and want to check if there are any posts for you. On a board that I was part of, when making a post, people would actually list names of users they thought would have interest in the thread. It actually becomes quite useful when all users are aware of it, as people will often do this to get advice from "the coder guy" or "the photo guy" by listing their name at the end of their post.
    • CommentAuthortrabus
    • CommentTimeAug 2nd 2005
     # 13
    It would only work on discussions that the user has access to. So if the private discussion was not including the user, then no, it wouldn't come up in the search.
    All it does is execute a search on all comments and inserts your username into the field.
Add your comments
    Username Password
  • Format comments as