Android and mobile

Permalink Browser Info Environment
This package completely jacks up a page on Android. There should be some browser specs in future upgrades.

Type: Discussion
Status: New
FatTony1952
View Replies:
FatTony1952 replied on at Permalink Reply
FatTony1952
I actually have it figured out now. Here is the new view.php code for this package.

<?php  
defined('C5_EXECUTE') or die(_("Access Denied."));
$url = parse_url($videoURL);
parse_str($url['query'], $query);
$c = Page::getCurrentPage();
$vWidth=425;
$vHeight=100;
class AgentDetectionHelper{
   var $isMobile = false;
   var $isBot = false;
   var  $op // http operamini phone
      ,$ua // http user agent
      ,$ac // http accept
      ,$ip // remote IP address
      ;


You will want to input whatever mobile device you're coding for on this line (which is line 106 in my file)

if($isMobile=='android'){
jb1 replied on at Permalink Reply
jb1
Hi Tony, thanks for your feedback and code snippet. I'm sure other customers will find this useful.

JB
FatTony1952 replied on at Permalink Reply
FatTony1952
Thanks. My plan was to setup a helper or something to implement it without having to code it directly into the view.php file, but I was under the gun to get this taken care of with a quickness.

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.