Profile

Cover photo
Andrea Masters
139 followers|3,421 views
AboutPostsPhotosVideos+1's

Stream

Andrea Masters

Need Help (QnA)  - 
 
Hello all!

I'm trying (very hard!) to get my mobile redirect code to work properly.

The weird thing, it WAS working!

I'm using the method found here:

http://famousthemes.com/mobile-detection-code-tutorial/wordpress.html

The following is my code:

<?php
include("Mobile_Detect.php");
$detect = new Mobile_Detect();
if (!$_SESSION['switched']
&& !is_admin()
&& $detect->isMobile()
&& empty($_REQUEST['wptheme'])
&& get_current_theme() != 'otv.php') {
$_SESSION['switched'] = true;
header('Location: http://www.ontopvisibility.com/wp-content/themes/kallyas/otv.php');
}
?>

What am I doing wrong?!
1
Add a comment...
Have her in circles
139 people
Andrea Berman's profile photo
Webly Bowles's profile photo
Jon Epworth's profile photo
People
Have her in circles
139 people
Andrea Berman's profile photo
Webly Bowles's profile photo
Jon Epworth's profile photo
Basic Information
Gender
Female
Story
Tagline
Geekier than a case full of pocket protectors!
Introduction
I ♥ coding.
I ♥ my doggie.
I ♥ my rat.
I ♥ being Vegan.
I ♥ Star Wars.
I ♥ music.
I ♥ DDR.
I ♥ Toffuti Ice cream.
I ♥ ♥ Law and Order.
I ♥ Sleeping.
I ♥ Laughing.
I ♥ Honest people.
Andrea Masters's +1's are the things they like, agree with, or want to recommend.
Welcome to Sir Ken Robinson's Website
www.sirkenrobinson.com

You&#39;re browser should automatically redirect you to the homepage of Sir Ken Robinson. If it doesn&#39;t, please CLICK HERE.

Grains Of Sand Magnified 250 Times Real Size
www.buzzfeed.com

Grains Of Sand Magnified 250 Times Real Size: Um, whoa. Kind of figured they would just look, you know, sandy...

15 Things That Look Dirty But Aren't
www.buzzfeed.com

15 Things That Look Dirty But Aren't: This post is 100 percent safe for work. Technically. I guess if you're trying to explain to your boss

Health Buzz: A Healthy Diet Isn't Cheap - US News and World Report
health.usnews.com

Trick yourself into eating more fruits and veggies; how to stick with a diet.

Notepad++ Home
notepad-plus-plus.org

Notepad++: a free source code editor which supports several programming languages running under the MS Windows environment.

YouTube - Dog in dress walks like people
www.youtube.com

Create AccountSign In. Home. BrowseMoviesUpload. Hey there, this is not a commercial interruption. You&#39;re using an outdated browser, whi

A Video All Your Republican Friends And Family Should See
www.buzzfeed.com

A Video All Your Republican Friends And Family Should See: ... unless they're billionaires. Bill Maher nails it...

Two Women Fight For A Parking Spot
www.buzzfeed.com

Two Women Fight For A Parking Spot: Innovation and compromise at its finest...

15 Shoes That Defy The Laws Of Physics
www.buzzfeed.com

15 Shoes That Defy The Laws Of Physics: After donning a pair of these shoes, it must take some inhuman balancing skills to keep from falling

YouTube - Rejected Cartoons by Don Hertzfeldt
www.youtube.com

Create AccountSign In. Home. BrowseMoviesUpload. Hey there, this is not a commercial interruption. You&#39;re using an outdated browser, whi

Google+ Cheat Sheet
www.buzzfeed.com

Google+ Cheat Sheet: Let's face it. When it comes to Google+ we're all noobs. So Simon Lausten has created this cheat sheet of helpful tips.

LEGO Batcave
www.buzzfeed.com

LEGO Batcave: This scaled model replica of Batman's Batcave. It mimics most aspects as described by the comic, and it took more than 9000 LE

YouTube - Voice Actor Tara Strong
www.youtube.com

Create AccountSign In. Home. BrowseMoviesUpload. Hey there, this is not a commercial interruption. You&#39;re using an outdated browser, whi