Mobile detect with cookies - Artodia: Mobile and SEO
Mobile detect with cookies
I have made a further modification to the mobile_detect script provided with this style so that it stores the user choice in a cookie, and therefore "persists" between sessions. That way, if a user selects "Full Style" in a certain device, it will continue using the original style until he/she clicks on "Mobile Style", and viceversa. No need to pass "nomobile" parameter around, only when switching.
Please, take a look, verify (as I have only done it in a few devices) and post any issues here, and I will try to help fix them.
download/file.php?id=140258
Note this is a ModX XML file, not fully packaged (missing the XSL file). To open, just copy it to any folder with the standard XSL file for ModX.
Hope this helps, regards,
-javiexin
PS: I attach the file again as I received some reports of failed downloads from previous link.
- Attachments
-
- detect_mobile_cookies.zip
- (2.54 KiB) Downloaded 542 times
- javiexin
- Code Contributor
- Posts: 1157
- Joined: Wed Oct 12, 2011 11:46 pm
- Location: Madrid, Spain
- Name: Javier
- Contact:
Re: Mobile detect with cookies
-
- Registered User
- Posts: 2
- Joined: Tue May 15, 2012 5:03 am
- Contact:
Re: Mobile detect with cookies
Note this is a ModX XML file, not fully packaged (missing the XSL file). To open, just copy it to any folder with the standard XSL file for ModX.
this is what I don't understand
- noth
- Registered User
- Posts: 2528
- Joined: Fri Jan 07, 2005 7:10 pm
- Location: North Surrey
- Contact:
Re: Mobile detect with cookies
- javiexin
- Code Contributor
- Posts: 1157
- Joined: Wed Oct 12, 2011 11:46 pm
- Location: Madrid, Spain
- Name: Javier
- Contact:
Re: Mobile detect with cookies
- Stoker 4.0
- Registered User
- Posts: 1487
- Joined: Sun Feb 13, 2011 1:33 pm
- Location: Funen, Denmark
- Name: Ulrik Christensen
- Contact:
Re: Mobile detect with cookies
No change in this respect vs the standard version.Stoker 4.0 wrote:Does this version make the style default for bots?
-javiexin
- javiexin
- Code Contributor
- Posts: 1157
- Joined: Wed Oct 12, 2011 11:46 pm
- Location: Madrid, Spain
- Name: Javier
- Contact:
Re: Mobile detect with cookies
Thanks for making this.
- Stoker 4.0
- Registered User
- Posts: 1487
- Joined: Sun Feb 13, 2011 1:33 pm
- Location: Funen, Denmark
- Name: Ulrik Christensen
- Contact:
Re: Mobile detect with cookies
-
- Registered User
- Posts: 12
- Joined: Sat May 08, 2010 7:26 pm
- Contact:
Re: Mobile detect with cookies
-javiexin
- javiexin
- Code Contributor
- Posts: 1157
- Joined: Wed Oct 12, 2011 11:46 pm
- Location: Madrid, Spain
- Name: Javier
- Contact: