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)
-   -   Users on line field (https://forum.x-cart.com/showthread.php?t=58911)

yunitor1 04-14-2011 12:49 PM

Users on line field
 
Sorry to ask a same question a million first time how to remove "users on line" from main page and see it on admin page only but the answer I found on this forum seams doesn't match to 4.4.2 version.

Open up rectangle_bottom.tpl and replace this:
{if $active_modules.Users_online ne ""}
with this:
{if $active_modules.Users_online ne "" and $usertype ne "C"}

I couldn't find these lines in directory rectangle_bottom.tpl
Can some one help me please?

cherie 04-14-2011 01:15 PM

Re: Users on line field
 
Looks like it's in customer/home.tpl and just slightly different so you should be able to find it. :)

yunitor1 04-18-2011 09:49 PM

Re: Users on line field
 
Thank you Cherie. I found the file and proper line, I replaced it as saying the instruction but happen nothing. User online still shown on the main page. I'm sorry I just a newbie :)
Thanks

qualiteam 04-25-2011 05:54 AM

Re: Users on line field
 
Please make sure the "Do not check if templates are changed (Smarty compile_check)." option is disabled on the "Settings" -> "General settings" page.

yunitor1 04-26-2011 07:47 AM

Re: Users on line field
 
(Smart compile_check) is unchecked but customer online still showing on home page
Thanks in advance fore your help.

JWait 04-26-2011 08:31 AM

Re: Users on line field
 
X-cart is up their old tricks.. if you use a custom template, for instance "Vivid Dreams - Aquamarine", users online is also in the skin/vivid_dreams_aquamarine/customer/content.tpl template near the bottom.

yunitor1 04-26-2011 08:51 AM

Re: Users on line field
 
Thanks JWait, it works. I could remove User on line from home page but I would like to see how many customers on line on admin page. Could you help me with this?
Regards

JWait 04-26-2011 09:07 AM

Re: Users on line field
 
I just commented out the "user online" part in content.tpl using {* and *}
Like this...
{* {if $active_modules.Users_online}
{include file="modules/Users_online/menu_users_online.tpl"}
{/if} *}

JWait 04-26-2011 09:27 AM

Re: Users on line field
 
I just noticed there is a template in skin/common_files/modules/menu_users_online.tpl that you can modify using the "if" statements like the beginning of this thread. If you modify it that way, in that .tpl it shouldn't matter what custom template you use.

yunitor1 04-27-2011 07:25 AM

Re: Users on line field
 
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.

cherie 04-27-2011 07:33 AM

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.

yunitor1 04-27-2011 08:22 AM

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

JWait 04-27-2011 06:49 PM

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.

qualiteam 04-28-2011 02:48 AM

Re: Users on line field
 
In case of 4.4.x you should alter the "skin/common_files/bottom.tpl" template.

yunitor1 04-28-2011 08:51 AM

Re: Users on line field
 
It works!!! Thanks to everybody who participate to solve my case, specially for JWait.
Appreciate your assistance guys.

timbrrr 03-30-2012 10:12 PM

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.

cherie 03-30-2012 11:28 PM

Re: Users on line field
 
http://forum.x-cart.com/showthread.php?p=314893#post314893

yunitor1 03-31-2012 02:40 AM

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.

qualiteam 04-06-2012 02:26 AM

Re: Users on line field
 
You can use Webmaster mode and Firebug to find the exact template.


All times are GMT -8. The time now is 08:43 AM.

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