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
Related
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.
I am not sure this is correct SO to post on, but if not admin please feel free to move it to relevant SO or suggest me to move it.
I am using a contractor to help me create a website for some project. He has coded the entire custom website in PHP.
One feature that I requested was that links posted on the website should have the preview feature that we see in Facebook (FB) like in attached picture.
But he keeps saying that I can only use embedded code to create such preview feature. When I show him the FB preview he says FB is probably using technology of its own. Currently if I post the link from youtube to my test website it shows up as text like: https://www.youtube.com/watch?v=jtkUtNzaFPI&t=1909s
My question is:
What exactly is FB using? Is this easy to implement for any PHP developer or is it really time consuming implementation.
"he says FB is probably using technology of its own"
His answer to your question is utter nonsense, and indicates only that he doesn't want to do what you're asking. You hopefully aren't paying him very much.
What Facebook is doing is kind of sneaky, but structurally simple. The order of operations is:
User enters text on Facebook page.
AJAX request is sent to Facebook server with text.
Facebook server parses and sees that there's a link in there.
Facebook server makes a server-side HTTP request to link destination to find out more.
Facebook server parses response for anything it can add to the input template that the user is seeing.
Facebook responds back to user (maybe web sockets? maybe a response to that earlier AJAX request?)
Client-side code on the Facebook page updates what the user is seeing.
Steps 2-6 intuitively sound like they may take a lot of network time, but these tend to be very quick services (Facebook itself, YouTube, etc.) so that's usually not a problem.
The main concern here are Step 3 and Step 5. That's where Facebook is using some custom logic that it likely spent considerable effort defining. There may be libraries which help with that, likely made in response to the demand for this exact feature. I don't have any to recommend, sorry.
The technical implementation is the easy part. Determining from the user's text what data to fetch could be difficult. Determining what data to put in the page could be difficult. That depends on the scope of what you want to implement.
For example, it may be difficult to detect if the user has entered a variety of things you can respond to, but it may be easy (with a regular expression perhaps) to detect if the user has entered what might be a YouTube URL. So if you reduce the problem space to just YouTube previews, then you may be onto something. If you can successfully parse that YouTube link, you're in business. Now you can hit a YouTube API and get information to send back to the page.
Continue with that pattern for other small problem spaces (previewing a link to an image, previewing a link for another popular site, etc.), and you can over time add that same feature.
I'm building a product that involves clients adding their FB app data into my product's dashboard.
In this case each client would have to go to developers.facebook.com/apps and create an app first.
I would want to have a button which says "Create App" in my website that when clicked, would create the app instantly for the client.
So is it possible to create a FB App from my website (with script, not manually) ??
Thanks in advance,
Altin.
It was possible couple of years ago, and now it's been removed.
First of all, I’d think about the question, “does every client really need their own app?”
Maybe it’d also be possible to have all of the stuff you’re planning to do (no details on that) under one app, and have it decide on what data to show based on the fact which client’s Facebook page it gets added to (if it’ll run as page tab app), or by some additional parameter passed to it when calling it. You could f.e. example automatically redirect to a sub-folder on your webspace based on this criteria, that displays individual pages for that client.
If that’s not an option, then yes, your clients will have to set up the basic app themselves (and therefor they’ll need a verified account) – and afterwards tell app id and secret to you. Many of the “advanced” app settings can then be set by you via script – look at what properties are marked as “(Editable via API)” here: https://developers.facebook.com/docs/reference/api/application/
(Although some of the basic settings, like category, description, logo etc. will still have to be set by your client themselves. But other, more “technical” stuff, that the client maybe doesn’t know about and doesn’t even want to be bothered with, like canvas/page tab URLs etc. can be set by you. I’d say that’s as good a compromise as you can get for such a scenario.)
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.
I'm designing a simple web app for some elderly family members, 1 of whom has Alzheimer's. The end goal is to provide them each with a tablet (probably Android but irrelevant for this problem) that would be stripped down to ideally 1 bookmark on the home screen which opens my web app.
What I am looking for are ideas on how to identify the user without the conventional username/password methods. With their condition I know that remembering an username is going to be almost impossible, let alone a password. Ideally I would recognize the device and relate that to a specific user.
There will be other users on the app that access it through normal methods (username+password on PC/mobile/tablet), which I'm handling with Zend_Auth. It's just these 2 users who I am concerned about identifying.
Security isn't a huge concern as the data will not be sensitive in any way, but I still need to differentiate between users.
I am building this in php with Zend Framework. I'm really looking for more ideas than specific code, although anything based in php or javascript would be great. Any ideas or suggestions would be greatly appreciated. Thanks for your help
These advice are only valuable if security is not an issue :
On the bookmarks page, insert a token in the link, which you will use to authenticate the users.
if you can, check in the background for IP/user agent (if there is only one device that needs this simplified auth process, and assuming it's connection uses a fixed IP address)
And a simple idea if you have multiple users using the same device :
on your bookmark page, put a picture of each user
make it clickable, with the token discussed above in the href of the link.
That's simple to implement and easy to remember.
Hope that helps !