X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   New side box title problem (https://forum.x-cart.com/showthread.php?t=50708)

FTI 11-13-2009 07:35 AM

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?

cflsystems 11-13-2009 10:18 AM

Re: New side box title problem
 
{include file="customer/menu_dialog.tpl" title=$lbl.who_is_online content=$smarty.capture.menu}

FTI 11-13-2009 11:39 AM

Re: New side box title problem
 
Thanks, it worked perfectly. :)


All times are GMT -8. The time now is 11:09 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.