****** PLEASE READ THIS ENTIRE DOCUMENT ****** 

There are many different scripts available to detect Mobile
devices and redirect them to 

This download and the following examples use the MobileESP libraries,
which can be found at "http://blog.mobileesp.com/?page_id=20"

However, we have made some minor modifications to these libraries
to make them more user friendly to use, so if you download new
versions, please make sure you understand how to implement them.
Our customizations are found at the very bottom of the mdetect.php
file and are clearly labeled.

As part of your WP Mobile Pro purchase, we can only provide
technical support for the themes themselves, and NOT these 
redirection scripts.  These are being provided for your convenience
only.  If you require assistance, you shold consult with a 
skilled programmer.  We may be able to assist on a paid consulting 
basis.

There are two methods that you can use to implement these scripts.

First, you can use PHP, if your site supports it.

Second, you can use JavaScript if you prefer, or if your site
does not support PHP.

We are also working on a WordPress plugin to make this process
easy if your full site is running on WordPress.  The plugin
should be available in the WP Mobile Pro members' area sometime
around October 1, 2011.

*** PHP EXAMPLE:

Step 1. Place the following lines of code at the VERY TOP of the
		PHP file(s) for your website:

<?php
	$mobileSiteURL="http://PUT_YOUR_MOBILE_URL_HERE";
	require_once("mdetect.php");
?>

Step 2. Replace the "http://PUT_YOUR_MOBILE_URL_HERE" with the actual
		URL you want to redirect mobile browsers to.  NOTE: You must 
		include the full URL (including http://).  DO NOT remove the 
		double quotes!
		
Step 3. Upload mdetect.php to the same folder as the file where
		you included the PHP code above.  If you are including the
		code in files that are in multiple folders, please upload
		mdetect.php to each folder where those file are...unless you
		are a PHP programmer and know how to do this differently,
		this is the easiest way.
		
Step 4. Open your site on a computer and nothing different should
		happen.  Open the site on a smartphone and you should be
		automatically redirected.
		
IMPORTANT: As explained above, this has been tested with several
Mobile Deivices and it DOES work if you follow the instructions 
exactly as written.  If you need assistance, please seek a PHP 
programmer or contact us to book paid consulting time.
		

*** JavaScript Example (for HTML pages):

Step 1. Upload the mdetect.js to the root folder for your domain.

Step 2. Place the following 4 lines of code in the <head> section
		of your HTML page(s) for which you would like redirection
		to work:

<script type="text/javascript" language="JavaScript">
	var mobileSiteURL = "http://PUT_YOUR_MOBILE_URL_HERE";
</script>
<script type="text/javascript" src="/mdetect.js"></script>

Step 3. Replace the "http://PUT_YOUR_MOBILE_URL_HERE" with the actual
		URL you want to redirect mobile browsers to.  NOTE: You must 
		include the full URL (including http://). DO NOT remove the 
		double quotes!
				
Step 4. Open your site on a computer and nothing different should
		happen.  Open the site on a smartphone and you should be
		automatically redirected.
		

*** Bypass the Redirect:

The redirect functionality can be bypassed by including the following parameter in the URL -- "?mobileBypass=true".

This will prevent redirects for the remainder of a browser session. This is often used in the footer of mobile sites with a link that says "view full site". Example URL:

http://PUT_YOUR_URL_HERE/?mobileBypass=true

Addtionally, if you want to give users the option to "revert" to the mobile site on your main site, then you add "?mobileBypass=false" to the end of your URL. 

http://PUT_YOUR_URL_HERE/?mobileBypass=false



IMPORTANT: As explained above, this has been tested with several
Mobile Deivices and it DOES work if you follow the instructions 
exactly as written.  If you need assistance, please seek a PHP 
programmer or contact us to book paid consulting time.
		


		