• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

you_have_x_new_unread_conversations with %d ???

#1
Hi,

I don't understand how the value (%d) in that phrase is replaced.

In navigation_visitor_tab:
...
<a href="{xen:link conversations}" rel="Menu" class="navLink NoPopupGadget">{xen:phrase inbox}
<strong class="itemCount {xen:if {$visitor.conversations_unread}, '', 'Zero'}"
id="ConversationsMenu_Counter" data-text="{xen:phrase you_have_x_new_unread_conversations}">
<span class="Total">{xen:number $visitor.conversations_unread}</span>
<span class="arrow"></span>
</strong>
</a>
...

The phrase contains: "You have %d new unread conversation(s)."

I know that the %d is the total of unread conversation. But how to sepcify the value?
 

EQnoble

Well-known member
#2
As a note...
when pasting code and asking for help....

You should click this code.png image in your editor and paste the code in the box that pops up and then click insert.
This will preserve your code in the post without changing it and without parsing smileys.
 

James

Well-known member
#3
The %d is replaced when phrases are compiled with their integer value. Here, it's the number between the span I believe.