Probably easy help. Trying to locate the breadcrumb file in v1.4.3-pl2.

diverguy

Joined: 2003-08-22
Posts: 24
Posted: Sat, 2008-02-23 16:04

The following information is required to get an answer:
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful): http://www.johneasley.com/gallery/
Gallery version: v1.4.3-pl2
Apache version:
PHP version (don't just say PHP 4, please):
Graphics Toolkit:
Operating system: Linux
Web browser/version (if applicable):

Been searching through the folders for two hours and have been unable to find it. Can someone please tell me which file contains the breadcrumb trail? I would like to edit it to add "Home" and a link to my website home page just to the left of the Gallery link. Probably very simple for someone that knows this software well.

Any help would be appreciated.

Thanks.

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Sun, 2008-02-24 10:07

Hello,

in this old (and buggy and not PHP5 compatible) version its unfortunately not encapsulated.
Its in every file where a breadcrumb is used.

Text is saved in this array: $breadcrumb["text"]
Its via includeLayout('breadcrumb.inc');

If you want to add a text before the existing text then you need to do a:
array_merge($breadcrumb["text"], array('My nice text, or HTML'));

Adding a text after: $breadcrumb["text"][] = 'My nice text, or HTML';

This must be done before the includeLayout statement.

If you want to add a text for EVERY breadcrumb, then simply edit layout/breadcrumb.inc

Jens
--
Last Gallery v1 Developer.
Tryout the TEST-Version of Gallery 1.6

 
diverguy

Joined: 2003-08-22
Posts: 24
Posted: Sun, 2008-02-24 22:59

Thanks Tim_j. After discussing your comments and my thoughts with my web hosting company, they dropped Gallery 2.2.4 on my site. Looks like a plugin for that might take care of what I wanted, in the first place. Appreciate you taking the time to help.

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Mon, 2008-02-25 07:28

Gallery 2.2.4 is FAR FAR better then 1.4.3! Good choice ;-)

Jens
--
Last Gallery v1 Developer.
Tryout the TEST-Version of Gallery 1.6