Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Change the breadcrumb in gallery title  (Read 2090 times)

0 Members and 1 Guest are viewing this topic.

McKenzie

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 129
    • My car gallery
Change the breadcrumb in gallery title
« on: September 08, 2008, 08:53:10 pm »

How can I change the breadcrumb in title (after I did that modify http://forum.coppermine-gallery.net/index.php?topic=54112.0)?

"Home > Name" into "Name"
"Home > Name1 > Name2" into "Name2"?
Logged

Nibbler

  • Guest
Re: Change the breadcrumb in gallery title
« Reply #1 on: September 08, 2008, 09:05:03 pm »

Check the breadcrumb() function in include/functions.inc.php. You probably want to comment out this line:

Code: [Select]
$BREADCRUMB_TEXTS[0] = $lang_list_categories['home'];
I don't know what the 'Name' elements are supposed to be referring to - categories? albums?
Logged

McKenzie

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 129
    • My car gallery
Re: Change the breadcrumb in gallery title
« Reply #2 on: September 08, 2008, 09:21:49 pm »

http://icmesa.org/index-71.html

I mean the pagetitle, here for example: Pagetitle "Index > Automobile manufacturers of Sweden > Volvo" to "Volvo"

http://icmesa.org/index-344.html

Here for example: Pagetitle "Index > Automobile manufacturers of Sweden" to "Automobile manufacturers of Sweden"
Logged

Nibbler

  • Guest
Re: Change the breadcrumb in gallery title
« Reply #3 on: September 08, 2008, 09:30:46 pm »

They are categories. Comment out this section:

Code: [Select]
                while($row['parent'] != 0)
                {
                    $result = cpg_db_query("SELECT cid, name, parent FROM {$CONFIG['TABLE_CATEGORIES']} WHERE cid = '{$row['parent']}'");
                    if (mysql_num_rows($result) == 0)
                        cpg_die(CRITICAL_ERROR, $lang_errors['orphan_cat'], __FILE__, __LINE__);
                    $row = mysql_fetch_array($result);

                    $category_array[] = array($row['cid'], $row['name']);
                    mysql_free_result($result);
                } // while
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 20 queries.