ZenphotoCMS Forum
printParentBreadcrumb prints strange $between string - 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: printParentBreadcrumb prints strange $between string (/thread-9404.html)



printParentBreadcrumb prints strange $between string - tunafish - 2011-12-19

I just uploaded to my server and the function printParentBreadcrumb() function prints ... instead of »

My code in image.php is following:
`

[b][/b] ()

`
The example here:
http://goo.gl/pDgBi




printParentBreadcrumb prints strange $between string - acrylian - 2011-12-19

See the documentation and last parameter: http://www.zenphoto.org/documentation/functions/_template-functions.php.html#functionprintParentBreadcrumb
IF the parent name is too long it truncates otherwise.

Btw, I suggest to change this footer line "Zenpage theme by Anton Puttemans" as the "Zenpage theme" is by me (and this is not the Zenpage theme).




printParentBreadcrumb prints strange $between string - tunafish - 2011-12-20

Yeah I could have played around some more with that...

A bit strange because on localhost printParentBreadcrumb(""," » "," » "); worked fine and on my hosted server I needed printParentBreadcrumb(""," » "," » ", NULL, "");

Oh well, sorry about the footer acrylian, it's just some test pages, but I will remove the "Zenpage theme" part




printParentBreadcrumb prints strange $between string - sbillard - 2011-12-20

There was a ticket recently on printParentBreadcrumb(). There were some typos in dealing with the parameters NUL instead of NULL for the test. I would guess that one install has the fix and the other does not.




printParentBreadcrumb prints strange $between string - acrylian - 2011-12-20

@Tunafish: No big deal especially since its a test site. But as always "credit where credit is due"..;-)

Right, the NULL issue I did forget completly. However that last parameter should remove hte elipsis if you set it to "" (empty) actually...