Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Updated: User Tracking with Admin 1.0


Druide

Recommended Posts

that did the trick...

 

19:39:09: ?2.5 inch FireWire and FW/USB? /thestore/default.php?cPath=1_22&osCsid=

01d05167bdbde0b2e223ec5d

19:39:01: ?Front Device Bay? /thestore/default.php?cPath=48&osCsid=01

d05167bdbde0b2e223ec5dd3

19:37:49: ?6 pin to 4 pin pin adapter? /thestore/product_info.php?products_id=3

51&osCsid=01d05167bdbde0

19:34:42: ?Get Them While They're Hot!? /thestore/specials.php?osCsid=01d05167bd

 

thank you sir!!

Link to comment
Share on other sites

One more bug fix to the 1.5a release that is on the contributions section now.... having an issue with lines 57 to 62 in the adminuser_tracking.php script.

 

This...

<?php

 if ($purge == '72')

 {

   tep_db_query("delete from user_tracking where time_last_click < '"  . (time() - ($purge * 3600))"'");

   echo "<font color=red>" . TEXT_HAS_BEEN_PURGED . "</font><p>";

 }

 

Should be this...

<?php

 if ($purge == '72')

 {

   tep_db_query("DELETE FROM " . TABLE_USER_TRACKING . " where time_last_click < "  . (time() - ($purge * 3600))."'");

   echo "<font color=red>" . TEXT_HAS_BEEN_PURGED . '</font><p>';

 }

 

Otherwise, this thing rocks. Great effort. Now, if we could tie this and the Visitors stats together, it could be killer. :D

Link to comment
Share on other sites

Make that:

<?php 

 if ($purge == '72') 

 { 

   tep_db_query("DELETE FROM " . TABLE_USER_TRACKING . " where time_last_click < '"  . (time() - ($purge * 3600))."'"); 

   echo "<font color=red>" . TEXT_HAS_BEEN_PURGED . '</font><p>'; 

 }

 

Just missed the opening ' after where time_last_click <

 

Fixes the problem, though. Good work. Agreed: integration w/ Visitors would be GOOOD.

 

- Greg

Link to comment
Share on other sites

FYI

i had already fixed that in version 1.31 ...lol

 

http://www.oscommerce.com/community/contributions,1055

 

version 1.32 will be able for multilanguage support

 

i eliminated all hardcoding of text & a href links

Robert

 

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

Link to comment
Share on other sites

I have just added this, and for some reason I dont get a originating URL for any visits.

 

I tested it by going to google and finding a link to my site, then I clicked it in order to get to my site, but did not get a registered orignating URL for doing it.

 

Is there any reason why I wouldnt?

 

Also, I get this error at the bottom of every page in Catalog:

 

Fatal error: Cannot redeclare tep_update_user_tracking()

 

What does this mean please?

 

Thanks and good mod.

 

Ron.

Link to comment
Share on other sites

  • 5 months later...

Hello!

 

You write in the install-text:

 

----------------

add to catalog/includes/application_top.php

 

Look for:

tep_session_start();

 

add after:

// user_tracking modifications

if (!$referer_url) {

$referer_url = $HTTP_SERVER_VARS['HTTP_REFERER'];

if ($referer_url) {

tep_session_register('referer_url');

}

}

 

-----------

 

There is 2 Times "tep_session_start()" - Should i fill it 3 Times in?

 

 

I did so and now everything works, but the showing of the HTTP-Ref

 

 

Can you help?

 

Thx from Duesseldorf, Germany!

 

- BUT: ITS A FINE THING THIS PIECE OF CODE :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...