| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Users Online Question | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
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 |
|||||||
#2
|
|||||||
|
|||||||
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 |
|||||||
#3
|
|||||||||
|
|||||||||
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 |
|||||||||
#4
|
|||||||
|
|||||||
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 |
|||||||
#5
|
|||||||
|
|||||||
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 |
|||||||
#6
|
|||||||||
|
|||||||||
Re: Users Online Question
Do not use <!-- xxxx -> to coment out code in the templates.
Use {* code here *}
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#7
|
|||||||
|
|||||||
Re: Users Online Question
I used
{* code here *} and I get a blank page ?
__________________
THE WOLF 4.4.1 |
|||||||
#8
|
|||||||||
|
|||||||||
Re: Users Online Question
Quote:
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 |
|||||||||
#9
|
|||||||
|
|||||||
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 |
|||||||
|
|||
X-Cart forums © 2001-2020
|