1. 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 ???

Discussion in 'XenForo Development Discussions' started by Mic, Apr 8, 2013.

  1. Mic

    Mic Member


    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>

    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?
  2. EQnoble

    EQnoble Well-Known Member

    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.
  3. James

    James Well-Known Member

    The %d is replaced when phrases are compiled with their integer value. Here, it's the number between the span I believe.
    Lycaon likes this.

Share This Page