• This is a great plugin! I am interested in setting up a large number of site subscribers with their links and then using those links along with additional user meta to send an email through MailChimp that will include their individual links to a specific page that has a prepopulated form. All works great – but I’m wondering if there is a way to generate these links in bulk and then export them along with the associated user’s info?

    https://www.ads-software.com/plugins/autologin-links/

    [Moderator Note: No bumping, thank you.]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author WPAutoLogin

    (@wpautologin)

    Hello!

    A bit late, but there are generally not many support tickets that trickle in via this page, so I do not routinely monitor this page for new messages.

    I presume that there was some solution found for this issue already, however, answering this is, I think still relevant for the future.

    I, as the author, will not provide any implementation for bulk creation of autologin links. The reason is that those links can be intercepted and used by anybody and actually should only be used at all in conjunction with HTTPS-protected websites. And even on those websites, the autologin link can be easily intercepted by a man-in-the-middle attack. For this reason, I only allow administrators to create them for users, because only an administrator can decide if the risk can be taken that (potentially) anybody can login to an account with an intercepted autologin link.

    So, there is and will not by any official support bulk creation of autologin links. But you can code something like this easily on your own (or just do it manually) by interacting with the underlying MySQL database directly. The auto login links are written in the user metadata table with the meta_key “pkg_autologin_code”. If you just create a litte SQL-query that generates random strings (with appropriate length) for every (matching) username, you can assign all users a autologin link automatically. That would be the way to go I think. But again: be careful with this feature, since the codes will be static and when intercepted, anybody can login under the username that is assigned to the autologin link.

    Here is what I did.

    Create an addition field in the users profile page that allows them to check if they want to be on the mailing list

    In your functions file, add an action to personal_options_update which checks to see if that field is on. If it is on, have the function create the autologin link based on the paramaters found inside this plugin. Then in the same function use the mailchimp API to add/update the user to the specific list.
    Set your additionalion field mailchimp to AUTOLOGIN

    If your Mailchimp campaign is based off an RSS feed, create a custom RSS feed that creates links using this url
    <a href="' . get_permalink() . '?autologin_code=*|AUTOLOGIN|*">

    I am about 90% finished writing this function for myself so I can’t provide full details yet.

    @wpautologin Thanks for your answer! Just the info that I needed!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Bulk Creation of Autologin Links?’ is closed to new replies.