Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

How can I add to the MeModule Menu?

Comments

  • KasperKasper Scholar of the Bits Copenhagen Vanilla Staff

    The "Edit Profile" link is present in the MeModule by default.

    Kasper Kronborg Isager (kasperisager) | Freelance Developer @Vanilla | Hit me up: Google Mail or Vanilla Mail | Find me on GitHub

  • Right, sorry I wasnt clear. How can I add custom links to the MeModule?

  • fr3em1ndfr3em1nd ✭✭
    edited February 2013

    hi @Waterskiaddict

    copy me.php from

    applications\dashboard\views\modules

    and paste it to your theme to :
    yourtemplate\views\modules

    and edit the php:

    you can put any links just right around
    line 37 with

    tags

    < li> <a href="my new link">my new link < /a< /i>

    // Inbox
    if (Gdn::ApplicationManager()->CheckApplication('Conversations')) {
    $CountInbox = GetValue('CountUnreadConversations', Gdn::Session()->User);
    $CInbox = is_numeric($CountInbox) && $CountInbox > 0 ? ' '.$CountInbox.'' : '';
    echo '';
    echo Anchor(Sprite('SpInbox', 'Sprite Sprite16').Wrap(T('Inbox'), 'em').$CInbox, '/messages/all', 'MeButton FlyoutButton', array('title' => T('Inbox')));
    echo Sprite('SpFlyoutHandle', 'Arrow');
    echo '

    ';
    }

    try playing around maybe you have better solution

  • @fr3333333x

    Thanks, works awesome. I'm not sure how long I spent digging through folders for the right file.

  • fr3em1ndfr3em1nd ✭✭
    edited February 2013

    @Waterskiaddict :D hitting "awesome" or "insightful" would be fullfilling thanks :D , also for other guys out there who will encounter same issue to see this solution :)

Sign In or Register to comment.