Page 1 of 1

[found] take php script turn into UDT

Posted: Fri Mar 29, 2013 7:13 pm
by carasmo
This script https://github.com/serbanghita/Mobile-Detect/tree/2.5.8 is a mobile detect php script that is updated frequently to detect mobile devices, I just don't want ipad and the galaxy tab in that list (they are mobile but big enough and all my scripts have touch support so it's not important to me).

I need it to work like:

http://www.i-do-this.com/blog/14/Make-y ... bile-ready

Where there is a variable that if it's mobile then and if not the other or whatever (see the i-do-this blog post).

Need this in 2 weeks or less. How much (budget max at $200.00 USD) so please go easy on me. Also need instructions on what to update when new stuff comes out.

Thanks!

Re: [found] take php script turn into UDT

Posted: Fri Mar 29, 2013 9:57 pm
by applejack
Hi carasmo

That's not a good way to do it as like you said there are numerous new devices you should be detecting functionality i.e. if touchscreen.

Use Modernizer it is easy...

Re: [found] take php script turn into UDT

Posted: Fri Mar 29, 2013 10:22 pm
by carasmo
It is not the same. I want to serve different content, not just hide it, different menu no sliders.

Re: [found] take php script turn into UDT

Posted: Sat Mar 30, 2013 3:08 am
by applejack
if touch variable mobile == Y

Or just use CSS and media queries to hide show content as applicable

Re: [found] take php script turn into UDT

Posted: Sat Mar 30, 2013 2:39 pm
by carasmo
Server side is preferable for speed.

http://inspiredm.com/why-responsive-des ... fographic/

Re: [found] take php script turn into UDT

Posted: Wed Apr 17, 2013 10:13 am
by applejack
Hi Carasmo

Did you ever get this sorted. I've got a project at the moment retrofitting a site to be responsive where this might be useful.

Re: [found] take php script turn into UDT

Posted: Fri Apr 19, 2013 3:17 pm
by carasmo
Sorry, I just saw this. Yes, it was done. It works for the most part, but some tablets send out that it's a phone. I don't know if this is because browserstack's set up, but IOS is fine, a phone is a phone and a tablet is a tablet but android galaxy tablet is a phone to the script, which is probably not the case on the actual device. I can only test on real devices, which is an iPad and a smart android phone plus various browsers and OS. It appears to work great as long as you have CSS for the gaps. I basically use it to only show 3 images in the slider, or not load scripts or whatever. It doesn't appear to work in the {content} tag, but that might be because I set it up strangely. Email me christinabeymer(youknow)gmail(dot)com, I haven't packaged it up for sharing so give me some time, a couple days should do it.