View Single Post
Old 06-20-2015, 05:48 AM  
Paul&John
Confirmed User
 
Paul&John's Avatar
 
Industry Role:
Join Date: Aug 2005
Location: YUROP
Posts: 8,603
Quote:
Originally Posted by robwod View Post
In your ad zone areas of the php/html, do a check if == mobile, then show the mobile code, else show the standard code.
Yap something like this:

Code:
<?php
$text = $_SERVER['HTTP_USER_AGENT'];
 if (preg_match('/mobile|android|iphone|blackberry|brew|htc|j2me|lg| midp|mot|motorola|netfront|nokia|obigo|openweb|ope ra.mini|palm|psp|samsung|sanyo|sch|sonyericsson|sy mbian|symbos|teleca|up.browser|vodafone|wap|window s(\.ce)|webos/i', $text))
 {
	//echo "MOBILE<br>";
 }
 else
 {
 //do nothing or something else
	// echo "NOT MOBILE";
 }

?>
__________________
Use coupon 'pauljohn' for a $1 discount at already super cheap NameSilo!
Anal Webcams | Kinky Trans Cams Live | Hotwife XXX Tube | Get your Proxies here
Paul&John is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote