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

Users Online Question

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-07-2009, 11:41 AM
 
JohnHilton JohnHilton is offline
 

Newbie
  
Join Date: Mar 2009
Posts: 4
 

Default 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?
__________________
X-Cart Gold 4.2.0
X-AOM 4.2.0
X-Offers 4.2.0
Reply With Quote
  #2  
Old 03-07-2009, 01:15 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default 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
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 03-07-2009, 04:22 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default 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">
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #4  
Old 03-14-2009, 12:31 PM
 
JohnHilton JohnHilton is offline
 

Newbie
  
Join Date: Mar 2009
Posts: 4
 

Default Re: Users Online Question

Thank you. I've got it working now.
__________________
X-Cart Gold 4.2.0
X-AOM 4.2.0
X-Offers 4.2.0
Reply With Quote
  #5  
Old 11-05-2010, 05:52 PM
 
gwolf70 gwolf70 is offline
 

Member
  
Join Date: Aug 2009
Posts: 10
 

Default 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
__________________
THE WOLF
4.4.1
Reply With Quote
  #6  
Old 11-05-2010, 07:05 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: Users Online Question

Do not use <!-- xxxx -> to coment out code in the templates.
Use {* code here *}
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #7  
Old 11-05-2010, 07:12 PM
 
gwolf70 gwolf70 is offline
 

Member
  
Join Date: Aug 2009
Posts: 10
 

Default Re: Users Online Question

I used

{* code here *} and I get a blank page ?
__________________
THE WOLF
4.4.1
Reply With Quote
  #8  
Old 11-06-2010, 11:25 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default 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}
*}
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #9  
Old 12-05-2010, 03:15 PM
 
masada3336 masada3336 is offline
 

Senior Member
  
Join Date: Jan 2009
Posts: 115
 

Default 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.
__________________
4.4.5 - with Customized Smart Template
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 02:21 AM.

   

 
X-Cart forums © 2001-2020