Page 34 of 86 FirstFirst ... 2432333435364484 ... LastLast
Results 331 to 340 of 858
  1. #331
    Join Date
    Dec 2006
    Posts
    56
    Plugin Contributions
    0

    Default Re: User tracking mod

    Quote Originally Posted by dedj View Post
    nice you found the problem, I've been annoyed for some time about that.
    could you please write down more detailed on what to change that string to?
    I'm not following your solution exactly.
    thanks
    Dejan
    For figuring out the time that suits your timezone just remove 28800 and check what is displayed then. Keep in mind 28800 seconds is 8 hours, figuring out the right time instead (in seconds) should be easy.

    My server is hosted in New York, converting 0 with date gave me 19:00:00 and adding 8 hours gave me a 3 hours offset. So I added 5 hours only and it worked fine.

    I don't remember having this problem before, I upgraded the mod to the latest version before Christmas at the same time when my provider moved to PHP 5.x (from 4.x) so I am not sure which one causes the problem.

    I don't have a general solution, all I know date('H:i:s', mktime(0, 0, 0)) gives me 00:00:00. A general solution needs more work.

    There are a other timezone issues as well, I always would have liked an option to set the user timezone as well so that the Start and End times can be in the timezone of the person who runs the mod in the Admin interface.

  2. #332
    Join Date
    Dec 2006
    Posts
    56
    Plugin Contributions
    0

    Default Re: User tracking mod

    Does anybody know who is maintaining this mod currently?

  3. #333
    Join Date
    Dec 2006
    Posts
    56
    Plugin Contributions
    0

    Default Re: User tracking mod

    Hi All,

    Anybody has trouble filtering the bots out wth the latest version (1.3.6.2) from the Zencart downloads area?

    I see the Google bot being at 400+ hits, yesterday I had the same with the Yahoo crawler.

    I changed the tpl_footer.php code to:

    <?php if (ZEN_CONFIG_USER_TRACKING == 'true' && !$spider_flag) { zen_update_user_tracking(); } ?>

    (note the spider_flag addition, it used to be like this with previous versions, seems to be removed from 1.3.6.2).

    It does not seem to work, however it worked with previous versions of this mod.

    Any ideas?

    Thanks

  4. #334
    Join Date
    Jan 2007
    Posts
    143
    Plugin Contributions
    0

    Default Re: User tracking mod

    Quote Originally Posted by Laszlo View Post
    Hi All,

    Anybody has trouble filtering the bots out wth the latest version (1.3.6.2) from the Zencart downloads area?

    I see the Google bot being at 400+ hits, yesterday I had the same with the Yahoo crawler.

    I changed the tpl_footer.php code to:

    <?php if (ZEN_CONFIG_USER_TRACKING == 'true' && !$spider_flag) { zen_update_user_tracking(); } ?>

    (note the spider_flag addition, it used to be like this with previous versions, seems to be removed from 1.3.6.2).

    It does not seem to work, however it worked with previous versions of this mod.

    Any ideas?

    Thanks
    Cant really help you Laszlo but I am using (1.3.6.2) and don't see any of the bots. Something I done from this forum.

  5. #335
    Join Date
    Aug 2004
    Posts
    262
    Plugin Contributions
    0

    Default Re: User tracking mod

    Quote Originally Posted by Laszlo View Post
    Hi All,

    Anybody has trouble filtering the bots out wth the latest version (1.3.6.2) from the Zencart downloads area?

    I see the Google bot being at 400+ hits, yesterday I had the same with the Yahoo crawler.

    I changed the tpl_footer.php code to:

    <?php if (ZEN_CONFIG_USER_TRACKING == 'true' && !$spider_flag) { zen_update_user_tracking(); } ?>

    (note the spider_flag addition, it used to be like this with previous versions, seems to be removed from 1.3.6.2).

    It does not seem to work, however it worked with previous versions of this mod.

    Any ideas?

    Thanks
    I am having this same problem. If anyone knows a fix, please pm me.

    Thanks

  6. #336
    Join Date
    Apr 2007
    Location
    Herts. UK
    Posts
    890
    Plugin Contributions
    4

    Default Re: User tracking mod

    Quote Originally Posted by Laszlo View Post
    For all those people who have problems with the time offsets in total time and and idle time, the problem is the code that generates the html there is poorly written.

    It is towards the end of admin/user_tracking.php, search for "28800".

    The person who wrote this code used 28800 seconds (8 hours) offset as that presumably suited their timezone. With a bit of experimenting you can figure out what value works for you (provided you site runs on servers in the same timezone only).

    The real solution is to change this code to be timezone neutral (work in every timezone).
    I recently had to install this mod for someone so I had a look at this bug. It is caused because the code is using the date() function to format something that is not a timestamp. To fix the code fully edit admin/user_tracking.php and then change the line (at about line 324) that says...
    PHP Code:
        <td class="dataTableContent" colspan="2" valign="top"><?php echo date('H:i:s', (time() - $ut['value']['end_time']+ 28800)); ?></td>
    ..to..
    PHP Code:
        <td class="dataTableContent" colspan="2" valign="top"><?php $dt=time() - $ut['value']['end_time']; printf("%02d:%02d:%02d",$dt/3600, ($dt 3600)/60$dt 60); ?></td>
    ...and the line (at about line 330) that says...
    PHP Code:
        <td class="dataTableContent" colspan="2" valign="top"><?php echo date('H:i:s', ($ut['value']['end_time'] - $ut['value']['time_entry'] + 28800)); ?></td>
    ...to...
    PHP Code:
        <td class="dataTableContent" colspan="2" valign="top"><?php $dt=$ut['value']['end_time'] - $ut['value']['time_entry']; printf("%02d:%02d:%02d",$dt/3600, ($dt 3600)/60$dt 60);?></td>
    Hope that helps.

    Regards,
    Christian.

  7. #337
    Join Date
    Jun 2004
    Posts
    25
    Plugin Contributions
    0

    Default Re: User tracking mod

    Does anyone know how to stop it from tracking bots?

    Previous versions had an option in one of the config files.

  8. #338
    Join Date
    Aug 2004
    Location
    Saint Petersburg, Russia
    Posts
    1,786
    Plugin Contributions
    13

    Default Re: User tracking mod

    Quote Originally Posted by Tropheus View Post
    Does anyone know how to stop it from tracking bots?

    Previous versions had an option in one of the config files.
    Yes.
    Code:
    <?php if (ZEN_CONFIG_USER_TRACKING == 'true' && !$spider_flag) { zen_update_user_tracking(); } ?>
    But you should know that the $spider_flag determined only if SESSION_FORCE_COOKIE_USE = 'False' and SESSION_BLOCK_SPIDERS == 'True'. Otherwise, you should setup himself this variable. The code for this you can get from init_sessions.php.

  9. #339
    Join Date
    Jun 2004
    Posts
    25
    Plugin Contributions
    0

    Default Re: User tracking mod

    Thank you.

    I cannot get my head quite round it though. My init_sessions.php file has not been changed so:
    SESSION_FORCE_COOKIE_USE = 'True' and
    SESSION_BLOCK_SPIDERS == 'True'

    Should I change:
    SESSION_FORCE_COOKIE_USE = 'False'

    Or if I add to -- footer.php?
    <?php if (ZEN_CONFIG_USER_TRACKING == 'true' && !$spider_flag) { zen_update_user_tracking(); } ?>

    There would be no need to modify the init_sessions.php file or would I need to do both files?

  10. #340
    Join Date
    Jan 2008
    Posts
    22
    Plugin Contributions
    0

    Default Re: User tracking mod

    My admin/user_tracking_config.php is blanc after installing User Tracking v.1.3.6.2.

    I've done everything as it says in the ReadMe.txt.

    Am i missing something?

 

 
Page 34 of 86 FirstFirst ... 2432333435364484 ... LastLast

Similar Threads

  1. User Tracking Mod only shows the Admin Session
    By Griff1324 in forum General Questions
    Replies: 6
    Last Post: 29 May 2008, 10:56 PM
  2. User Tracking Mod issue: repeated Logins: Admin: View Sessions
    By dharma in forum All Other Contributions/Addons
    Replies: 8
    Last Post: 20 Feb 2008, 04:48 AM
  3. Search log mod vs. user tracking
    By ashton0603 in forum General Questions
    Replies: 4
    Last Post: 30 Jan 2008, 08:43 AM
  4. Google Analytics vs User Tracking mod
    By miles in forum General Questions
    Replies: 1
    Last Post: 15 Jun 2007, 10:09 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR