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.
Notification Link in default.master.tpl
phreak
MVP
Hi all,
Right now i have a link in my header of a mobile theme that displays the username and the number of new notifications next to it.
Username (3)
{profile_link}
This links to the profile-page. But it would be smarter in its usability if it would link to the notifications page. Is there some smarty option like for the profile?
for example something like
{notification_link}
Thanx for info.
- VanillaAPP | iOS & Android App for Vanilla - White label app for Vanilla Forums OS
- VanillaSkins | Plugins, Themes, Graphics and Custom Development for Vanilla
0
Comments
You can create that as a custom Smarty funtion:
http://vanillaforums.org/discussion/comment/214576/#Comment_214576
My themes: pure | minusbaseline - My plugins: CSSedit | HTMLedit | InfiniteScroll | BirthdayModule | [all] - PM me about customizations
VanillaSkins.com - Plugins, Themes and Graphics for Vanillaforums OS
Wie der Zufall so will... I had "extracted" that notification part for custom theme (which never left the early stages) and where I'd like to see some notification link. Here is
/themes/MyTheme/SmartyPlugins/function.notifications.php
In
/themes/MyTheme/class.mythemethemehooks.php
addThere is actually some commented code in the profile controller that will render the notification page if notifications exist and the activity page if not.
I just find it interesting that the code is laying dormant.
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
maybe its like a 17 year cicada.,
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
I prefer the "go to notifications if you have some, go elsewhere if you don't" especially on mobile.
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
I just find it interesting that the code is laying dormant.
in case you missed this - couldn't resist posting.
https://www.youtube.com/watch?v=oDSn5l8_97E
and a timeline when dormancy ends... with milestones. a cicada github,
http://www.cicadamania.com/where.html
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
https://www.youtube.com/watch?v=MN9wyuZfexw
Saw them live in Munich - it was gorgeous!