Welcome Guest, Not a member yet? Register   Sign In
How to change site_url if site isn't in iframe
#1

[eluser]simotho[/eluser]
Hi,
Is it possible to change the site_url if the page is in an iframe.

For example i have my site as a facebook application, if the user is on my site through facebook apps, the site_url should be apps.facebook.com/application, but if the user is on my site directly and not throught facebook, the site_url should be something like this: domain.com/

Really hope someone can help me! :-)
#2

[eluser]ranjudsokomora[/eluser]
Hi simotho,
You may want to check the referral url and do what ever from there.
Or you may also be able to use the $_SERVER["HTTP_HOST"] variable but that would require that your software runs on two different names.




Theme © iAndrew 2016 - Forum software by © MyBB