iPhone theme

codejunkee

Joined: 2007-02-24
Posts: 2
Posted: Sat, 2007-08-11 07:19

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.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2007-08-11 11:26
 
codejunkee

Joined: 2007-02-24
Posts: 2
Posted: Sun, 2007-08-12 06:27

Thanks for the quick reply.

That worked like a charm :)

Cheers,

CJ.

 
DigitalOldschool

Joined: 2007-09-21
Posts: 1
Posted: Fri, 2007-09-21 20:09

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

 
fishtank22

Joined: 2002-09-04
Posts: 36
Posted: Wed, 2007-09-26 02:08

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 :)

 
ecsk2

Joined: 2008-02-28
Posts: 2
Posted: Tue, 2008-03-25 15:40

Did you get it to work? Have a link to the site?

 
gooshy

Joined: 2007-11-28
Posts: 1
Posted: Fri, 2008-06-06 14:49

Did you manage to finish the plugin?

 
fishtank22

Joined: 2002-09-04
Posts: 36
Posted: Wed, 2008-06-11 12:42

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?

 
agidi

Joined: 2008-02-01
Posts: 4
Posted: Tue, 2008-07-29 16:38

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!

 
AddictDownload

Joined: 2008-09-06
Posts: 1
Posted: Sat, 2008-09-06 06:29

Please let me know i can help with this

 
soupdawg

Joined: 2008-10-28
Posts: 2
Posted: Tue, 2008-10-28 15:34

Anybody able to get this plugin?
I am in need of a plugin like this and even willing to pay for it.

anyone???

 
archive26
archive26's picture

Joined: 2008-01-16
Posts: 10
Posted: Wed, 2008-12-03 16:28

Hye,

Very interested in this theme. I'd also be totally interested in a tutorial to get this working !