Pages (9): 1 2 3 4 5 9   
Member
Member
vlijmen   19-11-2008, 22:17
#1

Hello everyone,

Today I started creating a iPhone Theme for zenphoto. I use zenphoto on my website, but I wanted to have a theme specially to view my galleries from my iPhone. I'm not really good in scripting and creating, but I will do my best to make it better step by step.

I would like to here from you what you think of it (and of the idea). You can follow it step by step at this topic and you can download some beta versions of the theme at:
http://mirror.nielshoogenhout.nl/index.php?dir=.%2FScripts%2Fzenphoto+iPhone+Theme/

I really just started it, so don't expect to much of it. It isn't a clean script, the datatraffic isn't reducing at the moment, but every thing works at the moment.

Niels

(Thanks to iWebKit.net & the Example Theme from Tristan Harward!)

Member
Member
CMNYC   19-11-2008, 22:57
#2

Not sure if it's possible... but an ideal scenario would be to have browser recognition to switch the theme on the fly.

Member
Member
pedroserano   19-11-2008, 23:38
#3

Cool! On the topic of switching themes on the fly, here's how other sites recognize iphones and switch with javascript:

`

if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i))) {
if (document.cookie.indexOf("iphone_redirect=false") == -1) window.location =
"http://m.espn.go.com/wireless/?iphone&i=COMR";
}

`
Clearly this is from espn but I think the same idea could work for zenphoto maybe?

Member
Member
vlijmen   19-11-2008, 23:40
#4

Hello CMNYC,

It is possible to do so, and i definitely will put that on my own site. The only thing you need to do is put a little code into the zenphoto index file. By the next update I will explain every one how they can easely do this themselve.

Maybe in a later stadium i will try to create an plugin that you can install to do this for you. But before I can do this I should have a look at the scripting from zenphoto. I never did this before.

Niels

*//Edit @pedroserano: That is one way to do so, maybe I will implemented it to all the mobile phone types. Because when the theme is iPhone optimized, it would probably be better for other phones aswell. (btw. The example you use can not be used for zenphoto the way you placed it here. Because you would need a double installation of zenphoto, and that is not what we want, is it. I will give the solution i think is best as soon as possible).

Member
Member
vlijmen   20-11-2008, 02:19
#5

V0.3 Beta (http://mirror.nielshoogenhout.nl/index.php?dir=.%2FScripts%2Fzenphoto+iPhone+Theme/)
Updates:

  • A little bit cleaner code (not finished!)
  • A nice header on top of each page (execept the image page because of the smaller screen the iPhone has, there won't be a lot of space for the image left).
  • In the gallery pages the standard thumbs will be used.
  • On the image page a speciale iphone image will be generated. The size is optimalized for the iphone. This wil reduce the data traffic, and also speeds up loading the image. (The image is saved in the cache directory like the other pictures).

Future:

  • Wil clean up the code so it will be easier to understeand for every one.
  • I would like to hear from you what you would like to see in the theme.
  • Choosing if you want to show images on the gallery pages, yes or no.
  • I wil try to speed up the theme by cleaning out the code. The reason why the pages will never load very quick is because of 2 reasons. 1. zenphoto isn't created for mobile phones, I can only work on a better optimized theme. 2. A lot of pictures needs to be loaded every time.
Member
Member
pedroserano   07-12-2008, 07:17
#6

Here's a link to have ZP automatically choose the theme based on whether you're using a mobile device: (pays to look around the forum)

http://www.zenphoto.org/support/topic.php?id=3788

With the new ZP, instead of opening index.php, go to functions.php and follow the instructions for replacing:
$theme = $_zp_gallery->getCurrentTheme();

Member
Member
mercator   03-01-2009, 09:32
#7

Anyone still working on this? It would be great to have a complete iPhone theme!

Member
Member
omatzyo   27-08-2009, 13:27
#8

Has anything come of this?

Member
Member
omatzyo   03-09-2009, 11:37
#9

Hi acrylian,

If you're checking up on this forum, I wanted to share that I've almost completed an iPhone theme. Its realativly basic, but its a start. I'd love some feedback about its function and utility. It was very easy to tie your functions into the iPhone view. It really says something about the way you've designed everything, very nice.

I thought if I could post it somewhere others would be able to improve upon what I've started. Do you host the themes or should I look into hosting elsewhere (any suggestions)? Let me know if you'd like more info, I'd be happy to share what I've got going. Thank you!

Administrator
Administrator
acrylian   03-09-2009, 12:48
#10

Of course I check the forum..;-) Surely interessting news for some of our users.

We would actually prefer if you set up your own project page for that theme because we of course can't support third party themes (or any other third party stuff). If you did that let us know and we add an entry with some screenshots on our themes page linking to that page. Best in this case you provide screenshots on your page we can also use as I personally don't have any internet capable mobile.

Pages (9): 1 2 3 4 5 9   
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.