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

Removing the "Users Online" box......

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-12-2005, 04:34 PM
 
TL408 TL408 is offline
 

X-Adept
  
Join Date: Jan 2005
Posts: 549
 

Default Removing the "Users Online" box......

I just set up the newest version of X-Cart sample store and would like to remove the "Users Online" box off the top right hand corner. Can some one please point me to the right directly.

Thanks for your help.

-Tuan
__________________
Win2003 IIS6, PHP 5.2.3, MySQL 5.0.45 and X-Cart 4.1.9
Reply With Quote
  #2  
Old 01-12-2005, 06:05 PM
 
balinor balinor is offline
 

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

Default

In the Admin interface, click on Modules. Turn off the Users Online.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 01-12-2005, 06:17 PM
 
TL408 TL408 is offline
 

X-Adept
  
Join Date: Jan 2005
Posts: 549
 

Default

Quote:
Originally Posted by balinor
In the Admin interface, click on Modules. Turn off the Users Online.
Thanks Ryan, I appreciate your help. Is it possible to turn it off only for the customers browsing the webstore, AND still keep it available within the Admin Console?
__________________
Win2003 IIS6, PHP 5.2.3, MySQL 5.0.45 and X-Cart 4.1.9
Reply With Quote
  #4  
Old 01-12-2005, 06:59 PM
 
balinor balinor is offline
 

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

Default

Yep, open up home.tpl and delete or comment out this code:

Code:
{if $active_modules.Users_online ne ""} { include file="modules/Users_online/menu_users_online.tpl" }
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 01-12-2005, 08:40 PM
 
TL408 TL408 is offline
 

X-Adept
  
Join Date: Jan 2005
Posts: 549
 

Default

Thanks. Can you please let me know which home.tpl file I need to edit. There are more than one home.tpl file under the "skin1" directory.

Thanks
-Tuan

Quote:
Originally Posted by balinor
Yep, open up home.tpl and delete or comment out this code:

Code:
{if $active_modules.Users_online ne ""} { include file="modules/Users_online/menu_users_online.tpl" }
__________________
Win2003 IIS6, PHP 5.2.3, MySQL 5.0.45 and X-Cart 4.1.9
Reply With Quote
  #6  
Old 01-13-2005, 03:35 AM
 
balinor balinor is offline
 

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

Default

Sorry, that is Customer/home.tpl
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #7  
Old 01-13-2005, 06:45 AM
 
TL408 TL408 is offline
 

X-Adept
  
Join Date: Jan 2005
Posts: 549
 

Default

Quote:
Originally Posted by balinor
Sorry, that is Customer/home.tpl
Thanks Ryan.

If I deleted both lines as listed above, than I would get a blank screen on the main page. However, if I just remove the second line only then it would work as you described, no "Users Online" box for users browsing the store.

Can you please confirm that is correct, only the second line that is needed to remove? Thanks again for all your help, Ryan.

Not Working and gives a blank screen on the main page
Code:
{if $active_modules.Users_online ne ""} { include file="modules/Users_online/menu_users_online.tpl" }

Work as described. The "Users Online" box is gone.
Code:
{ include file="modules/Users_online/menu_users_online.tpl" }
__________________
Win2003 IIS6, PHP 5.2.3, MySQL 5.0.45 and X-Cart 4.1.9
Reply With Quote
  #8  
Old 01-13-2005, 06:50 AM
 
balinor balinor is offline
 

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

Default

Oh man, I'm sorry. Too much code yesterday. I forgot the closing {/if} tag, that is why your screen went blank The correct code to remove is:

Code:
{if $active_modules.Users_online ne ""} { include file="modules/Users_online/menu_users_online.tpl" } {/if}

Sorry about that!
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #9  
Old 01-13-2005, 06:58 AM
 
TL408 TL408 is offline
 

X-Adept
  
Join Date: Jan 2005
Posts: 549
 

Default

Quote:
Originally Posted by balinor
Sorry, that is Customer/home.tpl
Thanks, that works like a charm.

Ryan, are you familiar with MySQL and OSCommerce as well? I am looking for a consultant who can help me take on the task of converting my OSCommerce data over to X-Cart format. Currently, my production OSCommerce store has approximately 1800 customers records, 1200 orders and 250 products. I would like to export all this data and have it re-imported back into my X-Cart database.

If you are interested, let me know what your rate would be. Thanks
__________________
Win2003 IIS6, PHP 5.2.3, MySQL 5.0.45 and X-Cart 4.1.9
Reply With Quote
  #10  
Old 02-02-2005, 02:08 PM
 
Khar Khar is offline
 

Advanced Member
  
Join Date: Nov 2004
Posts: 57
 

Default

Quote:
Originally Posted by balinor
Yep, open up home.tpl and delete or comment out this code:

Code:
{if $active_modules.Users_online ne ""} { include file="modules/Users_online/menu_users_online.tpl" }

How can I COMMENT OUT something?

Thanks
__________________
tekmind

X-cart 4.0.7 [unix]
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 12:07 PM.

   

 
X-Cart forums © 2001-2020