WordPress.org

Ready to get started?Download WordPress

Forums

Knews Multilingual Newsletters
Unsuscription outside the email message (5 posts)

  1. hectorasencio
    Member
    Posted 1 year ago #

    Hi Carles!

    I want provide my suscriptors a way to unsuscribe directly on the web via form, without clicking email's link. Is it possible?

    I was trying to figure out by my self how to do this, but I supose that the link contains a token identifying user's adress and I don't know how implement a form that generate that token when someone types his/her email adress...

    Regards!

    http://wordpress.org/extend/plugins/knews/

  2. creverter
    Member
    Plugin Author

    Posted 1 year ago #

    You're right... there are two ways to do this:

    1) Asking a password in subscription time, then a login with account administration...

    2) A unsubscribe form in the website with email input, and then submit a e-mail with real unsubscribe link...

    The first option is a hard work, the second not...

    Regards,
    Carles.

  3. hectorasencio
    Member
    Posted 1 year ago #

    Hi Carles,
    thanks for response!

    I'm looking to implement the second option you propose, but my doubt is how to generate that specific user token...

    I'm not much experienced on PHP but I figure out that you have a function/method for this pourpose, can you guide me where to find it and if have any dependecies?

    Promise to post the results in this post for everybody sharing.

    Regards.
    Hector.

  4. creverter
    Member
    Plugin Author

    Posted 1 year ago #

    Hello Hector.

    Look the confirmation way, essentially is the same... you will find the code into the knews.php main file, in this functions:

    add_user_self()
    submit_confirmation()
    confirm_user_self()

    The token is generated in the first function and stored in the subscribers table DB...

    Regards,
    Carles

  5. hectorasencio
    Member
    Posted 1 year ago #

    Thanks a lot Carles!

    I'm about go on holidays (oeoe!) but I'will play around with this functions when back at work.

    Best regards!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic