you_have_x_new_unread_conversations with %d ???

Mic

Member
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?
 
As a note...
when pasting code and asking for help....

You should click this code.webp 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.
 
The %d is replaced when phrases are compiled with their integer value. Here, it's the number between the span I believe.
 
Top Bottom