Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[Contribution] IP Recorder For Create Account Form V1.00


Crosby

Recommended Posts

Hi,

 

IP Recorder For Create Account Form V1.00 available for download, here.

 

This simple add-on will allow you to record your customer?s ip address when they create an account.

 

The IP is displayed in Admin -> Customers .. Select a customer and click 'Edit' and it will be displayed along with the rest of the info.

 

 

Please post any bugs/questions etc. here.

 

 

 

Thanks

Link to comment
Share on other sites

Have been told theres this bug in admin, when you click update in the customer edit.

 

Fatal error: Call to undefined function: tep_validate_ip() in /home/-----------/public_html/catalog/admin/customers.php on line 90

 

 

i'm working on fixing this, but my php knowledge is little, so would appreciate any help from php experts ! :- ) Probably something simple?

 

 

Thanks

Link to comment
Share on other sites

Hi mark,

 

In catalog/admin/customers.php, Find:

 

if (strlen($customers_ip_address) < ENTRY_IP_ADDRESS_MIN_LENGTH) {

$error = true;

$entry_ip_address_error = true;

} else {

$entry_ip_address_error = false;

}

 

if (!tep_validate_ip($customers_ip_address)) {

$error = true;

$entry_ip_address_check_error = true;

} else {

$entry_ip_address_check_error = false;

}

 

Remove:

 

if (!tep_validate_ip($customers_ip_address)) {

$error = true;

$entry_ip_address_check_error = true;

} else {

$entry_ip_address_check_error = false;

}

 

 

 

Regards,

Tom

Link to comment
Share on other sites

Hi Tom,

 

I have removed the function for now, maybe a better solution would be to actually write the function which does validate the ip address.

 

Thanks

 

Mark

Lifes a bitch, then you marry one, then you die!

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...