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)
-   -   Removing the "Users Online" box...... (https://forum.x-cart.com/showthread.php?t=11434)

TL408 01-12-2005 04:34 PM

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

balinor 01-12-2005 06:05 PM

In the Admin interface, click on Modules. Turn off the Users Online.

TL408 01-12-2005 06:17 PM

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?

balinor 01-12-2005 06:59 PM

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" }


TL408 01-12-2005 08:40 PM

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" }



balinor 01-13-2005 03:35 AM

Sorry, that is Customer/home.tpl :)

TL408 01-13-2005 06:45 AM

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. :D

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" }

balinor 01-13-2005 06:50 AM

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!

TL408 01-13-2005 06:58 AM

Quote:

Originally Posted by balinor
Sorry, that is Customer/home.tpl :)

Thanks, that works like a charm. :D

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 :)

Khar 02-02-2005 02:08 PM

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


All times are GMT -8. The time now is 07:36 AM.

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