I'm working on an iPhone theme but need some help
I've written a theme for G2 before so I don't have any problems actually getting the theme to work (FYI, it looks/behaves like the Photo app on the iPhone).
There's one big issue I need help with:
- How can I tell Gallery to show the iPhone theme per the browser's user-agent value? I basically want to know where in the Gallery codebase do I insert code to check the user-agent string and set the theme to "iPhone" instead of the default.
This of course means, I want to still show the "normal" theme for all other browsers *unless* you're coming from an iPhone.
Make sense?
Thanks in advance.
CJ.
Posts: 32509
you'll need to hack the core module.
see:
http://gallery.menalto.com/node/67662#comment-245394
--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage
Posts: 2
Thanks for the quick reply.
That worked like a charm
Cheers,
CJ.
Posts: 1
codejunkie,
Can you post a link to your gallery once its done?
I'd also be totally interested in a tutorial to get this working.
Thanks,
DigitalOldschool
Posts: 36
Hey. Please do post the link when you get this going. would be a GREAT feature for gallery if this was easily implemented. Just sayin
Posts: 2
Did you get it to work? Have a link to the site?
Posts: 1
Did you manage to finish the plugin?
Posts: 36
Hey, Even if its difficult to pull off, please let us know what you did to get this working. Got a link we can check out?
Posts: 4
Wow, an automatic change to fit the iphone/ipod would be GREAT!
I would be more than glad to help test it if you need it.
Please let us know!
Posts: 1
Please let me know i can help with this
Posts: 2
Anybody able to get this plugin?
I am in need of a plugin like this and even willing to pay for it.
anyone???
Posts: 10
Hye,
Very interested in this theme. I'd also be totally interested in a tutorial to get this working !