Jump to content
Sign in to follow this  
Druide

User Tracking with Admin 1.31 Released

Recommended Posts

its obviously in this line in user_tracking.php:

 

<?php echo tep_image(DIR_WS_FLAGS . strtolower(geoip_country_code_by_addr($gi, $ut['value']['ip_address'])) . '.gif', geoip_country_name_by_addr($gi, $ut['value']['ip_address'])); ?> <?php echo geoip_country_name_by_addr($gi, $ut['value']['ip_address']); ?></td>


Reading is beneficial - Searching is enlightening

find answers at wiki.oscommerce.com/top

Share this post


Link to post
Share on other sites

Matti -

 

I haven't looked at originating URL yet, but I, too, seem to have trouble with that. I think it gets reset if/when the session is registered.

 

- G

Share this post


Link to post
Share on other sites

I have a problem, I got this to track the admin but it won't track my customers. Can anybody help??

Share this post


Link to post
Share on other sites

Greg, correct me if I am wrong but doesnt that completely destroy the originating url-functionality ?


"Use no way as way, have no limitation as limitation." - Bruce Lee

Share this post


Link to post
Share on other sites

Tracy,

 

i think you need to REBOOT your machine...lol


Robert

 

We all need to learn it once, how hard it may seem when you look at it, also you will master it someday ;)

Share this post


Link to post
Share on other sites

heh...

Thats the first thing I did... ok well mayb e the third.. but to no avail.. It is still doing it..

The page is there.. but when I click the download icon it goes to the

'The page cannot be found'

 

:(

 

Tracy


If life begins at 40..... What ends at 39????

Share this post


Link to post
Share on other sites

All my logs show total times and idele time in the 15:00 range, is this normal?


The king of kluge...

? Do you really know what is and isn't working in your store? ≡ ?

Share this post


Link to post
Share on other sites
All my logs show total times and idele time in the 15:00 range, is this normal?

 

that was in version 1.31 i think

 

didn't you upgraded ?


Robert

 

We all need to learn it once, how hard it may seem when you look at it, also you will master it someday ;)

Share this post


Link to post
Share on other sites
All my logs show total times and idele time in the 15:00 range, is this normal?

 

that was in version 1.31 i think

 

didn't you upgraded ?

 

using 1.33


The king of kluge...

? Do you really know what is and isn't working in your store? ≡ ?

Share this post


Link to post
Share on other sites
I've never really been able to make heads or tails of the idle times.  Mine all seem to start at 3:00...

 

is your Server 'Host' time the same as your timezone ?

 

I noticed before i put in the TIMEZONE hack that i had the same issue with my starting time

 

but after i set the time the same as my own TIMEZONE (EST), it all was the way it should be.

 

How that can happen ? it must be a calculation issue somewhere in the admin/user_tracking.php

 

Haven't found a real answer for it yet, still in dev to <SPAN <DIV the pages, not full time but when i feel like it...so a slow process IMAO

 

 

check your TABLE user_tracking in the field entry_time because thats where this problem starts.

This entry_time is set in includes/functions/user_tracking.php at the bottom of the file


Robert

 

We all need to learn it once, how hard it may seem when you look at it, also you will master it someday ;)

Share this post


Link to post
Share on other sites

another nice thing to do is:

 

BACKUP FIRST:

admin/includes/boxes/user_tracking.php

admin/user_tracking_config.php

 

add to your database

INSERT INTO configuration_group (configuration_group_id, configuration_group_title, configuration_group_description, sort_order, visible) VALUES (999, 'User Tracking', 'Admin User Tracking', 17, 1);

 

and delete from your admin/includes/boxes/user_tracking.php

this line

'<a href="' . tep_href_link(FILENAME_USER_TRACKING_CONFIG) . '" class="menuBoxContentLink">' . TEXT_USERTRACK_CONFIG . '</a><br>' .

 

so it will look like this

  if ($selected_box == 'user_tracking') {

   $contents[] = array('text'  => '<a href="' . tep_href_link(FILENAME_USER_TRACKING) . '" class="menuBoxContentLink">' . BOX_USER_TRACKING . '</a>');      

 }

 

Why ?

This to put your config options in your admin > configuration where they should be anyway ;)

 

now you can DELETE


Robert

 

We all need to learn it once, how hard it may seem when you look at it, also you will master it someday ;)

Share this post


Link to post
Share on other sites

Just downloaded V1.34 and I'm getting lots of errors when I click the user tracking link in admin

 

Warning: fopen("includes/GeoIP.dat", "rb") - No such file or directory in c:phpdevwwwcatalogadminincludesgeoip.inc on line 131



Warning: ftell(): supplied argument is not a valid File-Handle resource in c:phpdevwwwcatalogadminincludesgeoip.inc on line 95



Warning: fseek(): supplied argument is not a valid File-Handle resource in c:phpdevwwwcatalogadminincludesgeoip.inc on line 98



Warning: fread(): supplied argument is not a valid File-Handle resource in c:phpdevwwwcatalogadminincludesgeoip.inc on line 100



Warning: fseek(): supplied argument is not a valid File-Handle resource in c:phpdevwwwcatalogadminincludesgeoip.inc on line 117

 

Those above are just a small sample

what have I done wrong?

Share this post


Link to post
Share on other sites

1146 - Table 'coins_tv.TABLE_USER_TRACKING' doesn't exist

 

insert into TABLE_USER_TRACKING (customer_id, full_name, session_id, ip_address, time_entry, time_last_click, last_page_url, page_desc) values ('', 'Guest', 'e78b84f81fe97ec27343159674a3bd5a', '4.46.19.216', '1048886627', '1048886627', '/catalog/admin/categories.php?selected_box=configuration', 'Categories / Products')

 

[TEP STOP]

 

 

I'm getting the above from my osc admin pages. Anyone have any idea what I'm doing wrong? I double checked my mysql database and everything looks correct. I also checked the admin/includes/footer.php and the path looks correct. I also lost my footer info on my pages from installing this contribution. Any idea there either? Thanks.

Share this post


Link to post
Share on other sites

If it says:

 

1146 - Table 'coins_tv.TABLE_USER_TRACKING' doesn't exist

 

then I would recheck your database as it looks like you didn't create the user_tracking table

Share this post


Link to post
Share on other sites
1146 - Table 'coins_tv.TABLE_USER_TRACKING' doesn't exist

 

insert into TABLE_USER_TRACKING (customer_id, full_name, session_id, ip_address, time_entry, time_last_click, last_page_url, page_desc) values ('', 'Guest', 'e78b84f81fe97ec27343159674a3bd5a', '4.46.19.216', '1048886627', '1048886627', '/catalog/admin/categories.php?selected_box=configuration', 'Categories / Products')

 

[TEP STOP]

 

 

I'm getting the above from my osc admin pages. Anyone have any idea what I'm doing wrong? I double checked my mysql database and everything looks correct. I also checked the admin/includes/footer.php and the path looks correct. I also lost my footer info on my pages from installing this contribution. Any idea there either? Thanks.

 

Got it, n/m. Had to change application_top.php's

Share this post


Link to post
Share on other sites

Just downloaded V1.34 and I'm getting lots of errors when I click the user tracking link in admin

 

Warning: fopen("includes/GeoIP.dat", "rb") - No such file or directory in c:phpdevwwwcatalogadminincludesgeoip.inc on line 131 



Warning: ftell(): supplied argument is not a valid File-Handle resource in c:phpdevwwwcatalogadminincludesgeoip.inc on line 95 



Warning: fseek(): supplied argument is not a valid File-Handle resource in c:phpdevwwwcatalogadminincludesgeoip.inc on line 98 



Warning: fread(): supplied argument is not a valid File-Handle resource in c:phpdevwwwcatalogadminincludesgeoip.inc on line 100 



Warning: fseek(): supplied argument is not a valid File-Handle resource in c:phpdevwwwcatalogadminincludesgeoip.inc on line 117

 

 

 

Those above are just a small sample

what have I done wrong?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×