-
Posts
163 -
Joined
-
Last visited
Posts posted by danil0
-
-
1 hour ago, Jack_mcs said:
I'm even more confused at this point. In your original post in another thread you said you have an MS2 shop. But in this post you said you have a 2.3.4 shop. You need to straighten out your files and only use the ones meant for your shop. I can't help until you do that.
I noticed also that the Megastore theme that is installed on this custom osc 2.3.4 has its own styles and classes... so I noticed inside contact_us.php that I edited, there was no class="form-horizontal" setting on the echo tep_draw_form line.
So I have resolve the fields problem because was Stylesheet matter. Everything works on the admin side settings logs etc. It blocks fake accounts and tries. The only problem is that the contact us form still sending spam mails. When I enabling captcha the spams stops but the captcha image is not loading. The validation of the captcha also works as I get the answer that was wrong the code.
So do you believe I should add form-horizontal class to make captcha image work?
-
12 minutes ago, Jack_mcs said:
I'm even more confused at this point. In your original post in another thread you said you have an MS2 shop. But in this post you said you have a 2.3.4 shop. You need to straighten out your files and only use the ones meant for your shop. I can't help until you do that.
ok maybe I was wrong on the other thread ..or maybe was my first quick question and I did not checked well. Is there a safe way to know ecxacly what version is my shop? On my admin/server_info.php I see these 2 lines
osCommerce Online Merchant v2.3.4
PHP Version 5.6.40
* I have tested 7.3 php version to see if this the reason captcha not loading
-
7 hours ago, Jack_mcs said:
You don't have a 2.3.4 shop so that file won't work. Trying to force it to work is the wrong approach. The correct way to fix it is to add the original file(s) back and make the changes to them manually. Or, if you want to try the included files in the MS2 directory, they may work, though that is not the recommended way to install an addon.
I m confused I dont have a 2.3.4 Shop ? How do you know that? on the version it sais osCommerce Online Merchant v2.3.4
-
1 minute ago, ArtcoInc said:
haha thanxs this was the first I did
-
3 minutes ago, Jack_mcs said:
If it is an older version it will show in a test like that but won't work with Honey Pot. But you need to fix the file problem or troubleshooting might give false results. Your contact us page is not only showing the missing FORM_REQUIRED defines, it is also missing other defines, like the placeholder text. Once you fix those problems, you can get back to this one, assuming it still exists.
Jack the contact_us.php file I use is the cotribution edited file from the 2.3.4 version folder to avoid mistyping. The defines how can I define them ...I followed all instractions I will go crazyy..
-
1 minute ago, Jack_mcs said:
@danil0If captcha is the only thing not working, then it is probably the GD Library is missing or an old version. Only your host can address that.
no it is not that .. see here https://sportndog.gr/gd.php I checked it the first time you said it
-
thanxs Malcolm but I m using the edited files from cotribution to avoid mistyping... anyway the fields and labels I can fix them by adding a translation or removing them .. but why the captcha is not loading ...??
-
6 minutes ago, Jack_mcs said:
Please post your Honey Pot settings
Enable Honey Pot True Pages contact_us.php create_account.php Sort Order 10 Email Addresses Allowed False Email Addresses Show Message True URL's Allowed False URL Show Message True Create Account Check True Create Account Count 1 Create Account Period 55 Block Names with Numbers True Block Phone with Letters True Name Length - First 2 Name Length - Last 1 Verify Postal Code Both Verify Domain Referer Match True Verify State and Country match True Verify Time to Submit 10 Show Captcha Numbers Use IP List IPList Block IP Automatically Bad Words sex, viagra Exclude IP's Log Tracker File
-
26 minutes ago, Jack_mcs said:
Yes, that should work.
OK table is working great.. and it has blocked some ips
but I dont undersntand
1. why capcha is not loading
2. why I see inside and beside fields strings like FORM_REQUIRED_INPUT
Sorry I forget to mention that I m using Megastore theme
MY VERSION IS osCommerce Online Merchant v2.3.4 -
41 minutes ago, Jack_mcs said:
I can't imagine why it wouldn't be created and I've never had it happen. But I just realized that there isn't any notice made in case it does fail. I will add that to the next version. Thanks for mentioning it.
The log file created it has blocked many ips allready... thank you
but the database table is not created should I use the code of Artcolnc?
CREATE TABLE IF NOT EXISTS honeypot_track (ip_number INT( 64 ) UNSIGNED NOT NULL, count int (11) DEFAULT 0, last_date datetime NOT NULL, PRIMARY KEY(ip_number) ) ENGINE=InnoDB
-
21 minutes ago, ArtcoInc said:
For some reason, the table honeypot_track was NOT created when I installed HoneyPot on my site. I had to create the table manually. That's why I asked.
Malcolm
So is there any sql table creation file ? to do it myself? do you believe that this is the fault on my case?
-
12 minutes ago, Jack_mcs said:
By script, I meant the Honey Pot file, not the database file.
what is this file? where is it ? is sql text file I have to run to create tables on database?
QuoteYou have the "Create Account Check" option set to false. here's what the usage file says:
ok I set it true ... but anyway it seems that all cotribution is not working at all... I must missing something very important because the forms on both pages, create account and contact us, are broken as you can see on screeshoots I send earlier(every field has FORM_REQUIRED_INPUT)
-
1 hour ago, Jack_mcs said:
It's created when the script is ran.
What are your settings set to?
I searched again after repeating execution of php but there is no this table... but why are you saying that it's created when the script run ? inside the database_changes.php there is no honeypot_track string. I m asking again is there any other database creation file??
my settings are:
Enable Honey Pot True Pages contact_us.php create_account.php Sort Order 10 Email Addresses Allowed True Email Addresses Show Message True URL's Allowed True URL Show Message True Create Account Check False Create Account Count 2 Create Account Period 10 Block Names with Numbers True Block Phone with Letters True Name Length - First 2 Name Length - Last 1 Verify Postal Code Ignore Verify Domain Referer Match True Verify State and Country match False Verify Time to Submit 10 Show Captcha None Use IP List IPList Block IP Automatically Bad Words sex, viagra Exclude IP's Log Tracker File
I m still receiving spam mails and fake accounts ...and the captcha is not appear
-
6 hours ago, Jack_mcs said:
There's a mistake in the database file for MS2 shops. The settings are applied to the configuration group with the ID of 16. That is probably not correct in your shop since it has been around for a while, as I understand it. The corrected file is attached. But don't just apply it. You need to do the following:
1 - Remove all of the entries in your database having to do with this addon. You can do that manually by searching or run this command, assuming you didn't change the original sql file:
delete from configuration where configuration_key like '%honeypot%'
2 - Look at the configuration_group table and see what the last number is in the configuration_group_id column.
3 - Edit the attached file and change all entries of '16' to 'X' where X is the number you found in step 2 plus 1. So if the number you found is 111, then you would change the file to use '112'.
4 - Upload the attached file and run it.
I made all your steps thank you. I saw that there was not column before with name honeypot. With your instractions the column created and the ID is 1602 because the last one was 1601. see attached screenshot. I installed module again to see if it works but I have the same results. Are there any other instractions missing from zipped cotribution v1.10 file?
-
11 hours ago, ArtcoInc said:
@danil0 Two things ...
1) It still looks like you messed up the edits to contact_us.php. Can you post your modified file here?
2) Do you have access to your database, through something like phpMyAdmin ? Can you confirm that you have a table called honeypot_track ?
Malcolm
1)
<?php
/*
$Id$osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.comCopyright (c) 2010 osCommerce
Released under the GNU General Public License
*/require('includes/application_top.php');
require('includes/languages/' . $language . '/contact_us.php');
if (isset($_GET['action']) && ($_GET['action'] == 'send') && isset($_POST['formid']) && ($_POST['formid'] == $sessiontoken)) {
$error = false;$name = tep_db_prepare_input($_POST['name']);
$email_address = tep_db_prepare_input($_POST['email']);
$enquiry = tep_db_prepare_input($_POST['enquiry']);
if (!tep_validate_email($email_address)) {
$error = true;$messageStack->add('contact', ENTRY_EMAIL_ADDRESS_CHECK_ERROR);
}/*** BEGIN HONEYPOT ***/
include('includes/honeypot/modules/honeypot_verify_general.php');
/*** END HONEYPOT ***/
$actionRecorder = new actionRecorder('ar_contact_us', (tep_session_is_registered('customer_id') ? $customer_id : null), $name);
if (!$actionRecorder->canPerform()) {
$error = true;$actionRecorder->record(false);
$messageStack->add('contact', sprintf(ERROR_ACTION_RECORDER, (defined('MODULE_ACTION_RECORDER_CONTACT_US_EMAIL_MINUTES') ? (int)MODULE_ACTION_RECORDER_CONTACT_US_EMAIL_MINUTES : 15)));
}if ($error == false) {
tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, EMAIL_SUBJECT, $enquiry, $name, $email_address);$actionRecorder->record();
tep_redirect(tep_href_link('contact_us.php', 'action=success'));
}
}$breadcrumb->add(NAVBAR_TITLE, tep_href_link('contact_us.php'));
require('includes/template_top.php');
?><div class="page-header">
<h1 class="h3"><?php echo HEADING_TITLE; ?></h1>
</div><?php
if ($messageStack->size('contact') > 0) {
echo $messageStack->output('contact');
}if (isset($_GET['action']) && ($_GET['action'] == 'success')) {
?><div class="contentContainer">
<div class="contentText">
<div class="alert alert-info"><?php echo TEXT_SUCCESS; ?></div>
</div><div class="pull-right">
<?php echo tep_draw_button(IMAGE_BUTTON_CONTINUE, 'fa fa-angle-right', tep_href_link('index.php')); ?>
</div>
</div><?php
} else {
?><?php //BEGIN HONEYPOT ?>
<?php echo tep_draw_form('contact_us', tep_href_link('contact_us.php', 'action=send'), 'post', ' onsubmit="return validateMyForm();" class="form-horizontal"', true); ?>
<?php //END HONEYPOT ?><div class="contentContainer">
<div class="contentText">
<div class="row">
<?php echo $oscTemplate->getContent('contact_us'); ?>
</div>
<p class="text-danger text-right"><?php echo FORM_REQUIRED_INFORMATION; ?></p>
<div class="clearfix"></div><div class="form-group has-feedback">
<label for="inputFromName" class="control-label col-sm-3"><?php echo ENTRY_NAME; ?></label>
<div class="col-sm-9">
<?php
echo tep_draw_input_field('name', NULL, 'required autofocus="autofocus" aria-required="true" id="inputFromName" placeholder="' . ENTRY_NAME_TEXT . '"');
echo FORM_REQUIRED_INPUT;
?>
</div>
</div>
<div class="form-group has-feedback">
<label for="inputFromEmail" class="control-label col-sm-3"><?php echo ENTRY_EMAIL; ?></label>
<div class="col-sm-9">
<?php
echo tep_draw_input_field('email', NULL, 'required aria-required="true" id="inputFromEmail" placeholder="' . ENTRY_EMAIL_ADDRESS_TEXT . '"', 'email');
echo FORM_REQUIRED_INPUT;
?>
</div>
</div>
<div class="form-group has-feedback">
<label for="inputEnquiry" class="control-label col-sm-3"><?php echo ENTRY_ENQUIRY; ?></label>
<div class="col-sm-9">
<?php
echo tep_draw_textarea_field('enquiry', 'soft', 50, 15, NULL, 'required aria-required="true" id="inputEnquiry" placeholder="' . ENTRY_ENQUIRY_TEXT . '"');
echo FORM_REQUIRED_INPUT;
?>
</div>
</div>
</div><?php
/*** BEGIN HONEYPOT ***/
include('includes/honeypot/modules/honeypot_display.php');
/*** END HONEYPOT ***/
?>
<div class="buttonSet">
<div class="text-right"><?php echo tep_draw_button(IMAGE_BUTTON_CONTINUE, 'fas fa-paper-plane', null, 'primary', null, 'btn-success'); ?></div>
</div>
</div></form>
<?php
}require('includes/template_bottom.php');
require('includes/application_bottom.php');
?>
2) There is no this table with name honeypot_track in my database. I did not found any database table creation sql file inside instractions. The only database editing file was the database_changes.php file where I have changed the ID according instractions, because the 16 was taken from other addon and I executed it.
-
20 hours ago, Jack_mcs said:
But the blocking should work fine without it
unfortunatelly is not working and the captcha is my last hope
20 hours ago, Jack_mcs said:To fix it, edit the includes/honeypot/modules/honeypot_display.php file and change this
I did that change but it appears again
-
1. I checked the new files and instructions was from 234 version (Install_Frozen_V234.txt)
2. I tried the contact_us.php changed new file also from zipped cotribution file and the result was the same ...seems like it has no access on some directories I guess...
3. header tag module in Admin is installed because I installed the honeypot Module from this..
I attached printscreen from both pages if anyone can unsterstand what is going on?
-
hello .. I installed the latest 1.10 version on a custom 2.3.4 OSC version. Everything seems working well except the captcha image is not appear and the string "FORM_REQUIRED_INPUT" has no translation.
Are there any files missing? Can anyone help?
-
That sitemap creator only indexes 500 URL's for free and the rest will cost you. Many people have thousands upon thousands of URL's. The one by Jack_mcs is free, it's for osC and it can handle all the URL's you got. It works beautifully.
Take cake
Bill
ok thank you
-
why not use of this https://www.xml-sitemaps.com, instead of this cotrib?
or similar?
-
why not use of this https://www.xml-sitemaps.com, instead of this cotrib?
-
Has anyone Zones (Attica etc) for Greece?
-
I don’t understand why someone spends time to make a contribution but at the end he uploads it unfinished...
1. the sql file does not exist
2. there are no instructions
this is very disappointing.. please complete it and upload the final one... this is great idea
-
No one?
HoneyPot Captcha
in General Add-Ons Support
Posted
everything works perfect except captha image is not loading... I thought it would be easy to resolve... anyway thank you for your time until now