Change the breadcrumb in gallery title Change the breadcrumb in gallery title
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

Change the breadcrumb in gallery title

Started by McKenzie, September 08, 2008, 08:53:10 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

McKenzie

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"?

Nibbler

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

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

I don't know what the 'Name' elements are supposed to be referring to - categories? albums?

McKenzie

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"

Nibbler

They are categories. Comment out this section:


                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