Changing the Breadcrumb Changing the Breadcrumb
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Changing the Breadcrumb

Started by Walkinman, April 08, 2006, 11:21:29 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Walkinman

hello,

I'm trying to tweak my newly installed cpg, and all I wnt it to function as is a slide show for maybe 10 galleries. I don't want the galleries to link to each other, or to a main index.php. you can see the first of these pages here:

http://www.alaskanalpinetreks.com/slideshows/displayimage.php?album=1&pos=0

In the breadcrumb I want to remove the word "Home", as well as the ">" symbols, and make the remaining 2 items "Alaskan Alpine Treks trips Slide Show" and "Skolai Pass Trip" not act as links .. just be text phrases. Possibly with a little more space between them.

I also want to remove all the menu items at the to of the page . if the moderators want me to start a new thread for that request, just let me know and I'll do that.

Thank you.

Cheers

Carl

Joachim Müller

Quote from: Walkinman on April 08, 2006, 11:21:29 PM
if the moderators want me to start a new thread for that request, just let me know and I'll do that.
Exactly - one issue per thread!

Walkinman

Hey GauGau,

Done, sorry.

What I want with the breadcrumb, is for it to display the album name, an dthe categories, but I don't want for those to link back to anything. Just be plain text. Is that possible?

I appreciate your help, thank you.

Cheers

Carl

Sami

#3
to remove "Home" you can comment line 1560 of functions.inc.php under include directory of gallery

        $breadcrumb_links[0] = '<a href="index.php">'.$lang_list_categories['home'].'</a>';

or you can put this insted , to make it text (Unlink)

$breadcrumb_links[0] = $lang_list_categories['home'];

also you can do this to line 1566 to make "categories" Unlink
change this

  $breadcrumb_links[$cat_order] = "<a href=\"index.php?cat={$category[0]}\">{$category[1]}</a>";

to

$breadcrumb_links[$cat_order] = "{$category[1]}";

have fun with your gallery ;)
‍I don't answer to PM with support question
Please post your issue to related board

Walkinman

Hey Bmossavari,

Thanks - I managed to do that, and it works fine. Do you know how I can remove the '>' and replace it with ' - '?

I'll post another thread to get the next and prev buttons in the same bar, if that's possible.

Thanks again.

Cheers

Carl

Nibbler

Look in the function breadcrumb in include/functions.inc.php, towards the end. There seems to be a way to change it through the theme system too, but I'm not exactly sure how that works.

Sami

change line 1589 of functions.inc.php from

$breadcrumb .= ' > ' . $breadcrumb_link;

to

$breadcrumb .= ' - ' . $breadcrumb_link;

or any other Character that you want
‍I don't answer to PM with support question
Please post your issue to related board

Walkinman

Hey guys,

That worked perfectly, thank you for your help. This thread can be marked solved.

Cheers

Carl

gregy

Hi!

Another one who needs help :)

I would like to remove Hits Rates, Comments, Favourites .. from breadcrumb

Where can i remove them?

thanx


Joachim Müller