Advanced search  

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

Pages: [1]   Go Down

Author Topic: Add a "Home" menu or button at the bottom of each page  (Read 3402 times)

0 Members and 1 Guest are viewing this topic.

Maxgallery

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Add a "Home" menu or button at the bottom of each page
« on: January 17, 2012, 09:53:14 pm »

At the top of each page their is a text menu that you can click on to navigate something like

Home > your album > Christmas pictures

So you go to the page "Christmas pictures"  look at the pictures get to the bottom of the page and their is a "Jump to page" thing so you go to the next page while your at the bottom of the page, when you get to the last page their is no link to get you back to "your album" or to "Home" you have to scroll all the way back up to the top of the page to find this link. Home > your album > Christmas pictures

So how can the links like found at the top of each page also be shown at the bottom of each page so users dont have to waste their time scrolling back up to the top just to navigate?

Follow me I am not sure if I am using the right wording or terminology to describe what I mean.

I think the link at the bottom would make things more fluid.

This would be a simple 'add some code' thing or does something like this open a big can of worms and create problems?

Thanks in advance.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Add a "Home" menu or button at the bottom of each page
« Reply #1 on: January 18, 2012, 01:36:59 pm »

Open index.php, find
Code: [Select]
                case 'breadcrumb':
                    // Added breadcrumb as a separate listable block from config
                    if (($breadcrumb != '' || count($cat_data) > 0) && $cat != 0) {
                        theme_display_breadcrumb($breadcrumb, $cat_data);
                    }
                    break;
and replace with
Code: [Select]
                case 'breadcrumb':
                    // Added breadcrumb as a separate listable block from config
                    if (($breadcrumb != '' || count($cat_data) > 0) && $cat != 0) {
                        if (!$theme_display_breadcrumb) {
                            ob_start();
                            theme_display_breadcrumb($breadcrumb, $cat_data);
                            $theme_display_breadcrumb = ob_get_clean();
                        }
                        echo $theme_display_breadcrumb;
                    }
                    break;


Then, open the Coppermine config, find "The content of the main page" and add
Code: [Select]
/breadcrumbright after
Code: [Select]
alblist
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 20 queries.