How would you Post to Google Blogger from your website? - php

Im working on a small business website dashboard and want to include a feature allowing the user to post to their blogger blog directly from their independent website dashboard - eliminating the need to go to the blogger website. The form would simply be a text field and post button. I realize that some sort of authentication will be necessary so this needs to be included in the solution in some way. I know that you can post to a blog via a registered email address.
Would this be a simple mailto form? Does anyone know of a script that does this?

Blogger has an API for this, that's pretty straightforward.
http://code.google.com/apis/blogger/docs/1.0/developers_guide_php.html#CreatingPublicEntries
Forms with mailto actions are generally a bad idea - they're not globally supported and a lot of people use webmail these days, too.

Related

Redirect visitor to their language based on Cloudflare GEO TARGET

I’m reading out through a lot of tutorials and different websites, although I’m not a programmer, I tried my best, as I’m sure it can be done, but I’m on a dead end.
I’m trying to use the HTTP header that Cloudflare sends ["HTTP_CF_IPCOUNTRY"]); to redirect the user to its country. I need to be able to send multiple locations to same country (Mexico, Spain, Colombia.... to mysite.com/es/) and i need to be able to create multiple rules (so send Spanish speakers to mysite.com/es and German speakers to mysite.com/de/ and if not set, then redirect to main site mysite.com). It should be just necessary to create a redirection from the home page (mysite.com).
Would anyone help me doing so on the functions.php file or any other method? I tried looking for a plugin as well… I’m really surprised no one, not even Cloudflare put this on a plugin.
Thanks a lot.
It is not default functionality within your Cloudflare account, but it can be accomplished with some tinkering on your server. This discussion has details that might be helpful to review.
Also, this is something that should be pretty easy to accomplish with a Cloudflare Worker, but you would need some programming chops to try that.

Need advanced help, Wordpress & mailchimp

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.

How to use Google Login without plugin in WordPress?

I have seen some websites who allows their users to register or log in with social networks. I want to do the same for my WordPress blog, I already started to learn about it, but the more I read, the more I am getting confused. That's why I am asking for the help here.
I want to allow my WordPress blog users to log in or register with Google. I Have already created Client ID, Email address, Client secret, Redirect URIs, JavaScript Origins. But I don't know how to use them.
Well using a plugin for this sort of functionality is absolutely recommended, because you dont have to care about the security and other issues. Even seasonal programmers get a bit confused using the OAuth library but to start with checkout this tutorial it is as simple as it can be.
http://www.w3resource.com/API/google-plus/tutorial.php
Either way you will have to still create your own plugin and once you get the data from the google api, you will have to use a function like wp_create_user or wp_insert_user to register those users. This is pretty much what a (free) out of box plugin can do for you.

POST data, Sessions and other forms transmitted to another website

I am an affiliate of an online store, and I promote it through my own website which is targeted for a specific language.
One of the issues i'm having with my affiliated site, is that he would not translate his website to the language I am promoting it in. Meaning, when I redirect to his website with my referral code, the visitor is suddenly seeing English text as the affiliated site is not supporting the visitor's language.
I thought I would replicate his entire website (Magento based) and translating it all.
But the problem is that I don't and can't handle the actual payment processing, so I need to transfer all POST data, Session info and everything relevant to the action script on the affiliated website without showing it to the visitor.
Is that possible? Can anyone think of a better way to accomplish what i'm trying to do here?
Thanks,
This wouldn't be a particularly simple project, but it's possible. You would need to create a payment method that forwards to the other site, basically what Paypal does. You'll need cooperation from the other site owner to have him allow you to send all the cart / user data at once.
If the other site owner offers an API to his site, that would be a good route to go down as well.
Hope that helps!
Thanks,
Joe

open id or single sign on like stackoverflow

I m very impressed with the idea of stackoverflow, the way they provide the options to login to the users is very easy for any user. And if I have to do the same thing in my website then how its going to be. what will be the coding structure and coding snippets for the same in php , mysql and javascript (ajax).
https://stackoverflow.com/users/login
Here is a simple OpenID class, that provides some functionality. First, you need to register an OpenID URL, then, simply type your OpenID in form in openid-example.php and it will redirect you to your OpenID provider, just as you do it on StackOverflow. Then, after your confirmation, it will redirect you back with some personal information, which you can use on your site.

Categories