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?
hi @Waterskiaddict
copy me.php from
applications\dashboard\views\modules
and paste it to your theme to :yourtemplate\views\modules
yourtemplate\views\modules
and edit the php:
you can put any links just right around line 37 with
< 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.
@Waterskiaddict hitting "awesome" or "insightful" would be fullfilling thanks , also for other guys out there who will encounter same issue to see this solution
Comments
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?
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
tagsline 37 with
< 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.
@Waterskiaddict hitting "awesome" or "insightful" would be fullfilling thanks , also for other guys out there who will encounter same issue to see this solution