X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Free X-Cart Mod - User Names in Who's Online (https://forum.x-cart.com/showthread.php?t=34886)

HaMoDeY 11-17-2007 04:54 PM

Re: Free X-Cart Mod - User Names in Who's Online
 
Hi there, I add the code with no problems, but I don't know where should I go to see who's online ? Thanks

TA 11-17-2007 05:38 PM

Re: Free X-Cart Mod - User Names in Who's Online
 
Take a look at the bottom of the page in your Admin.

sunset 11-17-2007 10:31 PM

Re: Free X-Cart Mod - User Names in Who's Online
 
Brilliant - thanks so much

HaMoDeY 11-18-2007 06:13 AM

Re: Free X-Cart Mod - User Names in Who's Online
 
Awesome , Thanks a lot

connemara 03-25-2008 09:21 AM

Re: Free X-Cart Mod - User Names in Who's Online
 
This looks great Jon!
While I appreciate that stats from this module are not accurate, it is a little useful, but we want it only to show in admin, not customer side.
Is this an if/then statement and where would I change that?
Thank you.
Connie

Jon 03-25-2008 09:39 AM

Re: Free X-Cart Mod - User Names in Who's Online
 
By default it shouldn't show details for customers. Perhaps your logged into customer side as an admin?

connemara 03-25-2008 10:31 AM

Re: Free X-Cart Mod - User Names in Who's Online
 
Hi Jon:
I had the module turned off because I did not want users online showing on customer side which it does just before the footer links. Just want that showing in admin before I add the code you recommended. This is the part in the rectangle_bottom.tpl
</tr>
{if $active_modules.Users_online ne ""}
<tr>
<td>{include file="modules/Users_online/menu_users_online.tpl"}</td>
</tr>
{else}

Connie

Jon 03-25-2008 10:36 AM

Re: Free X-Cart Mod - User Names in Who's Online
 
I understand. I believe this will do the trick:

FIND:

Code:

[FONT='Calibri','sans-serif']{if $active_modules.Users_online ne ""} [/font]
[FONT='Calibri','sans-serif']

[/font]
[FONT='Calibri','sans-serif'][/font]
[FONT='Calibri','sans-serif']Change to:[/font]
[FONT='Calibri','sans-serif'][/font]
[FONT='Calibri','sans-serif']
Code:

[/font]
[FONT='Calibri','sans-serif'][FONT='Calibri','sans-serif']{if $active_modules.Users_online ne "" AND $usertype ne "C"} [/font][/font]
[FONT='Calibri','sans-serif'][FONT='Calibri','sans-serif']

[/font][/font]

connemara 03-25-2008 10:41 AM

Re: Free X-Cart Mod - User Names in Who's Online
 
I just used this part: {if $active_modules.Users_online ne "" AND $usertype ne "C"}
and that did the job perfectly. THANK YOU!
Connie

designtheweb 03-31-2008 03:47 AM

Re: Free X-Cart Mod - User Names in Who's Online
 
thanks Jon and very nice too.


All times are GMT -8. The time now is 04:01 AM.

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