Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt November 11, 2024
2Transform Posted August 4, 2008 Posted August 4, 2008 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?
Mat Barrie Posted August 4, 2008 Posted August 4, 2008 If you know the UA, yes. New Blackberrys run Windows Mobile, so you can just identify them by the IE Mobile string.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.