danil0 Posted July 31, 2020 Share Posted July 31, 2020 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? Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted July 31, 2020 Author Share Posted July 31, 2020 i can't help you with your files because you are using a template. For example, you contact us page is submitting with GET. The code is written to use POST. So you're on your own in getting this to work since it is beyond the scope of free support. Good luck. Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
danil0 Posted August 1, 2020 Share Posted August 1, 2020 14 hours ago, Jack_mcs said: i can't help you with your files because you are using a template. For example, you contact us page is submitting with GET. The code is written to use POST. So you're on your own in getting this to work since it is beyond the scope of free support. Good luck. 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 Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted August 1, 2020 Author Share Posted August 1, 2020 A new version has been uploaded with these changes: Added code to ignore IPV6 IP's. Added a missing sql command for MS2 shops. Added notification code in case the database changes fail. Reported by member @ArtcoInc. Changed the filtering for domains in emails. Changed the defined names still being used. Chanded installation instructions for MS2 shops. Corrected minor spelling and coding mistakes. Reduced the log size limit from 300 KB to 50 KB. Removed the FORM REQUIRED code for pre-2.3.4 shops. Removed the storage engine from the create table command. Found by member @artcoinc. Pro Version Only: Added a check to prevent empty emails from being sent. Added a check in Account Check to see if a customer has made orders. Added sort options to the Maintenance page. valquiria23 and ArtcoInc 1 1 Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
ScaleCreepMinis Posted August 1, 2020 Share Posted August 1, 2020 (edited) Okay, was swamped with spam accounts and installed Honeypot. Poof! Like magic they are gone. BUT now the Contact Us and Create Account pages return HTTP ERROR 500 messages. Running OSCOM CE Phoenix v1.0.4.2 PHP Version 7.3.20 (Zend 3.3.20) Is there some blindingly obvious mistake I made suring install? It seemed to just be upload add/replace. Also, I do not have (as far as I can tell) a table called Honeypot_track Edited August 1, 2020 by ScaleCreepMinis Quote Link to comment Share on other sites More sharing options...
ScaleCreepMinis Posted August 1, 2020 Share Posted August 1, 2020 Here are my Honeypot settings:Enable Honey PotTruePagescontact_us.phpcreate_account.phpSort Order0Email Addresses AllowedTrueEmail Addresses Show MessageTrueURL's AllowedFalseURL Show MessageTrueCreate Account CheckTrueCreate Account Count2Create Account Period10Block Names with NumbersTrueBlock Phone with LettersTrueName Length - First2Name Length - Last1Verify Postal CodeIgnoreVerify Domain Referer MatchTrueVerify State and Country matchFalseVerify Time to Submit20Show CaptchaNumbersUse IP ListIPListBlock IP AutomaticallyBad WordsExclude IP'sLog TrackerNone Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted August 1, 2020 Author Share Posted August 1, 2020 29 minutes ago, ScaleCreepMinis said: It seemed to just be upload add/replace. Only for the new files. For the files to change, you can only use the included ones if you have the same files, minus the Honey Pot changes. You can use a compare program like Winmerge, which is free, to compare your files with those included. The needed changes are marked for honey Pot. Regarding the tracking file, you won't have one until a block has occurred. Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
ScaleCreepMinis Posted August 1, 2020 Share Posted August 1, 2020 I have a standard Phoenix install, with no mods to files beyond the main page etc. So I just used the included files as is? Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted August 1, 2020 Author Share Posted August 1, 2020 That will only work if your version of Phoenix is the same as the one used for the included files. Since Phoenix changes so often and I never alter those files, it is unlikely they are compatible with your shop. Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
ScaleCreepMinis Posted August 1, 2020 Share Posted August 1, 2020 Crud, that must be the problem. Quote Link to comment Share on other sites More sharing options...
Psytanium Posted November 8, 2020 Share Posted November 8, 2020 Hi, I installed Honeypot 1.8 on OSC2.3.4, installed the module header, enabled everything, and added the word "google" in Bad Words, because i noticed all my bot accounts have the word google as company name. But i tried to create a new account, adding the word google in the company name, but still i can easily create accounts. How can i know if its working or not Thanks Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted November 8, 2020 Author Share Posted November 8, 2020 @PsytaniumYou don't say if the bad word filter worked for the contact us page or not. If not, look in the HP settings and make sure the contact us and create account pages are checked. I've seen in a few older shops where the pages were not being remembered. If they are set, make sure you have the Create Account Check setting checked. It disables all create account checks when off. Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
Psytanium Posted November 8, 2020 Share Posted November 8, 2020 2 hours ago, Jack_mcs said: @PsytaniumYou don't say if the bad word filter worked for the contact us page or not. If not, look in the HP settings and make sure the contact us and create account pages are checked. I've seen in a few older shops where the pages were not being remembered. If they are set, make sure you have the Create Account Check setting checked. It disables all create account checks when off. Yes Create_account is checked. Add Honey Pot captcha to the specified pages. Enable Honey Pot TruePages create_account.php tell_a_friend.phpSort Order 0Email Addresses Allowed TrueEmail Addresses Show Message TrueURL's Allowed TrueURL Show Message TrueCreate Account Check TrueCreate Account Count 2Create Account Period 10Block Names with Numbers TrueBlock Phone with Letters TrueCreate Account Notify NoneName Length - First 2Name Length - Last 1Show Math Captcha FalseUse IP List FalseBad Words googleExclude IP'sLog Tracker None Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted November 9, 2020 Author Share Posted November 9, 2020 Then all I can think of is that you didn't make the correct changes in the files. Please compare your files with the ones in the ChangedFiles_Frozen_and_V234 directory, or even use one of those for a quick test. Also, having the "Email Addresses Allowed" and "URL's Allowed" options set to true prevents the code from stopping most spam. I suggest you change to false and then try sending an email from your contact us page with an email address or url in the body. If the email isn't blocked, then there is something wrong in your installation and troubleshooting the contact page will be much easier. If it does work, then it means there is a mistake in the create account file. Psytanium 1 Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
Gold1s Posted January 22, 2021 Share Posted January 22, 2021 Hi there. I use Phoenix 1.7.9 I was install module. Mod works great, but I see it 2 times - https://take.ms/kv9D2 Some1 maybe know, where is a problem? Maybe @Jack_mcs? Quote Link to comment Share on other sites More sharing options...
Gold1s Posted January 22, 2021 Share Posted January 22, 2021 The same situation is on /contact page - https://take.ms/MrQKX Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted January 22, 2021 Author Share Posted January 22, 2021 3 hours ago, Gold1s said: Mod works great, but I see it 2 times In includes/hooks/shop/siteWide/honeypot_display.php. delete this line: return $str; Gold1s 1 Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
Gold1s Posted January 22, 2021 Share Posted January 22, 2021 @Jack_mcs - yes it is it Thank you bro. Quote Link to comment Share on other sites More sharing options...
pchem Posted February 3, 2021 Share Posted February 3, 2021 (edited) Thanks for the add-on @Jack_mcs. I installed the MS2 v1.10 on my v2.2 RC2a based site, but there are some differences I am running into. Emails are not being sent from catalog/contact_us.php and it just returns to the catalog/contact_us.php page like nothing happened. In catalog/contact_us.php the directions state to: FIND: <?php echo tep_draw_form('contact_us', tep_href_link('contact_us.php', 'action=send'), 'post', 'class="form-horizontal"', true); ?> REPLACE WITH: <?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 ?> My version has this on line 105 instead: <?php echo tep_draw_form('contact_us', tep_href_link(FILENAME_CONTACT_US, 'action=send')); ?> I tried to replace it with this: <?php echo tep_draw_form('contact_us', tep_href_link(FILENAME_CONTACT_US, 'action=send'), 'onsubmit="return validateMyForm();"'); ?> Should I have done something different? Likewise, in catalog/create_account.php the directions state to find: <?php echo tep_draw_form('create_account', tep_href_link('create_account.php', '', 'SSL'), 'post', '', true) . tep_draw_hidden_field('action', 'process'); ?> REPLACE WITH: <?php //BOC Honeypot ?> <?php echo tep_draw_form('create_account', tep_href_link('create_account.php', '', 'SSL'), 'post', 'class="form-horizontal" onSubmit="return validateMyForm(create_account);"', true) . tep_draw_hidden_field('action', 'process'); ?> <?php //EOC Honeypot ?> Instead, on line 309 I found: <?php echo tep_draw_form('create_account', tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'), 'post', 'onSubmit="return check_form(create_account);"') . tep_draw_hidden_field('action', 'process'); ?> And changed it to: <?php echo tep_draw_form('create_account', tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'), 'post', 'class="form-horizontal" onSubmit="return validateMyForm(create_account);"',) . tep_draw_hidden_field('action', 'process'); ?> I an getting a syntax error, but I don't know enough to know what is wrong. Will someone please point me in the right direction? Edited February 3, 2021 by pchem Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted February 3, 2021 Author Share Posted February 3, 2021 1 hour ago, pchem said: <?php echo tep_draw_form('contact_us', tep_href_link(FILENAME_CONTACT_US, 'action=send'), 'onsubmit="return validateMyForm();"'); ?> You almost got it. Try this: echo tep_draw_form('contact_us', tep_href_link(FILENAME_CONTACT_US, 'action=send'), 'post', 'onsubmit="return validateMyForm();"', true); There are changed files for your version in the package so you can use those to see the change. Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
pchem Posted February 4, 2021 Share Posted February 4, 2021 Thanks again Jack! I got the contact_us.php working with the revision you provided. At about line 309 in create_account.php I ended up just trying the code recommended in the install file even though the commands looked quite a bit different, and it seems to be working fine. Quote Link to comment Share on other sites More sharing options...
CGIFTER Posted February 16, 2021 Share Posted February 16, 2021 Hello, Goodmorning. Please I need help with the HONEYPOT module. This add-on has been a lifesaver from the vicious attacks of spammers. Lately, the module is failing to stop attacks, especially after I upgraded to Phoenix v1.0.7.15. The Creat Account page (create_account.php) is throwing 500 Error Message and new customers are not able to create accounts. If you disable the module then everything works well. When I compared the new (create_account.php) for v1.0.7.15, I noticed differences. If anyone has an updated (1) Contact us Page (contact_us.php) & (2) Create Acct page (create_account.php) of HONEYPOT adapted to work with PHOENIX v1.0.7.15, please kindly post it here, Thank you in advance. The Russian Spammers are at it again. Thank you. -CGIFTER Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted February 16, 2021 Author Share Posted February 16, 2021 There are code changes needed to have Honey Pot work with the latest Phoenix but I haven't released those yet.. Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
sunnybutt222 Posted February 20, 2021 Share Posted February 20, 2021 Hi guru's, I just added the Honeypot addon on my create an account form and configure same as it is on the installation file. except of configuration_group ID on table. I found the DB tables and configurtion_group on it under the TOOLS->DATABASE TABLES but i didnt saw the group ID there. (Where i Can find that ?) Also, I see its showing in the end of the form but not working properly. Even i put wrong answer there , its till submit the form.. http://www.randpaseka.com/catalog/create_account.php you can check on this page Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted February 20, 2021 Author Share Posted February 20, 2021 @sunnybutt222I may not be understanding you but I think you are referring to the database value that needs to be set. Assuming you do not have a Frozen or Phoenix shop, this is what you need to do: Look at the configuration_group table in your database and see what the highest ID number is. Edit the included database_changes.php file and change all instances of '16' to 'xx', where xx is one higher than the ID you found above. Upload that file and run it in a browser like this http://www.randpaseka.com/catalog/database_changes.php The database is different than the files. If you don't know how to get the ID from the database, you can ask your host if they will get it for you. Whatever number is the highest one, you want to add one to it for use in the file. Please ask again if you get stuck. Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.