Jump to content

Redirect Mobile shop-viewers to mobile site (1.4.9)


CrossY

Recommended Posts

Hi,

 

 

Since im still using 1.4.9, i'm looking for a way to redirect mobile shoppers to a different mobile website.

 

The mobile site will be created in HTML or whatever, it's just for the viewers to browse the items, so it's not a mobile version of the website. They don't have to place their orders on their phone or whatever.

 

Is this possible? How do I make my website recognize these mobile shoppers?

 

 

Thanks in advance,

Dave

Link to comment
Share on other sites

Update:

I've tried using the following script: http://www.dynamicsi...edetection.html

 

Placed the

<?php include("inc/mobiledetect.php");
DetectBrowser();
?>

at the top of my index.php file, but then it gave the following error:

 

Deprecated Function eregi() is deprecated in /home/xxx/domains/xxx.nl/public_html/mobiel/mobile.php on line 11
Edited by CrossY (see edit history)
Link to comment
Share on other sites

Hi CrossY,

 

It means that your hosting has a version of PHP that say 'EREGI' is an old, obsolete, deprecated function, please rewrite DetectBrowser() with modern PHP.

 

There is no bug, just a warning that EREGI is no longer used. I think you can replace it with preg_match().

 

Good luck :)

 

Regards

Link to comment
Share on other sites

Hi math_php,

 

Thanks for your reply.

 

I'm now getting the following:

 

 

Warning: preg_match() [function.preg-match]: Delimiter must not be alphanumeric or backslash in /xxxx/public_html/mobiel/mobile.php on line 11

 

Deprecated: Function eregi() is deprecated in /xxxx/public_html/mobiel/mobile.php on line 11

Warning: preg_match() [function.preg-match]: Delimiter must not be alphanumeric or backslash in /xxxx/public_html/mobiel/mobile.php on line 14

Warning: preg_match() [function.preg-match]: Delimiter must not be alphanumeric or backslash in /xxxx/public_html/mobiel/mobile.php on line 17

Warning: preg_match() [function.preg-match]: Delimiter must not be alphanumeric or backslash in /xxxx/public_html/mobiel/mobile.php on line 19

 

Anyone can help me out with a proper code?

 

Thanks in advance!

 

Gr,

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...