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

Free X-Cart Mod - User Names in Who's Online

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #11  
Old 11-17-2007, 04:54 PM
 
HaMoDeY HaMoDeY is offline
 

Newbie
  
Join Date: Nov 2007
Posts: 9
 

Default 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
__________________
X-Cart Gold 4.1.90
MySQL 5.0
Reply With Quote
  #12  
Old 11-17-2007, 05:38 PM
 
TA TA is offline
 

eXpert
  
Join Date: Apr 2006
Posts: 303
 

Default Re: Free X-Cart Mod - User Names in Who's Online

Take a look at the bottom of the page in your Admin.
__________________
v4.7.12
v5.4.x (In Dev)
Reply With Quote
  #13  
Old 11-17-2007, 10:31 PM
 
sunset sunset is offline
 

Advanced Member
  
Join Date: Jul 2007
Posts: 94
 

Default Re: Free X-Cart Mod - User Names in Who's Online

Brilliant - thanks so much
__________________
Sunset
X-Cart Gold v4.1.8
Reply With Quote
  #14  
Old 11-18-2007, 06:13 AM
 
HaMoDeY HaMoDeY is offline
 

Newbie
  
Join Date: Nov 2007
Posts: 9
 

Default Re: Free X-Cart Mod - User Names in Who's Online

Awesome , Thanks a lot
__________________
X-Cart Gold 4.1.90
MySQL 5.0
Reply With Quote
  #15  
Old 03-25-2008, 09:21 AM
  connemara's Avatar 
connemara connemara is offline
 

Senior Member
  
Join Date: Jan 2006
Location: Vancouver Island, Canada
Posts: 167
 

Default 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
__________________
Versions 4.7.6
multiple mods and customizations
Reply With Quote
  #16  
Old 03-25-2008, 09:39 AM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default 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?
Reply With Quote
  #17  
Old 03-25-2008, 10:31 AM
  connemara's Avatar 
connemara connemara is offline
 

Senior Member
  
Join Date: Jan 2006
Location: Vancouver Island, Canada
Posts: 167
 

Default 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
__________________
Versions 4.7.6
multiple mods and customizations
Reply With Quote
  #18  
Old 03-25-2008, 10:36 AM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default 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]
Reply With Quote
  #19  
Old 03-25-2008, 10:41 AM
  connemara's Avatar 
connemara connemara is offline
 

Senior Member
  
Join Date: Jan 2006
Location: Vancouver Island, Canada
Posts: 167
 

Default 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
__________________
Versions 4.7.6
multiple mods and customizations
Reply With Quote
  #20  
Old 03-31-2008, 03:47 AM
  designtheweb's Avatar 
designtheweb designtheweb is offline
 

Senior Member
  
Join Date: Mar 2005
Location: Sydney Australia
Posts: 132
 

Default Re: Free X-Cart Mod - User Names in Who's Online

thanks Jon and very nice too.
__________________
"The more you know - the less you pay"

Various websites using

4.66 Pro & 5
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 05:06 AM.

   

 
X-Cart forums © 2001-2020