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 Online Question (https://forum.x-cart.com/showthread.php?t=46103)

JohnHilton 03-07-2009 11:41 AM

Users Online Question
 
I apologize if this is in the wrong place. I have read this post the FAQ item on this, but I'm uncertain if it is working correctly.

I have changed rectangle_bottom.tpl to have "{if $active_modules.Users_online ne "" and $usertype ne "C"}"

The "Users online: 1 unregistered customer(s)" still shows up at the bottom on the front-end. In fact, the only changes seems to be taking effect on the administrative end.

In other words, I have "<td>{include file="modules/Users_online/menu_users_online.tpl"} test</td>" which produces "Users online: 1 unregistered customer(s) , 0 administrator(s) test" on the admin side, but "Users online: 1 unregistered customer(s)" on the front-end.

The only thing that makes it go away from the front-end is disabling the Users Online Module in the settings.

Any ideas? Is there something else other than rectangle_bottom.tpl at work here?

balinor 03-07-2009 01:15 PM

Re: Users Online Question
 
Pretty sure that doesn't apply to 4.2, as it is a CSS template, shouldn't have any tables in it - rectangle_bottom may be a relic of the 4.1 version. Use Firebug or Webmaster mode to determine exactly what template users online resides in 4.2

Moving to Template editing

cflsystems 03-07-2009 04:22 PM

Re: Users Online Question
 
You are editing the wrong tpl file. In 4.2 - edit /skin1/customer/home.tpl
The code is right below <div id="footer">

JohnHilton 03-14-2009 12:31 PM

Re: Users Online Question
 
Thank you. I've got it working now.

gwolf70 11-05-2010 05:52 PM

Re: Users Online Question
 
I just want to disabling the users online, because I don't want potential visitors seeing that we only have 5 or 6 visitors at the homepage.

What I did:

I commented the following line at the file home.tpl located at

httpdocs/skin/common_files/customer/home.tpl

X-cart version 4.4.1

<div id="footer">

<!-- {if $active_modules.Users_online}
{include file="modules/Users_online/menu_users_online.tpl"}-->
{/if}

{include file="customer/bottom.tpl"}

</div>

Now it's showing at the back end but it's not showing at the front end.

Question:
Did I screw something else by doing this?

Sorry I'm not a PHP expert.

Thanks

cflsystems 11-05-2010 07:05 PM

Re: Users Online Question
 
Do not use <!-- xxxx -> to coment out code in the templates.
Use {* code here *}

gwolf70 11-05-2010 07:12 PM

Re: Users Online Question
 
I used

{* code here *} and I get a blank page ?

cflsystems 11-06-2010 11:25 AM

Re: Users Online Question
 
Quote:

Originally Posted by gwolf70
<!-- {if $active_modules.Users_online}
{include file="modules/Users_online/menu_users_online.tpl"}-->
{/if}



You are commenting out the whole {if} but you left the closing {/if} out. It should look like this
{*
{if $active_modules.Users_online}
{include file="modules/Users_online/menu_users_online.tpl"}
{/if}
*}

masada3336 12-05-2010 03:15 PM

Re: Users Online Question
 
Am I doing something wrong? I'm trying to find where to see the users online, but I can't find it in my admin side anywhere! I have advance statistics turned on, but for the life of me, it's nowhere to be found and the "users online" that used to be on the bottom of my 4.4.11 admin side isn't there now in my 4.4.1.


All times are GMT -8. The time now is 05:19 PM.

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