![]() |
|
Starting a iPhone Theme - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: Themes (https://forum.zenphoto.org/forum-5.html) +--- Thread: Starting a iPhone Theme (/thread-4095.html) |
Starting a iPhone Theme - maestro72x - 04-09-2009 where can we find this iphone theme! ill help you work on it if you want :-) Starting a iPhone Theme - omatzyo - 04-09-2009 I've just been putting some finishing touches on it. The sorts of things I wanted it to do. I would LOVE for you (and others to improve and make it better). I will post here once I'm finished and have a tar file ready. You can expect to see it this afternoon. Starting a iPhone Theme - omatzyo - 04-09-2009 acrylian, I'm redirecting automatically to the iphone theme, as discussed in this thread, by modifying functions.php. I'd like to set the image_quality and thumb_quality to lower values for the iPhone theme only; to ensure faster rendering times. Using Is there a way to set these values without $persistent being set to True? Thanks for your assistance! Starting a iPhone Theme - omatzyo - 04-09-2009 Hi, scratch that last question. I modified the functions-basic.php with the following:
Starting a iPhone Theme - omatzyo - 04-09-2009 This raises another question, which applies to any theme. It appears that ZenPhoto does not currently differentiate between thumbnail quality and image quality. It generates both of the image types using the settings for image_quality. If I force (or set in the admin console) the quality of regular image to 100, and thumbnail to 0, everything renders at 100%. Any thoughts? Starting a iPhone Theme - sbillard - 05-09-2009 I have not been following this thread, so forgive me if I have missed something. But it is really not a good idea to hack the Zenphoto core as you describe above. Pretty much makes the theme unusable by most Zenphoto users. Is the iPhoto theme a specific theme? Sounds like it is since you say you redirect to it. If so, then you should be putting these non-persistent option settings in the theme itself. The easiest way to do this would be to have a theme custom function that is called from each theme page that does this setting. Starting a iPhone Theme - sbillard - 05-09-2009 It will use the thumb_quality for standard thumbnails. But if you are using custom image functions to generate the thumbnails, they will use the image_quality. Starting a iPhone Theme - omatzyo - 05-09-2009 I can understand why it is undesirable to modify any piece of the core; however this particular change does not effect any of the regular function (unless the agent is determined to be an iPhone. Here is the part it effects: `
` The reason this seems necessary is that the non-persistent setting for this particular property does not work, it only effects the current function, not those that get called up to do the actual custom image creations. Of course, persistent do work but they change the options for all themes. If there is another way, please let me know. As far as the thumb_quality property not being used for custom thumb image functions, is there any way around this? This isn't a big deal, if not. Starting a iPhone Theme - omatzyo - 05-09-2009 I have posted the first (very preliminary) version at the following page: http://code.google.com/p/zenphotoiphone/ Please try it out and tell me what you think. There is a lot that can be approved upon, so please do if you have the ability. I'm excited to see where this goes. There are also some screenshots: I will post some more info there in the coming days. Starting a iPhone Theme - acrylian - 05-09-2009 I have no time currently to look at the theme itself (do not have a mobile device to test at all actually). But you can make your own theme specific options that can be independent from the general ones. All you have to do is to use our "custom image" functions as sbillard suggested and use the values of the theme options with them. |