![]() |
|
Albums breadcrums look different with image.php - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Albums breadcrums look different with image.php (/thread-9591.html) |
Albums breadcrums look different with image.php - AngrySpaniard - 06-02-2012 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. Thank you, Albums breadcrums look different with image.php - acrylian - 06-02-2012 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. Albums breadcrums look different with image.php - AngrySpaniard - 07-02-2012 Hi acrylian, I'm using the [b]zpmasonry_v1.4.2[/b] 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/ Quote:Sure you didn't change any parameters and use a custom theme? Thanks! Albums breadcrums look different with image.php - AngrySpaniard - 07-02-2012 I forgot to mention that I made a mistake with the title of this topic. It should be: Quote:Breadcrumbs get delimited with ellipsis after the 3rd subalbum Albums breadcrums look different with image.php - acrylian - 07-02-2012 Sorry, I am not able to reproduce this with the default theme (Tried Zenpag as well): Albums breadcrums look different with image.php - AngrySpaniard - 07-02-2012 Thanks! I'll keep looking into it and get back to you if I find anything. Albums breadcrums look different with image.php - AngrySpaniard - 07-02-2012 So I did a search for the [b]printParentBreadcrumb[/b] function and found the following inside [b]template-functions.php[/b] in line 932: function printParentBreadcrumb($before = NULL, $between=NULL, $after=NULL, $truncate=NULL, $elipsis=NULL) {
` I changed this:
` into this and the ellipsis is gone from the breadcrumbs.
` 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. Albums breadcrums look different with image.php - acrylian - 07-02-2012 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: Albums breadcrums look different with image.php - Wete - 08-02-2012 same here, but I just added a few Albums breadcrums look different with image.php - AngrySpaniard - 08-02-2012 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! Albums breadcrums look different with image.php - acrylian - 08-02-2012 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. Albums breadcrums look different with image.php - AngrySpaniard - 08-02-2012 That or something went wrong updating the site. I just updated again to 1.4.2.1 and now it works!! Thank you very much for your help. |