Template {$User. CountNotifications} is it effective?
 tingtanet                
                
                     New
tingtanet                
                
                     New                
            {if $User.CountUnreadConversations} <span>{$User.CountUnreadConversations}</span>{/if}
I found this is invalid, the value to 0.
Who knows what's going on?
0          
             
         
            
Comments
Well, technically 0 and 1 are booleans meaning that if there aren't any notifications
if $User.CountUnreadConversationswill evaluate tofalseand 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
@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。
You could try adding the
{debug}tag to your template and check for theCountUnreadConversationsvalue -{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
@kasperisager Hello, this picture shows received four tips, but {$User. CountUnreadConversations} here or not.
This is what went wrong? Really want to study well, a lot to learn.
Updates for me using smarty debug.
You sent a message?
grep is your friend.
what version of vanilla are you using?
grep is your friend.
@x00 I send pictures is
{debug}the information displayed. Really don't know where the problem is.grep is your friend.
@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.
@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
無為
grep is your friend.