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.
Options

How to use the vanilla Inform User Notifications

Hello, i'm just an amateur user, now I want to display an inform message last until user dismiss it. I've read some information here:
http://vanillaforums.org/docs/informmessages
But I don't know where to put these code. Can anyone please help?

Comments

  • Options
    peregrineperegrine MVP
    edited May 2014

    you put it in your plugin, application, or themehooks - would be three possible choices.

    you trigger it off an event in php - if using the php way of informing

    or if you are using a js - you trigger it off an event in js. - if you are triggering off a mouse move or click or whatever.

    it's not really an amateur question. you use non-dismiss.


    @But ...

    But, probably what you really want is using messages created via the dashboard options and then use the non-dismiss.

    kind of like this message that appears at the top of the screen.

    Current Releases are 2.1 stable (major release) and 2.0.18.11 (security patch for 2.0)
    We've also rebooted our GitHub repo, docs, and more !

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • Options
    vrijvlindervrijvlinder Papillon-Sauvage MVP

    hi, yes you go in the dashboard and from the left hand panel select messages.

    Then add message and a popup opens with a form where you put in the message or html content.

    Then you select where you want it to show. Panel is bellow side bar. the other option is above the content.

    Then you select what type of message if warning or other. That will affect how the message looks by default. Then you can edit the css of your theme to change it's looks.

    Select enable before you save the message.

    You can also sort them by dragging and dropping them in the order you want.

  • Options
    vrijvlindervrijvlinder Papillon-Sauvage MVP
    edited May 2014

    You should have pasted the message in the new discussion post page about version of vanilla...as well

    There is the InformSprites Plugin by S , maybe that could be modified to change the messages or do what they want with the tiny messages at the bottom left.

  • Options
    nghesinghesi New
    edited May 2014

    Thank you peregrine and vrijvlinder - Sorry I haven't known I can add message in dashboard. I think my problem was just resolved.

  • Options
    vrijvlindervrijvlinder Papillon-Sauvage MVP

    We may be talking about two kinds of messages ... those that you create as I mentioned above and those that show up on the bottom left of the page when something happens like a mention or private message comes in as peregrine mentioned above.

Sign In or Register to comment.