You could use javascript in the template to set a simple cookie and then retrieve the value and if no value is returned dynamicly print some text saying so. I think using the <noscript> tag to indicate to the viewer that they do not have javascript enabled would suffice.
code:
<script language="javascript" type="text/javascript">
function readCookie(name){
var cname = name + "=";
var dc = document.cookie;
if (dc.length != 0) {
begin = dc.indexOf(cname);
if (begin != -1) {
begin += cname.length;
end = dc.indexOf(";", begin);
if (end == -1) end = dc.length;
return unescape(dc.substring(begin, end));
}
}
return null;
}
function putCookie(name, value) {
var expires = new Date();
expires.setTime(expires.getTime() + {$config['cookieexp']});
document.cookie = name + "=" + escape(value) +
((expires == null) ? "" : "; expires=" + expires.toGMTString()) +
"; path={$config['cookiepath']}";
}
putCookie('dough', 1);
var isBaked = readCookie('dough');
if (isBaked == null) {
document.write('There was a problem setting cookies. Please make sure you have cookies enabled. Thanks.<br />');
}
</script>
<noscript>
You do not seem to have javascript enabled. Please correct this now. Thanks.<br />
</noscript>
I think this code will work... lol
I haven't tried it or used it as of yet. Let me know what happens.
