zpArdoise 1.4 for zenphoto 1.4.1

vincent3569 Member, Translator
Hi,

The 1.4 zpArdoise release is now avaliable for ZenPhoto 1.4.1.

Improvements of this release :
  • With option «Use Galleriffic script», displays the description of the image and its EXIF ​​data (if «Show image EXIF ​​data» is choosen)
  • Better integration between the scripts galleriffic and colorbox
  • Better integration between the options «Show Image Statistic strip» and «Use Colorbox Album»
  • Using the login form of ZenPhoto
  • Some graphical improvements
  • Fix some issues (read changelog.txt)
Follow the link :
http://vincent.bourganel.free.fr/zenphoto/index.php?p=news&title=zpArdoise-a-ZenPhoto-ZenPage-theme

Feel free to download and use it, and thanks in advance for your feedback!

Please report bugs on the forum and I will try to fix as soon as possible.

Comments

  • ncs Member
    Hi Vincent,
    thank you for this great theme!

    I'm trying do put a slide show of random photos on the homepage with the Galleriffic script, but I can't figure out hot to call the album in the
    '<div id="slideshow" class="slideshow"></div>'
    Could you give me some input please?
    Thanks!
  • vincent3569 Member, Translator
    hi

    to do that, you need to code a specific page choosen to be the homepage.
    I don't know how to code this page : maybe you inspire yourself with zpgalleriffic 1.4.1 of gjr.

    there is many other way to do a slideshow (probably more simple than galleriffic)

    have a look on :
    http://jquery.malsup.com/cycle/
    http://www.openstudio.fr/Animated-InnerFade-with-JQuery.html?lang=fr
    http://www.dynamicdrive.com/dynamicindex14/fadeinslideshow.htm
    http://www.webdeveloper.com/forum/showthread.php?t=209202
    http://nivo.dev7studios.com/

    there are some scripts I have searched for doing a slideshow on my web site
  • acrylian Administrator, Developer
    We have a slideshow plugin (which uses the cycle script of the first link) that also can be called directly with any album on any theme page if you set parameter to the function directly. See the documentation.
  • ncs Member
    Actually I managed to have it with the slideshow plugin, testing it on a "standalone" page, that is home.php but:
    1. I can't figure out how to set it as the starting page since the theme overrides the "Gallery index page link" option,
    2. and I prefer not to hack the plugin to get rid of the photo title.
    3. Putting the code in an unpublished page -in respect of the theme options- prints out nothing, just a page with the header and footer.
    Since zpArdoise includes already the Galleriffic script I tried to make the most of it. Less is more is my motto!

    I duplicated the album.php page, stripping out the unnecessary code but I can't go on because I did not understand how to call a specific album, that is the one containing the pics for the slide show (perhaps could be a virtual one?).
    It sounds simple but I spent all day losing my self in the documentation...actually I'm not a coder but I try do to my best.
    By the way, the Nivo slider looks cool!
  • vincent3569 Member, Translator
    Hi

    I don't know how the option 'Gallery index page link' works.
    the zpAdoise theme don't override this option, maybe the option is set by another theme (I saw that this option is set by default to gallery by zenpage).

    That said, this option has no effect on the theme : you can set any page, you go to the gallery page or the page choosen on Homepage option.

    for example,i wrote a index2.php with this code :
    `

    <?php include ('header.php'); ?>

    homepage test


    <?php include('footer.php'); ?>

    `

    an I have choosen index2.php in 'Gallery index page link' option : this file is never called.

    @acrylian or @sbillard : could you explain how this option 'Gallery index page link' works ?
  • acrylian Administrator, Developer
    Re: 'Gallery index page link': The theme may need specific support for that. But sbillard will be able to explain that.

    Regarding the slideshow: No need for hacking, you can easily hide the image title via CSS:
    `
    .slideimage h4 {
    display:none;
    }
    `
    Example on my demo site: http://zenphoto.maltem.de/
  • ncs Member
    This is exactly what I did. I apologize for giving a wrong information about your theme.
    So I guess you added the Page option to overcome that?
    On the other side, am I missing anything for printing some code in the Pages? I tried the Custom field and the Codeblocks but nothing is showing up.
  • ncs Member
    @acrylian: I was so focused in understanding the code stuff that I missed a so simple solution.
    In a way or another I'm near my goal. I'm still curious to know how to point to a specific album though.
    Is it so difficult?
  • acrylian Administrator, Developer
    It is quite easy. As the documentation tells you have to pass an album object to the appropiate function parameter.

    Regading codeblocks and custom fields. It is the same as with plugin calls, if the theme does not already have theme (none can have all...) you have to add them yourself. (not familiar with this theme of course).
  • Gallery index page is a way to have a specific script set for the "gallery" home page of the theme. (That is a page different from `index.php` for viewing the gallery part of the theme.) But of course, the theme must implement it.

    Best way to understand it is to look at the Effervescence+, Garland, and Zenpage themes for. The first allows for a dynamic setting of the option the other two use a standard index for the gallery of `gallery.php`
  • mdbr Member
    hello great theme but i have a problem in the page

    look http://www.mdbrx.com/gl/pages/bio

    in the page i find this

    a:3:{i:1;s:0:"";i:2;s:0:"";i:3;s:0:"";}

    why?
  • hello i have the same
    and only with statc pages
  • vincent3569 Member, Translator
    hi, the problem is due to an issue of zenphoto. Try the latest night build of 1.4.1.1
  • olihar Member
    Can I suggest one thing, for the image.php to work almost the same way as album.php just without the thumbs.

    So, preload as it does in album, as well it does not refresh the page when going to next image.

    I personally would love for google maps to load the same way in image.php as the image, name and desctption does.

    Is that something of interest and hard do implement?

    EDIT: I can see keyboard navigation works in image.php thats great, but again the whole webpage reloads when going to next and previous.

    On this subject a little more, would it be possible for the images to get their name in the url bar instead of /#6 as if you add another image to that folder and someone has linked to one of the images it will/might have changed.
    Somthing like /NAMEOFIMAGEFILE.jpg.php as the files will all have individual names anyways.
  • @vincent3569

    Have you gotten the change to look into the above suggestions?
  • vincent3569 Member, Translator
    hi

    @ olihar : I haven't seen your reply before...

    I am sorry but i don't know how to change the picture in image.php without reload the whole page.

    for the image name in the link, I don't know too (but according to me, it might be a core functionnality of zenphoto displaying the logical name of the picture rather than the physical name).

    however, the title displayed in browser tabs contains the title of the picture.
  • acrylian Administrator, Developer
    If I recall right this theme uses the zpGalleriffic script as well. So that #6 numbering in the url is built in there so the script would need to be changed. This url changing stuff without actually loading a new page would probably be a major change. Maybe look at the zpGalleriffic site if there is maybe an option or workaround.
  • vincent3569 Member, Translator
    I am sorry, but the forum filters the code :-(

    you have to had
    name="<?php echo $_zp_current_image->getFileName(); ?>"

    in the two tags ``
  • acrylian Administrator, Developer
    The forum does not filter code if you correctly put it into backticks (that are the accents like in "è") or the html `` element. See:

    `name="<?php echo $_zp_current_image->getFileName(); ?>"`

    `name="<?php echo $_zp_current_image->getFileName(); ?>"`
  • acrylian Administrator, Developer
    May be that the forum software sometimes acts weird...

    To your video placeholder: We have default images you should really use via the thumbnail functions in case you have videothumbs instead of `$_zp_themeroot; ?>/images/video-placeholder.jpg`. You can even have custom ones within your theme if you don't like ours. Just place images with the exact names within the theme's /images folder.
  • @vincent3569 - I did test this as I did not think it would work with the history plugin, but it does. Nice addition, I will add it to my next release of zpGalleriffic. You can see it in action on the zpGalleriffic demo.

    btw - zpmasonry does not use galleriffic.
  • Hi Vincent,
    thank you for all your work!

    Pretty new to ZP, I'd like to dare suggesting a code change for you next version. It took me some hacking to figure the theme is not checking all Colorbox settings.
    When option "sizedimage" is set, your theme still loaded "fullimage".

    So I went in the code and added in album.php ~line 54+
    `


    <?php if (getOption('use_colorbox_album')) {<br />
    switch(getOption('slideshow_colorbox_imagetype')) {

    case 'fullimage':

    $imagelink = html_encode($_zp_current_image->getFullImage());

    break;

    case 'sizedimage':

    $imagelink = html_encode($_zp_current_image->getCustomImage(getOption("slideshow_width"), NULL, NULL, NULL, NULL, NULL, NULL));

    break;

    }

    }

    ?>

    class="colorbox"<?php } ?> href="<?php echo $imagelink; ?>" title="<?php echo getBareImageTitle(); ?>">

    `
    This will generate whatever sized image in the cache and Colorbox will use it.

    Cheers
Sign In or Register to comment.