Mobilesite 1.0
Here�s another plug that I have. It allows users to access your site via mobilephone. There is no skin in the package, but as a starter, the Antartica blank skin (
http://www.neocrome.net/page.phpşal=antartica ) is a good skin to start with, since it works ok with a mobilephone. There are though some things that has to be changed to look good (e.g. forum.posts.tpl) but that you can play around with in the CSS and tpl files..
With this plug, you dont need separate domainnames, and no need for "duplicated" setups..
What it does, is it checks the device type when the page is loading, and if it is a mobile device, it forces the skin to be whatever is set in the
mobilesite.header.first.php
Installation:
1. Download the Antartica skin (or whatever skin you want to use, that fits a mobile phone) and install under the skins directory
2. Unpack the zip file to your plugin directory.
3. Set the skin name in the mobilesite.header.first.php
4. Install the plugin through the plugin-panel
What is left to do:
1. Creating a "default" mobile skin
If I understand you right, you want to use another CSS but the same skinş
You could always specify a new CSS file in the mobilesite.header.first.php file, but I think you will run in to trouble using different CSS for the same skin.. Especially since you will have the same div names but different values.
Would look like this (If you name the CSS mobilesite.css, and place it in the plugin folder):
Kod:
$t-> assign(array(
"HEADER_METAS" => $out['metas'].'<link rel="stylesheet" href="./plugins/mobilesite/mobilesite.css" type="text/css"/>',
));