Quantcast
Channel: drupal.org - Site administrators
Viewing all articles
Browse latest Browse all 426

How to show TinyBox Splash on Certain Browser

$
0
0

On certain device you may want to enable and disable Splah screen by TinyBox. In example, you may want to show TinyBox on Firefox browser but hide it when Symbian browser detected.

In this example we want to show TinyBox Splash screen only on Firefox browser:

  1. Go to TinyBox Configuration page
  2. Select Show on which this PHP code returns TRUE (experts only)
  3. Enter these code below:
    <?php
     
    if (strpos($_SERVER['HTTP_USER_AGENT'], 'Firefox') == FALSE) {
        return
    0;
      }
      else {
        return
    1;
      }
    ?>

Viewing all articles
Browse latest Browse all 426

Trending Articles