VO-BB - 20 YEARS OLD! Forum Index VO-BB - 20 YEARS OLD!
Established November 10, 2004
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

At the end of my art

 
Post new topic   Reply to topic    VO-BB - 20 YEARS OLD! Forum Index -> Chat
View previous topic :: View next topic  
Author Message
Deirdre
Czarina Emeritus


Joined: 10 Nov 2004
Posts: 13023
Location: Camp Cooper

PostPosted: Mon Apr 05, 2010 10:06 pm    Post subject: At the end of my art Reply with quote

Does anyone know how to configure a website to detect and redirect mobile devices?

I have spent several hours on failed attempts tonight.

I know about http://detectmobilebrowsers.mobi/
Unless I've gone completely blind, it's no help with where to put the scripts you create.
_________________
DBCooperVO.com
IMDB
Back to top
View user's profile Send private message Send e-mail Visit poster's website
asnively
Triple G


Joined: 17 Jun 2006
Posts: 3204
Location: Los Angeles

PostPosted: Mon Apr 05, 2010 10:28 pm    Post subject: Reply with quote

I think you put the script in your HEAD tag and bracket it with <script></script>
_________________
the Amy Snively family of brands for all your branded thing needs.
Amy Snively
Faff Camp
FaffCon
TalkerTees
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Deirdre
Czarina Emeritus


Joined: 10 Nov 2004
Posts: 13023
Location: Camp Cooper

PostPosted: Mon Apr 05, 2010 10:43 pm    Post subject: Reply with quote

PHP is different, and stands along or goes before the HTML open tag if the server will accept it there.


Those <script> tags are for javascript and stuff.
_________________
DBCooperVO.com
IMDB
Back to top
View user's profile Send private message Send e-mail Visit poster's website
asnively
Triple G


Joined: 17 Jun 2006
Posts: 3204
Location: Los Angeles

PostPosted: Mon Apr 05, 2010 11:57 pm    Post subject: Reply with quote

Right. PHP.

So you're making a tree on your PHP page, right?

I found this discussed here:
http://mobiforge.com/developing/story/lightweight-device-detection-php

I've never used PHP. I'm still trying to graduate from nested table to CSS. I applaud your 21st century-ness!
_________________
the Amy Snively family of brands for all your branded thing needs.
Amy Snively
Faff Camp
FaffCon
TalkerTees
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Deirdre
Czarina Emeritus


Joined: 10 Nov 2004
Posts: 13023
Location: Camp Cooper

PostPosted: Tue Apr 06, 2010 8:25 am    Post subject: Reply with quote

"Making a tree"! You're over my head.

I am going to try some .htaccess stuff.
_________________
DBCooperVO.com
IMDB
Back to top
View user's profile Send private message Send e-mail Visit poster's website
kgenus
Seriously Devoted


Joined: 01 Dec 2004
Posts: 889
Location: Greater NYC Area

PostPosted: Tue Apr 06, 2010 2:59 pm    Post subject: Reply with quote

It has to be some server side scripted language, I used PHP.

1. Grab the file I put here and copy its contents to the clipboard.
2. Open your index.html file, SAVE AS index.php.
3. Paste the clipboard contents.
4. Locate the line near the end that contains [YOUR REDIRECTED SITE] and change it to your mobile site.
5. Save file, upload and test with mobile device.

That's the quickest way to do it. I'll leave that link up for 30 days, the file needs to be updated because it's old, but that's the info you're after.



***********************
I just saw the other link, you could do the same with that, it's not as efficient....
***********************
_________________
Genus
Back to top
View user's profile Send private message Visit poster's website
Deirdre
Czarina Emeritus


Joined: 10 Nov 2004
Posts: 13023
Location: Camp Cooper

PostPosted: Tue Apr 06, 2010 3:36 pm    Post subject: Reply with quote

kgenus wrote:

3. Paste the clipboard contents.


Kevin says to paste the code at the top, above the HTML document declaration.
_________________
DBCooperVO.com
IMDB
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Mandy Nelson
MMD


Joined: 07 Aug 2008
Posts: 2914
Location: Wicked Mainah

PostPosted: Tue Apr 06, 2010 5:52 pm    Post subject: Reply with quote

Now that's some sweet help!
_________________
006 member of the Sisterhood of the Traveling Mic. Bonded by sound.

Manfillappsoc: The Mandy and Philip mutual appreciation Society. Who's in your network?

Have you seen my mic closet? ~ me to my future husband
Back to top
View user's profile Send private message Visit poster's website
Deirdre
Czarina Emeritus


Joined: 10 Nov 2004
Posts: 13023
Location: Camp Cooper

PostPosted: Tue Apr 06, 2010 7:33 pm    Post subject: Reply with quote

Yes, this is totally FOR THE WIN.
The code just needs the closing ?>

I renamed my index.html page to index.php.

I put my mobile website this bit of code
Code:
Location: http://[YOUR REDIRECTED SITE]

and added the ?> at the very end of it all and pasted the whole shebang in above the html doc declaration.
_________________
DBCooperVO.com
IMDB
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Mandy Nelson
MMD


Joined: 07 Aug 2008
Posts: 2914
Location: Wicked Mainah

PostPosted: Tue Apr 06, 2010 7:50 pm    Post subject: Reply with quote

OHHH, gonna try gonna try gonna try!! Thanks for the share.
_________________
006 member of the Sisterhood of the Traveling Mic. Bonded by sound.

Manfillappsoc: The Mandy and Philip mutual appreciation Society. Who's in your network?

Have you seen my mic closet? ~ me to my future husband
Back to top
View user's profile Send private message Visit poster's website
Deirdre
Czarina Emeritus


Joined: 10 Nov 2004
Posts: 13023
Location: Camp Cooper

PostPosted: Tue Apr 06, 2010 8:00 pm    Post subject: Reply with quote

As soon as I'm sure about the way the mobile site works, I'll post a link to the website I was using to test this.

WOO.
_________________
DBCooperVO.com
IMDB
Back to top
View user's profile Send private message Send e-mail Visit poster's website
asnively
Triple G


Joined: 17 Jun 2006
Posts: 3204
Location: Los Angeles

PostPosted: Tue Apr 06, 2010 9:39 pm    Post subject: Reply with quote

Awesome!
_________________
the Amy Snively family of brands for all your branded thing needs.
Amy Snively
Faff Camp
FaffCon
TalkerTees
Back to top
View user's profile Send private message Send e-mail Visit poster's website
bobsouer
Frequent Flyer


Joined: 15 Jul 2006
Posts: 9883
Location: Pittsburgh, PA

PostPosted: Tue Apr 06, 2010 10:20 pm    Post subject: Reply with quote

Really awesome!
_________________
Be well,
Bob Souer (just think of lemons)
The second nicest guy in voiceover.
+1-724-613-2749
Source Connect, phone patch, pony express
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address MSN Messenger
JBarrett
M&M


Joined: 19 Feb 2007
Posts: 2043
Location: Las Vegas, NV

PostPosted: Wed Apr 07, 2010 11:54 am    Post subject: Reply with quote

Heavy W00Tage happening here!
_________________
Justin S. Barrett
http://www.justinsbarrett.com/
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    VO-BB - 20 YEARS OLD! Forum Index -> Chat All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group