If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

After Mobile Redirect - View Full Site link

I have a mobile redirect that works and points to a template mobile site. Now I need to bypass that and have the option to view the "Full Site" through a link on the mobile site. I've read the best way to do this is by setting a cookie, and found a site that gives example files to do this.

Can't help with the cookie thing, but an alternative. I pass a parameter "mode" to my main site, and in the main site index.php file, if "mode" is present and = "desktop", I don't do the mobile redirect, and go right to the main site view. If mode="mobile" I jump right to the mobile site without checking, and if mode doesn't exist, I do the redirect check and do whatever it decides. Then on the mobile site, the link to the main site looks like "index.php?mode=desktop"

Thanks, sounds like it could work for my setup. Do you have an example page that's using this that I could see the code your talking about? I'd really like not to use cookies if I don't have to just because people maybe not be set to accept them, so this sounds like it would be an even better solution.

"ismobile" is the call to your mobile checker, which you said you already had. You can call it whatever you want, I just happen to call mine ismobile. It needs to return true if the client is mobile.

Just a note... it is quite dangerous to be using code from random sources on the internet without truly knowing what it does. PHP code has the ability to do absolutely anything to your site, and if you're not thoroughly reading through and understanding it, you are placing a fair bit of faith in the source it came from. That includes code from me, by the way.

tracknut, thanks for the code. I tried it on my mobile site and it works. But I have the same problem as xover15, when you go to main site from mobile site, page links on the main site do not work, it sends you back to the mobile site. Any idea on how to fix that?

neonstring.com works fine as it should on a desktop browser. When you go "neonstring.com" on a mobile device, it redirects to "m.neonstring", that's good. Then, when I click on the "Full Site" link, it redirects to "neonstring.com", that's also good. But, when I click on the "Photos", "Videos", "About Us", etc. links they redirect back to "m.neonstring", that's not good.