![]() |
|
Zenphoto Mobile Hacks - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Zenphoto Mobile Hacks (/thread-3647.html) |
Zenphoto Mobile Hacks - bollywood - 2008-08-31 I am still using very old zen-photo 1.0.8. Here are some hacks for mobile compatible zen-photo gallery.
now, we need to detect mobile, & replacing existing theme with mobile one. So, we can get theme with $theme = $_zp_gallery->getCurrentTheme(); Replace that line with $UA = isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : ""; if($cldc || $midp || $OPWV || $iphone){
e.g. if($cldc || $midp || $OPWV || $iphone){ So, finally BollySite (http://actress.bollysite.com) zen-photo goes mobile. You may check it on your mobile GPRS. Still I am beautifying the theme in incremental way... but zenphoto team may think to include these feature by next release. Zenphoto Mobile Hacks - acrylian - 2008-08-31 Definatly a good idea, although I don't know anyone who uses a mobile for browsing (yet) and I don't have any mobile phone (yes, I am one of the few people who still don't have one!) to test that but looks quite good in Opera 9's small screen feature. Generally any theme that separates html and css styling should be somehow usable in an mobile environment. So could you please open a feature request ticket and attach that code there, so this does not get lost? Thanks. Zenphoto Mobile Hacks - arun - 2009-03-06 Hi all, acrylian please post new version of mobile mode here!. Zenphoto Mobile Hacks - acrylian - 2009-03-06 This is not my project and we have no mobile theme available (see the themes page). Zenphoto Mobile Hacks - arun - 2009-03-06 Hey i'm just posted my request. please help me to redirect mobile users to another mobile theme, i want only redirect code. not a theme r anything else Zenphoto Mobile Hacks - acrylian - 2009-03-06 But you did address me by name... Anyway, sorry, I can't help with this. Try the above way or try google. Zenphoto Mobile Hacks - arun - 2009-03-06 ok anyway thank you for your kind reply. |