GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Webmaster Q & Fuckin' A (https://gfy.com/forumdisplay.php?f=27)
-   -   You good at Mobile Redirection? (https://gfy.com/showthread.php?t=971627)

zoddy 06-03-2010 11:47 AM

You good at Mobile Redirection?
 
I am looking for someone to give me a hand with mobile redirection and a couple things I want to be able to do with it. I don't think it is a lot of work but would be willing to compensate for someone with the proper Mobile skills...

222 569 966 on icq
hit me up

svzcom 06-03-2010 08:04 PM

Here´s an exemple in php:


Code:

<?php
if(strstr($_SERVER['HTTP_USER_AGENT'],'Android') ||
  strstr($_SERVER['HTTP_USER_AGENT'],'webOS') ||
  strstr($_SERVER['HTTP_USER_AGENT'],'iPhone') ||
  strstr($_SERVER['HTTP_USER_AGENT'],'iPod')) {
  header('Location: http://www.google.com');
  exit;
}
?>


and one in javascript:


Code:

var uagent = navigator.userAgent.toLowerCase();
 if(uagent.indexOf('android') ||
    uagent.indexOf('webos') ||
    uagent.indexOf('iphone') ||
    uagent.indexOf('ipod')){
    document.location = 'http://www.google.com';
}

Hope this can help you :thumbsup

Jack Sparrow 06-03-2010 11:00 PM

Use htaccess redirect codes. Safest way.
If you need any help, just hit me up and i will see if i can help you with something.

fatfoo 06-05-2010 04:24 PM

Good luck, zoddy.

zoddy 06-21-2010 08:47 PM

hey thanks guys, actually figured out what i was going to do..... i might still hit u up in the future.... cheers


All times are GMT -7. The time now is 03:41 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123