SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Enthusiast
    Join Date
    Sep 2005
    Posts
    55
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Changing variable content

    I have this code:

    {* $Id: menu_users_online.tpl,v 1.2 2004/05/28 12:21:14 max Exp $ *}
    {if $users_online}
    {capture name=menu}
    {foreach from=$users_online item=v}
    <FONT class="VertMenuItems">{$v.count}&nbsp;
    {if $v.usertype eq 'A'}
    {$lng.lbl_admin_s}
    {elseif $v.usertype eq 'P'}
    {$lng.lbl_provider_s} <!-- -->
    {elseif $v.usertype eq 'B'}
    $lng.lbl_partner_s = "Artist(s)"
    {$lng.lbl_partner_s}
    {elseif $v.usertype eq 'C' && $v.is_registered eq 'Y'}
    {$lng.lbl_registered_customer_s}
    {elseif $v.usertype eq 'C' && $v.is_registered eq 'A'}
    {$lng.lbl_anonymous_customer_s}
    {elseif $v.usertype eq 'C' && $v.is_registered eq ''}
    {$lng.lbl_unregistered_customer_s}
    {/if}
    </FONT><BR>
    {/foreach}
    <BR>
    {/capture}
    { include file="menu.tpl" dingbats="dingbats_authentification.gif" menu_title=$lng.lbl_users_online menu_content=$smarty.capture.menu }
    {/if}

    But where is {$lng.lbl_provider_s} it will output "provider(s)" but instead of using that variable (that i cant find where its located his declaration) i want to output "Artist(s)"...

    Help me please !

  2. #2
    SitePoint Zealot
    Join Date
    Aug 2005
    Location
    Bucharest, Romania
    Posts
    118
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    somewhere in you code you have $smarty->assign('variable_name','variable_value').
    You need to change that, or just replace {$...} with the string you need.
    (Instead of $smarty you could have $tpl or some variable that is a smarty instance...)


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •