Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

New side box title problem

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #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
  #2  
Old 11-13-2009, 10:18 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: New side box title problem

{include file="customer/menu_dialog.tpl" title=$lbl.who_is_online content=$smarty.capture.menu}
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote

The following user thanks cflsystems for this useful post:
FTI (11-13-2009)
  #3  
Old 11-13-2009, 11:39 AM
  FTI's Avatar 
FTI FTI is offline
 

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

Default Re: New side box title problem

Thanks, it worked perfectly.
__________________
Version 4.2.3
X-Cart Gold

Version 4.3.1
X-Cart Gold
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 07:32 AM.

   

 
X-Cart forums © 2001-2020