View Single Post
  #1  
Old 11-13-2009, 07:35 AM
  FTI's Avatar 
FTI FTI is offline
 

Senior Member
  
Join Date: Oct 2009
Location: Plovdiv, Bulgaria
Posts: 153
 

Default New side box title problem

Hello, I'm adding a new side box to the left bar of my site, but there is a problem with displaing the title of the box. Check the last 3 rows of my code:

PHP Code:
{*
$Idmenu_users_online.tpl,v 1.10 2008/10/29 16:50:56 max Exp $
vimset ts=2 sw=2 sts=2 et:
*}
{
capture name=menu}
{if 
$users_online}
  <
div class="uo-box">
      <
strong>{$lng.lbl_users_online}:</strong>&nbsp;
    {foreach 
from=$users_online item=v name="_users"}
        <
span class="item nowrap">{$v.count}
        {if 
$v.usertype eq 'A' || ($v.usertype eq 'P' && $active_modules.Simple_Mode)}
          {
$lng.lbl_admin_s}
        {elseif 
$v.usertype eq 'P'}
          {
$lng.lbl_provider_s
        {elseif 
$v.usertype eq 'B'}
          {
$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}
        {if 
not $smarty.foreach._users.last}, {/if}
      </
span>
    {/foreach}
  </
div>
{/if}
{/
capture}
  {include 
file="customer/menu_dialog.tpl" title="{$lng.who_is_online}; " content=$smarty.capture.menu

How to avoid getting an error and to display the title properly as a language variable?
__________________
Version 4.2.3
X-Cart Gold

Version 4.3.1
X-Cart Gold
Reply With Quote