[found] take php script turn into UDT

A place to make for-pay "CMS made simple" job offerings
Post Reply
carasmo
Power Poster
Power Poster
Posts: 506
Joined: Thu Feb 08, 2007 6:11 pm
Location: Florida

[found] take php script turn into UDT

Post 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!
applejack
Power Poster
Power Poster
Posts: 1014
Joined: Fri Mar 30, 2007 2:28 am
Location: London

Re: [found] take php script turn into UDT

Post 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...
carasmo
Power Poster
Power Poster
Posts: 506
Joined: Thu Feb 08, 2007 6:11 pm
Location: Florida

Re: [found] take php script turn into UDT

Post by carasmo »

It is not the same. I want to serve different content, not just hide it, different menu no sliders.
applejack
Power Poster
Power Poster
Posts: 1014
Joined: Fri Mar 30, 2007 2:28 am
Location: London

Re: [found] take php script turn into UDT

Post by applejack »

if touch variable mobile == Y

Or just use CSS and media queries to hide show content as applicable
carasmo
Power Poster
Power Poster
Posts: 506
Joined: Thu Feb 08, 2007 6:11 pm
Location: Florida

Re: [found] take php script turn into UDT

Post by carasmo »

Server side is preferable for speed.

http://inspiredm.com/why-responsive-des ... fographic/
applejack
Power Poster
Power Poster
Posts: 1014
Joined: Fri Mar 30, 2007 2:28 am
Location: London

Re: [found] take php script turn into UDT

Post 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.
carasmo
Power Poster
Power Poster
Posts: 506
Joined: Thu Feb 08, 2007 6:11 pm
Location: Florida

Re: [found] take php script turn into UDT

Post 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.
Post Reply

Return to “Help Wanted (commercial)”