It's simple to build a web theme for johnCMS with auto detect user agent (no need sql)
here is the syntax
<?
-------
if(stristr($_SERVER['HTTP_USER_AGENT'],'windows') || stristr($_SERVER['HTTP_USER_AGENT'],'linux') ||
stristr($_SERVER['HTTP_USER_AGENT'],'macintosh') || stristr($_SERVER['HTTP_USER_AGENT'],'unix') ||
stristr($_SERVER['HTTP_USER_AGENT'],'macos') || stristr($_SERVER['HTTP_USER_AGENT'],'bsd'))
{
echo 'Your web theme content';
}
-------
?>
Demo:
http://nguprus.com
download
make sure use your PC before see the demo
s@m, it's only the way of switching between web/pda, but where is the archive with the moded files?
attach it, or i will close the topic
seg0ro (07.07.2011/03:21)
s@m, it's only the way of switching between web/pda, but where is the archive with the moded files?
attach it, or i will close the topic
just use the syntax,. no need a modules.
Here are my head.php, end.php, web content, and style.css
hope u enjoy it
one more russian word and ban for 1 week
not you, but other people from Russia
Can i use it for johncms 4.1 ?
chatgirlviet (07.07.2011/11:53)
Can i use it for johncms 4.1 ?
yap, just replace
//web
bla bla bla
in my head.php and end php to ur jcms v4.1's head and end.php
can i use the web theme and mobile theme on same site?