Mobile Site
-
Can I use this script when I use .html files?
Yes, that’s possible. Rename your index.html to index.php and then follow the documentation file to install the script in your index.php file.
-
For people like me who dont have an iphone or blackberry , how to check whether this works or not for thier site?
You can add ?mobile=iphone to the url to force the mobile layout to show in a regular browser. But keep in mind that Mozilla and IE renders the HTML and CSS differently than for example the iPhone browser.
-
The script doesn’t work?
Make sure you used the right type of quotes in the php include (“). I noticed when you copy and paste from the PDF documentation the quotes are wrong.
<?php include ("Mobile/Mobile.php"); ?> -
How to justify the page text?
To do this you add the following css to your Mobile/css/default.css:
.page .content{ text-align: justify; } -
Can i use php files instead of tpl files?
You can use regular PHP code in the tpl files so there is not need to change the extension.
-
I’m getting the following:
Warning: Cannot modify header information – headers already sent by (output started at …...) in ….. on line …
The mobile.php include must be the first line of code you do in your website index.php file. Or you can add
ob_start();
in your index.php file. -
Does this support iPod Touch?
Yes
-
Is this just for wordpress (or can it be used for anything)?
You can use it for all your PHP websites.





148comments