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)
-   -   Users_Online module (https://forum.x-cart.com/showthread.php?t=25885)

jasonroy 10-17-2006 01:25 PM

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?

jasonroy 10-17-2006 01:44 PM

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.

balinor 10-17-2006 01:51 PM

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

jasonroy 10-17-2006 01:56 PM

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.


All times are GMT -8. The time now is 06:08 PM.

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