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.
Checking for notifications on rest of website
LimitedWard
New
I have a website that has a vanilla forum embedded inside of it (all on the same host). The rest of the website uses PHP and MySQL; however, I would like to add something at the top of each page that would let users know if they have a notification in their forum account (e.g. if someone receives a new private message, there would be a notification at the top right of each page on the website). How might I be able to do this?
0
Comments
not sure - but are you aware you can set notifications to appear on page in vanilla in profile preferences.
it currently appears in lower right. (are you looking to change position of the messages.)
or are you looking to add notifications to non-vanilla web pages (as well as putting it in upper right).
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 am looking to add notifications to the non-vanilla web pages on my site.
I know that on the vanilla pages there are notifications, and people can receive notifications via email. I'm just asking because people on my site want to be able to see the notifications as soon as they go to the (non-vanilla) homepage.
maybe this will help you on your way.
inform messages are dealt with in js/ global.js and via
notifications can come from gdn.InformMessages and the various controller methods InformMessage
positioning is via class InformMessages in css.
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 wonder if there is a way to do it using jsConnect
I would suggest adding the MeModule to the rest of your site. Put in some placeholder markup and request the actual markup via an ajax request to
http://forum.example.com/module/memodule
and popping it in there. Copy the relative styles over and you should be good to go!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.
Do you know where I might find documentation on the MeModule? I looked in the "Documentation" section of the site and couldn't find anything on it (perhaps I'm not searching for the right thing).
vanillaforums.org/search?adv=&search=MeModule
search the forum for MeModule.
this might give you some ideas -
look at a few of the comments in this discussion.
http://vanillaforums.org/discussion/comment/206149/#Comment_206149
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Sample code here: http://vanillaforums.org/discussion/comment/206134/#Comment_206134
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 will check these out. Thanks for all the help