Project / Support Center
Welcome, %1$s. Please login or register. February 28, 2024, 09:38: AM
Web Global Net Web Application & Web Development Project Center  |  Technical Issues  |  Mobile Devices  |  : Found something else we like for detecting a mobile device for a show if - else 0 and 1 Guest are viewing this topic. « previous next »
: [1]
: Found something else we like for detecting a mobile device for a show if - else  ( 21176 )
admin
Administrator
******


: 239


« : January 22, 2017, 09:17: PM »

Download the mobile_detect.php file and place it where you want on your server.

Here's the show if scripting

 <?php include("mobile_script/Mobile_Detect.php");  // Check for any mobile device.
$detect = new Mobile_Detect(); ?>


<?php if ($detect->isMobile()) { ?>

   show if mobile

<?php } else {  ?>

   show if desktop

   <?php } ?>

* Mobile_Detect.php (80.55 - downloaded 1266 times.)
 

The Unknown Webmaster
: [1]  
Web Global Net Web Application & Web Development Project Center  |  Technical Issues  |  Mobile Devices  |  : Found something else we like for detecting a mobile device for a show if - else « previous next »
:  


Powered by MySQL Powered by PHP Valid XHTML 1.0! Valid CSS!
Sorry, the copyright must be in the template.
Please notify this forum's administrator that this site is missing the copyright message for SMF so they can rectify the situation. Display of copyright is a legal requirement. For more information on this please visit the Simple Machines website.