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

Users_Online module

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-17-2006, 01:25 PM
  jasonroy's Avatar 
jasonroy jasonroy is offline
 

Senior Member
  
Join Date: Sep 2006
Location: Tualatin, Oregon
Posts: 147
 

Default Users_Online module

I don't know if this is the right section, feel free to move.

I am trying to figure out if I can change the characteristics of the users online module. Right now if I enable the module, it displays the # of users online to anyone who visits the store.

I do not want customers to see it. If I disable the module, mission accomplished....but...

I would really like to still be able to track it on the administrator side, but I haven't really seen a way to make it show on the admin side only.

any insight on if this is possible or if any custom mod exists?
__________________
rjroffroad.com
x-cart 4.1.3
+ez checkout
+remember anonymous carts
Reply With Quote
  #2  
Old 10-17-2006, 01:44 PM
  jasonroy's Avatar 
jasonroy jasonroy is offline
 

Senior Member
  
Join Date: Sep 2006
Location: Tualatin, Oregon
Posts: 147
 

Default Re: Users_Online module

well, I guess you can move this to completed mods or something cause I figured out what to do.

In File /skin1/rectangle_bottom.tpl find this code and Cut it out

Quote:
{if $active_modules.Users_online ne ""}
<tr>
<td>{include file="modules/Users_online/menu_users_online.tpl"}</td>
</tr>
{else}
<tr>
<td><img src="{$ImagesDir}/spacer.gif" class="Spc" alt="" /></td>
</tr>
{/if}

I then pasted the code I cut into /skin1/head_admin.tpl

find code

Quote:
{if $login ne ""}
<td align="right">{include file="authbox_top.tpl"}</td>
<td width="10"><img src="{$ImagesDir}/spacer.gif" width="10" height="1" alt="" /></td>
{/if}
</tr>

After that, add...

Quote:
{if $active_modules.Users_online ne ""}
<tr>
<td colspan="3">{include file="modules/Users_online/menu_users_online.tpl"}</td>
</tr>
{else}
<tr>
<td><img src="{$ImagesDir}/spacer.gif" class="Spc" alt="" /></td>
</tr>
{/if}

This is the same code that I cut out of rectangle_bottom.tpl, the only difference is that on the second line i added a colspan="3" to the td tag, in a 3 column design this makes the users online bar stretch the full width of the window.
__________________
rjroffroad.com
x-cart 4.1.3
+ez checkout
+remember anonymous carts
Reply With Quote
  #3  
Old 10-17-2006, 01:51 PM
 
balinor balinor is offline
 

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

Default Re: Users_Online module

You can also just replace this:

{if $active_modules.Users_online ne ""}

with this:

{if $active_modules.Users_online ne "" and $usertype ne "C"}
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #4  
Old 10-17-2006, 01:56 PM
  jasonroy's Avatar 
jasonroy jasonroy is offline
 

Senior Member
  
Join Date: Sep 2006
Location: Tualatin, Oregon
Posts: 147
 

Default Re: Users_Online module

Quote:
Originally Posted by balinor
You can also just replace this:

{if $active_modules.Users_online ne ""}

with this:

{if $active_modules.Users_online ne "" and $usertype ne "C"}

haha, guess that would've been alot less work, but oh well, I kind of like having it sitting on the top of the screen.
__________________
rjroffroad.com
x-cart 4.1.3
+ez checkout
+remember anonymous carts
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 10:20 AM.

   

 
X-Cart forums © 2001-2020