Albums breadcrums look different with image.php

Hi,

I've updated to ZenPhoto 1.4.2.1 and noticed that breadcrumbs look different from the third level of sub-albums. For instance when I have the following path, the characters in between sub-album names are the same:

Image Gallery | 2010 | June

But once I reach the third level of sub-albums it changes to the following:

Image Gallery | 2010 ... June | Trip to Tokyo

Is there a way to remove the "..." characters and keep them like the rest, in this case "|"?

It happens in all the templates that are included with ZenPhoto so I guess the problem lays somewhere else.
Apologies in advance if this has been already answered but after a few searches I couldn't find anything about this problem.

Thank you,

Comments

  • acrylian Administrator, Developer
    None of the templates uses the ellipsis as a delimiter always | (unless I missed, I just tried the default theme). Also there is no truncation of titles in the breadcrumb that could cause this.

    Sure you didn't change any parameters and use a custom theme? Just asking.... Maybe you could post a link so we can see it.
  • Hi acrylian,

    I'm using the zpmasonry_v1.4.2 theme but the ellipsis is always present even with the default themes (Effervescence+, Garland, Stopdesign Theme, Zenpage).

    I uploaded a couple of screenshots to exemplify the problem using the default template.

    http://www.tomasrovina.com/temp/
    Sure you didn't change any parameters and use a custom theme?
    I don't think I did but just in change my memory is playing tricks on me, what kind of parameters are you talking about?

    Thanks!
  • I forgot to mention that I made a mistake with the title of this topic. It should be:
    Breadcrumbs get delimited with ellipsis after the 3rd subalbum
    Sorry about that.
  • acrylian Administrator, Developer
    Sorry, I am not able to reproduce this with the default theme (Tried Zenpag as well):
    http://zenphoto.maltem.de/Test/testalbum2-1/testalbum3-1/testalbum4-1/testalbum5-1/testalbum6-1/Cosmos04+Kopie.jpg.php
  • Thanks!

    I'll keep looking into it and get back to you if I find anything.
  • So I did a search for the printParentBreadcrumb function and found the following inside template-functions.php in line 932:
    `

    function printParentBreadcrumb($before = NULL, $between=NULL, $after=NULL, $truncate=NULL, $elipsis=NULL) {

    global $_zp_gallery, $_zp_current_search, $_zp_current_album, $_zp_last_album;

    echo $before;

    if (is_null($between)) $between=' | ';

    if (is_null($after)) $after=' | ';

    if (is_null($elipsis)) $between='...';

    `

    I changed this:
    `

    if (is_null($elipsis)) $between='...';

    `

    into this and the ellipsis is gone from the breadcrumbs.
    `

    if (is_null($elipsis)) $between=' | ';

    `

    The problem now is that I can only have the | to separate album levels in the breadcrumbs. Although not a big deal, I would like to know if there is a better way to fix this.

    Thanks.
  • acrylian Administrator, Developer
    You but you should NEVER modify core files. Instead set the parameters on the theme files itself accordingly. That is why there are these parameters. To choose what you like as a separator.

    On the standard default theme image.php it looks like this for me:
    `
    printParentBreadcrumb("", " | ", " | ");
    printAlbumBreadcrumb("", " | ");
    `
    I think we had an issue recently that on some php configurations the NULL value is triggered wrong. It happens on one and not on the others (incl, mine).
  • same here, but I just added a few `" | ",` until it worked fine. ;)
  • Understood. I reverted the changes in the core file. Unfortunately I still get the ellipsis between the 2nd and 3rd subalbums in the breadcrumbs.

    I checked the default theme's image.php and it has exactly the same lines.

    Should I just wait until the next release and hope this problem gets fixed?

    Thanks!
  • acrylian Administrator, Developer
    I think this is a php bug(? not sure actually) on some servers we had recently before. We could not really reproduce as it worked on our servers as expected but not on the reporter's one.
  • That or something went wrong updating the site. I just updated again to 1.4.2.1 and now it works!!
    Not sure what happened there. I'm just glad it's now OK.

    Thank you very much for your help.
Sign In or Register to comment.