Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

How To Add Image Verification To Subscribe Block Rate Topic   - - - - -

 
  • jimmyod
  • Senior Member
  • Members
  • Join Date: 24-Apr 12
  • 410 posts

Posted 16 August 2016 - 12:22 PM #1

v4.3.1

I am using the "Newsletter: subscription form" template in a block for customers to enter their email address to subscribe. I am getting lots of "rif-raf" emails. I guess robo generated or something, but they are not legitimate.

 

Can I incorporate the image verification into this block somehow?



 

Posted 17 August 2016 - 05:44 AM #2

v4.3.1

I am using the "Newsletter: subscription form" template in a block for customers to enter their email address to subscribe. I am getting lots of "rif-raf" emails. I guess robo generated or something, but they are not legitimate.

 

Can I incorporate the image verification into this block somehow?

 

By default there is no such feature. Some code modifications are required in this case.


Sincerely yours, CS-Cart Support Team

 

User guide       |  Developer documentation  |  Core API documentation


 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 15,742 posts

Posted 17 August 2016 - 08:26 AM #3

design/themes/THEME/templates/addons/newsletters/blocks/static_templates/subscribe.tpl

 

add 

{include file="common/image_verification.tpl" option="login"}

before

</form>

app/addons/newsletters/controllers/frontend/newsletters.php

 

add

if (fn_image_verification('login', $_REQUEST) == false) {
    return array(CONTROLLER_STATUS_REDIRECT);
}

after

if ($mode == 'add_subscriber') {

(!) Capture for login form should be enabled in the settings. Additional style changes may be required


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration

Certified CS-Cart RU Developer | Сертифицированный разработчик на CS-Cart Русская Версия

 
  • jimmyod
  • Senior Member
  • Members
  • Join Date: 24-Apr 12
  • 410 posts

Posted 19 August 2016 - 12:14 PM #4

Thank you!

This works good.



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 15,742 posts

Posted 19 August 2016 - 02:24 PM #5

You are welcome!


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration

Certified CS-Cart RU Developer | Сертифицированный разработчик на CS-Cart Русская Версия

 
  • krola
  • Advanced Member
  • Members
  • Join Date: 18-Jun 11
  • 68 posts

Posted 20 March 2017 - 03:05 PM #6

worked for me! thanks!