coppermine-gallery.com/forum

Support => Older/other versions => cpg1.3.x Support => Topic started by: Sebastian Bach on June 23, 2005, 06:00:55 AM

Title: Breadcrumb less recrusive than the thumb link?
Post by: Sebastian Bach on June 23, 2005, 06:00:55 AM
Is it possible to make the breadcrumb link to the gallery the same as the thumbnail folder link (now the breadcrumb doesn't have the page number, but the little folder icon sends you back to the correct page).
Title: Re: Breadcrumb less recrusive than the thumb link?
Post by: Nibbler on June 24, 2005, 07:15:23 PM
For anyone else who wants this:

(18:10:22) Tommy: ok, i got it
(18:10:47) Tommy: include/functions.inc.php
(18:10:49) Tommy: find
(18:10:50) Tommy: function breadcrumb
(18:11:28) Tommy: and add $pos to the list after global
(18:11:51) Tommy: and change
(18:11:52) Tommy: $link = "<a href=\"thumbnails.php?album=".$CURRENT_ALBUM_DATA['aid']."\">".$CURRENT_ALBUM_DATA['title']."</a>";
(18:11:54) Tommy: to
(18:12:00) Tommy: $link = "<a href=\"thumbnails.php?album=".$CURRENT_ALBUM_DATA['aid']."&page=$page\">".$CURRENT_ALBUM_DATA['title']."</a>";
(18:12:27) Tommy: and above that line, add
(18:12:28) Tommy: $page = ceil(($pos + 1) / ($CONFIG['thumbrows'] * $CONFIG['thumbcols']));
(18:12:32) Tommy: and that should do it
Title: Re: Breadcrumb less recrusive than the thumb link?
Post by: Sebastian Bach on June 27, 2005, 12:19:40 AM
thanks again.
Title: Re: Breadcrumb less recrusive than the thumb link?
Post by: TheOhmster on June 27, 2005, 01:02:01 AM
'scuse me if this sounds dumb, but what exactly is "breadcrumb", other than that stuff you use to make meatloaf?  ???

Thanks.
Title: Re: Breadcrumb less recrusive than the thumb link?
Post by: Tranz on June 27, 2005, 01:07:46 AM
It looks like this:
Home > Category > Album

It tells you where you are as well as where you were... like breadcrumbs on a path in the forest.
Title: Re: Breadcrumb less recrusive than the thumb link?
Post by: TheOhmster on June 27, 2005, 05:00:06 AM
Ohhh, a breadcrumb trail. I get it, thanks.  :D