Page 1 of 1

"View Full Version" on mobile devices

Posted: Thu Mar 07, 2013 8:50 pm
by KarlDD
Hello Forum,

I have recently built a site using this method of mobile detection by Goran, I am sure others have used this method for mobile detection too.

My question, is there a way to add a "View Full Version" or "View Full SIte" link that disables the mobile stylesheet and use the original stylesheet for that session?

I think it is important the user has the option to view the full version by choice.

The site, by the way, can be found here:
http://kerikerifigs.co.nz/

Thanks in advance.

Re: "View Full Version" on mobile devices

Posted: Wed Oct 16, 2013 11:00 am
by urheat
Has anyone a tip how to achieve this?

Re: "View Full Version" on mobile devices

Posted: Wed Oct 16, 2013 11:12 am
by Rolf
Give the visitor a link "show desktop view" or something. You should set a cookie "show_desktop" using http://www.cmscanbesimple.org/blog/set- ... ug-cookies to save this.

Code: Select all

{setCookies days='1' show_desktop='true'}
You can by-pass the mobile detection. Something like (untested):

Code: Select all

{if $smarty.cookies.show_desktop != 'true'}
  {mobile}{capture assign='mobiletemp'}{$mobile_detect}{/capture}
{/if}

Re: "View Full Version" on mobile devices

Posted: Wed Oct 16, 2013 11:03 pm
by uniqu3

Re: "View Full Version" on mobile devices

Posted: Thu Oct 17, 2013 4:53 am
by urheat
Thanks!

I think this is solved for now. I didn't write the first post (I just bumped the topic) so I can't mark this as "solved".