No breadcrumb on searched thumbnail page? No breadcrumb on searched thumbnail page?
 

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

No breadcrumb on searched thumbnail page?

Started by jaus, December 09, 2013, 05:04:32 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jaus

Is there a simple way to disable the breadcrumb on the intermediate image display page when the image has been displayed from a set of searched thumbnails?

I have a number of albums that contain a large number of images that are hidden from browsing (via this mod: http://forum.coppermine-gallery.net/index.php/topic,76815.0.html) , but visible via search.  When an image in one of these albums is displayed, the breadcrumb points to the hidden album and is confusing as the album has a cryptic name and the user never sees it when browsing.


Αndré

Copy the function theme_display_breadcrumb from themes/sample/theme.php to your theme's theme.php file, if it doesn't exist.

Then, find
starttable('100%');
and above, add
    global $CPG_PHP_SELF;
    $superCage = Inspekt::makeSuperCage();
    if ($CPG_PHP_SELF == 'displayimage.php' && $superCage->get->keyExists('album') && $superCage->get->getAlpha('album') == 'search') {
        return;
    }

jaus

That worked, Thanks!

Actually, perhaps a more useful solution would be to replace the normal breadcrumb with a simple link that would return the user to the search results, just as the 'return to thumbnail page' icon does.  Is that simple to do?   I know that is a little redundant, but the link would be more obvious to users accustomed to using the breadcrumb to navigate.

Αndré

Replace the custom code with
    global $CPG_PHP_SELF, $lang_meta_album_names;
    $superCage = Inspekt::makeSuperCage();
    if ($CPG_PHP_SELF == 'displayimage.php' && $superCage->get->keyExists('album') && $superCage->get->getAlpha('album') == 'search') {
        $breadcrumb = '<a href="thumbnails.php?album=search">'.$lang_meta_album_names['search'].'</a>';
    }

jaus


Αndré

Please
Quote from: Joachim Müller on September 28, 2008, 12:46:26 PM
tag your thread as "solved" by clicking on the "Topic Solved" button on the bar at the left hand side at the bottom of your thread.