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

Template {$User. CountNotifications} is it effective?

{if $User.CountUnreadConversations} <span>{$User.CountUnreadConversations}</span>{/if}

I found this is invalid, the value to 0.

Who knows what's going on?

Comments

  • Options
    KasperKasper Scholar of the Bits Copenhagen Vanilla Staff

    Well, technically 0 and 1 are booleans meaning that if there aren't any notifications if $User.CountUnreadConversations will evaluate to false and nothing will be rendered. Is this a problem?

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

  • Options

    @kasperisager I tested, I use two browsers, respectively on two accounts, with a @ another, but there is no display information. But I use the default theme and can be displayed, use {profile_link}the default theme, you can display information.
    Thank you so enthusiastic reply。

  • Options
    KasperKasper Scholar of the Bits Copenhagen Vanilla Staff

    You could try adding the {debug} tag to your template and check for the CountUnreadConversations value - {profile_link} is definitely a good alternative though :-) Oh, and no worries!

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

  • Options

    @kasperisager Hello, this picture shows received four tips, but {$User. CountUnreadConversations} here or not.

    image

  • Options

    This is what went wrong? Really want to study well, a lot to learn.

    image

  • Options
    x00x00 MVP
    edited April 2013

    Updates for me using smarty debug.

    You sent a message?

    grep is your friend.

  • Options
    x00x00 MVP
    edited April 2013

    what version of vanilla are you using?

    grep is your friend.

  • Options

    @x00 I send pictures is {debug} the information displayed. Really don't know where the problem is.

  • Options

    @x00 said:
    what version of vanilla are you using?

    grep is your friend.

  • Options

    @x00 Version 2.0.18.8, wow, you avatar is a “咏春”.

  • Options

    @tingtanet said:
    x00 Version 2.0.18.8, wow, you avatar is a “咏春”.

    Sure I train 6 years now.

    ....

    Um, it might be related to (micro) caching, possibly.

    grep is your friend.

  • Options

    @x00 Um...It is necessary to learn English.

    I like open source, can learn a lot.

    Still thank you for your reply, looking forward to a better vanilla.

    thank you(谢谢你们) @kasperisager @x00

  • Options

    無為

    grep is your friend.

Sign In or Register to comment.