View Single Post
  #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