Need advanced help, Wordpress & mailchimp - php

Heyhou!
I have tried to figure this out long time already, but no luck so far.
I have Wordpress site with mailchimp email form, so users are able to join my email list. The problem is:
-When user join the list, Mailchimp send automatically the confirmation email. I have edited it already to meet my requirements, but I need one more thing. I need to place URL where the joined user can download my free file, that URL needs to be one time url and it would redirect to my site where s/he can download the file.
Soooo, which way would be a best way to do that ? The main point is here that nobody can't start share the download link or page so users could download the file without to join my list. Poor English, hope you got the picture.
I'm web developer / PHP programmer, so plug in is not a must, (of course if you know one, let me know) I can make this by myself, but I need your help to solve the logic, how this would be done.
If I just place my website's download link in the Mailchimp confirmation email, there isn't anything which protect file. I need to somehow to crush the link after user is downloaded the file. BUT no manual changes in Mailchimp confirmation email.
There might be some super easy solution for this or not, anyway I'm stuck.
Thank ya!

I have used mailchimp previously and found the only way to push some data into an email, for this example a dynamic URL with a special access code is to set it as an extra bit of data on the users profile via the API.
http://developer.mailchimp.com/documentation/mailchimp/guides/manage-subscribers-with-the-mailchimp-api/
From when I last used Mailchimp you get 30 fields of custom data you can set on each user.
Hope that helps.

Related

Google Spreadsheet User login

Okay, So I have a client that wants their wordpress site to only require user to use their email to login. They instead want the site read through a google spreadsheet of all the users. Then if the users email is found in the spreadsheet it allows the user to login.
Before people start screaming, I know its extremely bad from a security stand point, we've told them this. They don't care.
So my question is, has anyone one done this or something similar in the past. How did you do it.
And how would say is the best way to go about doing this. So far I have thought of a few ways to do it.
Secretly embed the doc on a hidden web page then access it.
Some how just access it using APIs
Maybe using google forms as the email entry, and some how use that to search the google docs.
Any ideas or helps, is appreciated greatly. Thank you.
Logging in via an email address is easy, there are already plugins to do it. https://wordpress.org/plugins/wp-email-login/
There is also a plugin for external authentication. Don't know if it does it from a spreadsheet, though you may have a way to sync the spreadsheet to an external DB (via an API perhaps):
https://wordpress.org/plugins/external-db-auth-reloaded/
Would you need the logged in user to have any user-specific account info? Could you get by with allowing each logged in user to essentially be using the same single account in WordPress?
I could see a solution where you hook into wp_authenticate() https://codex.wordpress.org/Plugin_API/Action_Reference/wp_authenticate
And in your hook function call, run out to Google Spreadsheet via their API and see if that email address is found in the list. If so, log them into WP using a preset, single account that's meant to be used for all such users.
Here's some basic info for reading from a Google Sheet via their API:
https://developers.google.com/sheets/samples/reading

Sign in with fb or twitter

For a project I am working on, I think having the functionality to sign in with facebook/ twitter would be beneficial.
I have some design theory to iron out.
When the user first logs into the website using either twitter or facebook, I'll get their email and other relevant information and store it in the database where a normal signed up user would be stored.
When they return, they would log in with twitter/ fb again and it would locate the information in the database and not add it again.
If anyone tried to sign up with the email address provided by either of these services, an email would be sent to the email address to confirm it is them and then they could generate just a password to allow them to log in with information already stored.
I could they link other data on the website to the userid I have stored for them throughout the entire process.
So my query would be whether this is the correct way to go about this?
How have others used these types of login api's and then binded them to on site data?
I believe this to be a reasonable question but if I have placed it in the wrong section, please feel free to move it!
Thanks.
well, everything should be written here http://developers.facebook.com/ also try using php sdk for facebook api, for twitter here https://dev.twitter.com/
Create an app in both fb and twitter, take the access token and access token secret
You should download all the files necessary and then configure them as is written in manual, if you will have trouble connecting to them write me a message to my mail(jurijs.nesterovs#inbox.lv) i'll try to help
Have done that before myself for my site. It was Fb/Twitter/Google. I bet thats the best thing to do. Google's API is the easiest out of these 3. Twitter was hard for me since I dont use OOP and all the libraries out there was OOP.
And about your design, my site was made not to not allow the user to join with the same email again. If they have joined using Facebook with an email, when they try to join using twitter with the same email, I would tell the user that they are already registered using Facebook.

Adding a contact form to my Joomla site

I have a Joomla site, on which site you can exchange ebooks. This is the feature I want to add, but don't know how:
When someone is interested in an ebook, he can click on a "REQUEST EBOOK" button.
The "request button" will forward an e-mail to the registered user and owner of ebook with a specific message.
Basically I need a script that does this:
"If I click on the "REQEUST EBOOK" button, take the email address of the ebook owner and registered user, compose a predefined message,and send it to him/her.
QUESTION: how could I achieve a similar result? Please keep in mind that I don't know anything about PHP.
Thanks a MILLION.
dimitri
PS: to get a better idea, visit http://www.ebook123.it. Thanks.
Joomla has lots of useful plugins/extensions etc, have a look at these contact forms and see which one you like the look of:
http://extensions.joomla.org/extensions/contacts-and-feedback/contact-forms
Some are very simple to use, others a bit more complicated.

Registration blanket, database, info, wordpress, mySQL, e-mail

I'm making websites for a company where users have to "register" with names and a lot of different information to attend the event. (It's a video-event - info would be name, e-mail etc.)
I now got a Wordpress webpage, at the blanket doesn't necessary need to be on the site, but can open in a separate window.
I need to, somehow make it easy for admin to look at the users who registered, send them e-mails etc. Make a list of everyone who register, for the admin to see.
How would be the easiest way to do this?
I know how to make a form, and pull the information into the database..
Any good ideas, plugins or examples??
Thanks
Joomla comes in with mass emails, although I have not tried it.
Have You searched on Wordpress plugins? They may have what you are looking for.

How do I use cookies to let visitors access to the downloads page of my website

I want visitors to my website to fill out a contact form before they can access the downloads page. I am looking for online resources or examples. The only ones I can find are username and password authentication which I don't need. I am hoping to do it in PHP. At the moment my Contact form emails me their details but anyone can access the downloads page.
Thank you
You're not giving us much to go on!
Based on your tags I assume your developing in php. This tutorial should give you what you need Website Authentication - a simple PHP sample

Categories