Jump to content

Integration with iPhone / iPod Touch


Guest TheMac

Recommended Posts

Posted

Actually, in v2.3.x, you can change one line of code and re-use the "Skin Remapping" option in the Admin CP.



/sources/ipsclass.php line#2250


Change:

if ( stristr( $this->query_string_real, $data['map_url'] ) )


To:

if ( stristr( $this->user_agent, $data['map_url'] ) )



Then in the admin tool for skin remapping, add two remap definitions of: "ipod" and "iphone", and set them both to an iphone/touch specific skin, and you now have skin on demand. I tested it with my ipod touch, and it works fine. Of course if you do any sort of url remapping to skins, that won't work unless you also add the query_string_real in the check, and do a lil more code changing. But, for the purpose of what someone asked about... the above works with very little effort.



would this work for other mobile devices. . .like blackberry?

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...