Themes repository in Wiki

@thinkdreams. Let me start with a sincere thanks for your tireless efforts to keep this forum and wiki up to date. And let me end with a suggestion:

In the theme repository you should include a link called DEMO or THIS THEME IN ACTION or something so that people can look at the themes in their full glory before they try it out. If this is already implemented and I have just not noticed it, please excuse my oversight.

Another idea: In future maybe there could be a form to help theme authors to submit themes in an appropriate format. This will help keep things standard which may not happen if someone other than you or Tristan is adding a theme.

Comments

  • @jayray999- thanks. i'm glad to help in any way I can to make everyone has a positive experience with this great application.

    As for the theme demos, not every theme will definitely have a demo attached with it, but where they exist, I try to put them in there. For instance, the Effervescence theme and the Highslide theme both have demo links where the others do not (because they don't exist).

    As for the form, that would be a nice addition, but for now, we'll have to do it manually. I don't mind so much. That's the nice thing about a wiki. It makes it less complex to add stuff.

    :)
  • trisweb Administrator
    I could add a little argument switch to the demo on zenphoto.org that lets you load whatever theme you want... not sure how to keep it though... maybe using a cookie for your current session? Yeah, that'd work. It'd be pretty easy.
  • Great idea Tris. Also serves as an instant compatibility test (for themes) with latest release of ZP.
  • In the meantime I have this up on my beta site.
    http://beta.chilifrei.net/zenphoto/

    It has all the themes I have collected. I will update it again when I get home.(actually since it is valentines day my wife might not let me get to it today)But I will update it with all the themes from the repository.

    admin username and pass are default. Just be nice with it..
  • @Chili: I don't understand. I just see the Stoppeddesign theme; I am sure I am doing something wrong.

    @Trisweb: "I could add a little argument switch to the demo on zenphoto.org that lets you load whatever theme you want..." I just thought of something. Does this mean different people can simultaneously view the same gallery using different themes? I can't imagine how but if so this could be offered as a publicly accessible switch in the general release so people can offer a choice of themes to visitors to their site. Personally I am not crazy about it but I can see how it could have its uses. For example someone wanted a theme that could stitch together Photoshop art sideways. If they write such a theme, visitors to the site could have the choice of seeing the images stitched together or just normally with one of the "normal" themes.
  • log on to the admin page and change the theme

    http://beta.chilifrei.net/zenphohto/zen/admin.php
  • @jayray999: Tris or someone will correct me if I'm wrong, but currently ZP knows which theme to use by looking at the theme.txt file in the cache. This file simply contains the directory name of the theme. I presume that this is then stored as a variable, and used to call the theme's files as and when.

    It should be reasonably straight forward to create some code which checks to see if you have a cookie set with a different theme and to use that instead of the general theme.
  • Thanks BigAl, I just meant it appears impossible with the current scheme. But I see what you mean about the cookie or perhaps even a database entry.
  • trisweb Administrator
    BigAl is right, currently we just use a text file, but I think that approach is slow and not so great. The default (initial) theme eventually needs to go in an options table with the rest of the config options.

    It's also pretty easy to do the cookie check, as he noted. That's basically what I was thinking when I had the idea.
  • I have written a little Theme Demo, which uses PHP Session to store selected Theme.

    Here is the Link to the Demo: http://san-maki.de/zendemo/index-demo.php

    The changed Files (index-demo.php, /zen/class-gallery.php) can i upload if you need it. Pls give me feedback about this Themedemo.

    Tom
  • That's pretty neat keyoshix. I started working on something like that but haven't had time lately to continue.
  • trisweb Administrator
    Looks really good, I'd want to set something like that up here so I'd love to see the changes.

    One minor thing, if the Select box showed the current theme you're on instead of always going back to "Zenphoto Default" that would be great.

    Also, I'd add download links for the themes not included in the releaese, but I can do that myself :-)
  • Thx for Reply. The Selectbox indicates now the selected Theme (fixed). At the afternoon, i will upload the changed files.
    A download link in the theme-selector is currently not avaible, because the theme-selector uses only the zenphoto database, and there are no homepages from the themes included.

    Edit: the theme-selector is fully css stylable ^^

    Arghh i need my english-book... :D

    Tom
  • Here is the Download:

    http://san-maki.de/zendev/zenthemedemo.tar.bz2 or http://san-maki.de/zendev/zenthemedemo.zip

    Install:
    Create a new zenphoto Installation or duplicate a existing one. Unzizp / UntarBzip2 ^^ the Archive over your new zenphoto-demo gallery.

    The following files will be created (N) or overwritten (O):
    (N) zenphoto/index-demo.php
    (N) zenphoto/zp-demo/header_bg.png
    (N) zenphoto/zp-demo/header_demo_logo.png
    (N) zenphoto/zp-demo/index.php [Fix if Apache::Indexes = On]
    (N) zenphoto/zp-demo/index-demo.css [Stylesheet for the Demo]
    (O) zenphoto/zen/class-gallery.php [getCurrentTheme() and setCurrentTheme() are customized]

    Every User stores his selected Theme in a PHP Session key, and then the Gallery will be reloaded with the new theme-setting.
    The Input from the From is secured to disable injecting any code.

    $tmp_x = $_zp_gallery->getThemes();
    $theme_get = isset($tmp_x[$_GET['selected_theme']]) ? $_GET['selected_theme'] : 'default';

    ToDo:
    Download Link (Extents the ZP Database and Class)
    Download Count
    Rating Feature
Sign In or Register to comment.