[UPDATE] this plugin has been updated to 1.2.1 to add support for removing the cookie. See the comments of this post for more info.
I just wanted to write a quick post to let you know that MobileESP for WordPress version 1.2 has been released. This release contains the latest version of the MobileESP library as well as a bugfix for the full site url link bug which was requiring clicking on the link twice. Get the latest version from the WordPress.org Plugin repo or update the plugin from your dashboard.
13 thoughts on “MobileESP for WP 1.2 Updated”
Thanks for this great plugin!
Is it possible to switch between the mobile and desktop site?
I hear some people ask me with an Ipad why they could only see my mobile version.
It would be nice if I could place a link on both desktop and mobile site so they could switch manual.
@wilfred, yes as of verson 1.1.3 you can add a link on the mobile site to example.com?view_full_site=true and that will set a cookie named “mobileesp_wp_full_site” and show the full site. You can see the FAQ on WordPress.org plugin page for more info. I have yet to make it so you can switch back to the mobile site with a link. However, to do this all you would need to do is make a link to clear the cookie. I would suggest adding a link to the footer of your site if the cookie is set to show the link back (Something likeexample.com?view_full_site=false then unset the cookie. If i get the time I’ll make it part of the plugin to unset the cookie.
Just added 1.3 to the repo which allows you to remove the cookie by linking to “example.com?view_full_site=false” See http://pastebin.com/dQiMj7AP for example code
Thanks, it works!
The only problem is that I have to click twice on the links.
For example: When I first click on View Full Site, nothing happend but after I click again, it opens the full site.
What type of device? You had to click twice prior to V 1.2 But thought i fixed it in 1.2. Maybe i mucked something up with 1.3.
A samsung mobile phone.
But I do most testing with Adobe Device Central CS5.5
When I’m on the Full site and I click on the link to the mobile site, I get first redirected to the home page of the full site and after I click again it redirects me to the mobile site.
@wilfred, I the problem is two fold; first we should probally be linking from the fullsite to the mobile site. For exampe, m.example.com?view_full_site=false this should immediantly take the user back to the mobile site. Next, you’ll want to write code to unset the cookie on the mobile site. Here is some example php code you could use on your mobile site. http://pastebin.com/4bRCSDN5
I’ve added your code to the mobile index.php. First, nothing happend but after I change the link on the desktop site and point in directly to the mobile/index.php it works!
So, there’s maybe a problem with the cookie, the page will load first and then remove the cookie so you have to reload the page.
The only time the cookie comes into play is when on the full site checking to see if the user should be redirected. I was just telling you how to clear the cookie on the mobile site so if they typed in the full site url they would be redirected. At this point I think everything is working as intented. Either that or I would have to see the problem.
Yes it’s working! Thank you very much.
Im having to press the “full site” button twice still.
I have the link sending to:
sends the user to:
which is 404’s them on our desktop site.
Is there another way to get the cookie on the users phone without having to 404 them or have them click full site twice?
You should be sending the user to the FULL url (including http://) otherwise you will get a 404 error. Depending on your server setup the “www” may or may not be optional.
When I visit your site I do not see the full site link on the page as it appears to be hidden behind an image. This is true on both my mobile device and from a web browser.
You shouldn’t have to click the link twice with the latest version 1.2.1 is this the version you are running?
According to my plugins page I’m running Version 1.3?
I have the url pointing to http:/www now and it doesn’t 404 any more, but the user still has to click on view full site twice.
Could it be the version of WordPress im running?