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

Users on line field

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #11  
Old 04-27-2011, 07:33 AM
  cherie's Avatar 
cherie cherie is offline
 

X-Wizard
  
Join Date: May 2003
Location: USA
Posts: 1,534
 

Default Re: Users on line field

Those are Smarty comments:

http://www.smarty.net/docsv2/en/language.basic.syntax.tpl#language.syntax.comments

Used here to disable code.
__________________
redlimeweb.com
custom mods and design integration
4.7 linux
Reply With Quote
  #12  
Old 04-27-2011, 08:22 AM
 
yunitor1 yunitor1 is offline
 

Member
  
Join Date: Mar 2011
Location: Singapore
Posts: 28
 

Default Re: Users on line field

Actually I understood that {*comment*} is NOT displayed in the final output of the template. I just didn't understand how is can help me in my case.
Thank you
__________________
4.4.2-gold
Reply With Quote
  #13  
Old 04-27-2011, 06:49 PM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: Users on line field

Quote:
Originally Posted by yunitor1
It doesn't work. Perhaps I'm doing something wrong. Could you be so kind to indicate more specific what I have to change and in which template. I didn't understand about {*and*} and in file skin/common_files/modules/menu_users_online.tpl I didn't find which line I have to replace.
Will appreciate your assistance.

When you use {* and *} nothing that is between them gets executed. As I said, it would probably be better to modify skin/common_files/modules/menu_users_online.tpl like I did below...

At the beginning of the file, right before where it says...

<strong>{$lng.lbl_users_online}:</strong>&nbsp;

make it say...

{if $active_modules.Users_online ne "" and $usertype ne "C"}
<strong>{$lng.lbl_users_online}:</strong>&nbsp;

Then, at the end of the file right before the final </div>, add a {/if} so it looks like this...

{if not $smarty.foreach._users.last}, {/if}
</span>
{/foreach}
{/if} <<<<--- THIS IS WHERE TO ADD IT (but not this text)
</div>

{/if}


By changing this template instead of modifying content.tpl is will not show users online to customers even if you change skins later.
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
  #14  
Old 04-28-2011, 02:48 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Users on line field

In case of 4.4.x you should alter the "skin/common_files/bottom.tpl" template.
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
  #15  
Old 04-28-2011, 08:51 AM
 
yunitor1 yunitor1 is offline
 

Member
  
Join Date: Mar 2011
Location: Singapore
Posts: 28
 

Default Re: Users on line field

It works!!! Thanks to everybody who participate to solve my case, specially for JWait.
Appreciate your assistance guys.
__________________
4.4.2-gold
Reply With Quote
  #16  
Old 03-30-2012, 10:12 PM
 
timbrrr timbrrr is offline
 

eXpert
  
Join Date: Feb 2006
Posts: 277
 

Default Re: Users on line field

Followed this through from top to bottom, and still cannot get rid of Users online.
Using the basic skin/3 column layout.

This is the skin/common_files/bottom.tpl
What needs to be changed? Nothing affects the display on the storefront. This is driving me over the edge.. I've never had a problem getting rid of this before now.

--------------------------------------------------------------------
<table width="100%" cellpadding="0" cellspacing="0">

{if $active_modules.Users_online ne "" or $login and $all_languages_cnt gt 1}
<tr>
<td>
<table width="100%">
<tr>
{if $active_modules.Users_online ne ""}
<td class="users-online-box">
{include file="modules/Users_online/menu_users_online.tpl"}
</td>
{/if}

-----------------------------------------

Could future releases of the cart have this turned OFF by default? I've yet to see anyone use this on a live site.
__________________
X-Cart Gold 4.6.3
Codero dedicated server
Reply With Quote
  #17  
Old 03-30-2012, 11:28 PM
  cherie's Avatar 
cherie cherie is offline
 

X-Wizard
  
Join Date: May 2003
Location: USA
Posts: 1,534
 

Default Re: Users on line field

http://forum.x-cart.com/showthread.php?p=314893#post314893
__________________
redlimeweb.com
custom mods and design integration
4.7 linux
Reply With Quote
  #18  
Old 03-31-2012, 02:40 AM
 
yunitor1 yunitor1 is offline
 

Member
  
Join Date: Mar 2011
Location: Singapore
Posts: 28
 

Default Re: Users on line field

I'm using vivid dream chromo and user online in this skin is hidden in other place. I spent a wile looking where it can be located for your skin but really couldn't find, it require more time. In my skin I spent about two days to find it. I suggest you open a new ticket on forum . Someone who use 3-columns skin can be more helpful.
__________________
4.4.2-gold
Reply With Quote
  #19  
Old 04-06-2012, 02:26 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Users on line field

You can use Webmaster mode and Firebug to find the exact template.
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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:26 PM.

   

 
X-Cart forums © 2001-2020