| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Logging IP numbers | ||||
|
|
Thread Tools | Search this Thread |
#21
|
|||||||||
|
|||||||||
Thanks, I will try this
__________________
Web Design Web Design and Custom X-Cart Projects http://www.dataviking.com Mention the forums for discounts! x-cart Version 4.1.8 |
|||||||||
#22
|
|||||||
|
|||||||
I'm getting this error when I make the changes above to func.php
"INVALID SQL: 1136 : Column count doesn't match value count at row 1" Running 3.5.3 Gold Any ideas anyone? Randy |
|||||||
#24
|
|||||||
|
|||||||
i m getting MYSQL 1136 Error here is my func.php
Quote:
__________________
xcart 4.18 on linux |
|||||||
#25
|
|||||||||
|
|||||||||
Code:
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart. |
|||||||||
#26
|
|||||||
|
|||||||
Here is a slight improvement for this mod. Add the following directly above "db_query("INSERT INTO $sql_tbl[orders]" in func.php...
Code:
Change... Code:
Code:
After that, you will need to change the IP field of your database to be VARCHAR 48. This code is 3.5.8 compatible. If you are using a different version of Xcart, and don't plan to upgrade to 3.5.8, you may wish to change $HTTP_SERVER_VARS to $_SERVER. If you want more thorough login failure reports, you can also replace the contents of "skin1/mail/html/login_error.tpl" with the following... Code:
In the file "skin1/mail/login_error.tpl", replace the contents with the following... Code:
You will also need to create the language variable "lbl_http_client_ip" which should contain the text "HTTP_CLIENT_IP". I do give the Xcart developers explicit permission to use these code snippets in the Xcart software and or modify them for their uses. If anyone has any improvements on this, then please post them here. Thanks!
__________________
X-Cart Pro 4.5.5 Platinum X-Payments 1.0.6 PHP 5.3.14 MySQL 5.1.68 Apache 2.2.23 |
|||||||
#27
|
|||||||
|
|||||||
You can also add this:
Code:
also add Code:
skin1/mail/order_invoice.tpl then create an entry in languages/labels/lbl_user_ip (User IP) Here's what you get--> http://www.goldmisers.com/customer/register.php [update] I stayed up all night and incorporated this into my whole site but unfortunately didn't keep track of what I did anyway, you can figure it out (ie. skin1/mail etc.) I made seperate email forms for different things like "Suggestions" and simple questions with minimul forms for the user to fill out, all the way to the full blown "contact us" form that I use for shipping enquiries only and I incorporated this mod into it to help prevent fraud on that level. It's actually pretty easy to figure out, just play around with it. One variable would be for example: Code:
|
|||||||
#28
|
|||||||
|
|||||||
Stopped working from some reason
The IP logging mod suddenly stopped working on v3.5.8
Any ideas? Thanks, Dan. |
|||||||
#29
|
|||||||
|
|||||||
Re: Stopped working from some reason
Quote:
Same here!
__________________
Emerson █ Total Server Solutions LLC- Quality X-Cart Hosting █ Recommended X-Cart Hosting Provider - US and UK servers █ Does your host backup your site? We do EVERY HOUR!!! █ Shared Hosting | Managed Cloud | Dedicated Servers |
|||||||
#30
|
|||||||||
|
|||||||||
First if you haven't patched the database apply the following SQL query in the patch/upgrade area of the X-Cart admin:
Code:
After the patch is successful... Next, Edit include/func.php find: Code:
insert: Code:
Above the first found line of code "return $orderids;". This should make the mod work on all future versions as well since its not apart of the original insert for orders to avoid future confusion.
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart. |
|||||||||
|
|||
X-Cart forums © 2001-2020
|