Thanks for the goMobile mod! It's very useful when creating a mobile site.
I may have found a slight problem, although I haven't tested it yet as I'm still busy building my mobile website.....
It's to do with the 'switch to full site' button. I see it uses cookies, but if the user's browser doesn't support cookies or the user has them disabled, the site will keep bouncing back to the mobile one.
Off the top of my head, maybe you could swap the button for a mesage if cookies are disabled.....although this isn't easy because on first load you don't know (without javascript) if cookies are enabled or disabled.
Either that, or when they click the button, write their choice to the database?
Only other thing I can think of would be to amend the zen_href_link function in includes/functions/html_output.php to always pass the 'fullsiteoverride' in the URL in the section where it tacks the zenid to the URL?
Something like
Code:
if (isset($sid)) {
$link .= $separator . zen_output_string($sid);
if (isset($_GET['fullsiteoverride'])) $link .= '&fullsiteoverride=' . $_GET['fullsiteoverride'];
}
Not a big issue really but could be slightly annoying to users when they can't access the full website!
Bookmarks