Git Product home page Git Product logo

Comments (4)

samtuke avatar samtuke commented on July 21, 2024

@asdr45fsd35fdf Is your goal to add captchas (via the captcha plugin) to the unsubscribe page?

This plugin hook allows you to override the default unsubscribe page: unsubscribePage()

Another way would be to update the unsubscribe page template that is stored in the database (to make it user editable).

From a user perspective, perhaps the best approach would be to extend the captcha plugin to add an option to add captchas to unsubscribe pages (instead of creating a separate plugin).

Does that help?

from phplist3.

samtuke avatar samtuke commented on July 21, 2024

FYI @bramley

from phplist3.

bramley avatar bramley commented on July 21, 2024

@asdr45fsd35fdf If you want to use asubscribe then you need to create your own subscribe form to be included on your web site. Usually those tend to be small so adding captcha might disrupt the layout too much.

If you want captcha to be used then you'll need to look at the phplist subscribe page to copy and possibly modify the chunk of html that deals with captcha. So long as the same fields are submitted then the plugin will validate them.

To ensure that a different captcha is displayed each time there needs to be a random number generated. That is done automatically when the html is generated by the plugin but would need to be done by client side code in your case, see the quick start guide for an example

https://www.phpcaptcha.org/documentation/quickstart-guide/

from phplist3.

mrojnetsky avatar mrojnetsky commented on July 21, 2024

@samtuke
Sorry, I should have provided more context. I'm using asubscribe (ajax integration). I want captcha on my subscribe page (my html not phpList subscribe page) not the unsubscribe page. This is to prevent bots from spamming me. I saw built-in captcha plugin (that was disabled by default for me as it needs core plugin enabled first I think). I did not see a way how to integrate this captcha plugin into my custom html that uses asubscribe.

@bramley
Yes, that what I did. My site is one single html page with custom subscribe form. I don't want the user to leave my page. Thank you for the suggestion I will try to piggyback on what "phplist subscribe page" does when captcha is enabled.
I suspected that the plugin might not work with asubscribe out-of-the-box. Thank you for the link. I will investigate this.

The issue is closed as far as I'm concerned.

from phplist3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.