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: Customize Breadcrumbs  (Read 5008 times)

0 Members and 1 Guest are viewing this topic.

marek!

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Customize Breadcrumbs
« on: February 13, 2011, 09:41:09 am »

Hello,
Almost done with bridging Coppermine (water drop theme) http://dualcab.net/gallery  and phpbb3 (x-vision theme) http://dualcab.net  I moved my Breadcrumbs by placing a hack code in my theme.php file according to the instructions in the other thread. Then I put a class in ...“Section <<<$template_breadcrumb>>> - START”... to match my phpbb3 theme layout.
But the Breadcrumbs text is underlined by a thick black line. It looks like this line is inherited  from css “maintable” class because once I remove .maintable class from style.css – the line is gone but also all other borders are gone as well. How can I fix it, so Breadcrumbs are not connected to ‘maintable’ class? Please find attached the screenshot of both: with and without the .maintable class
Logged

marek!

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Customize Breadcrumbs
« Reply #1 on: February 13, 2011, 09:50:41 am »

My zip theme
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Customize Breadcrumbs
« Reply #2 on: February 14, 2011, 01:54:08 pm »

You need to change
Code: [Select]
<div class="breadcrumbs_style_font">{BREADCRUMB}</div>to something like
Code: [Select]
<tr><td><div class="breadcrumbs_style_font">{BREADCRUMB}</div></td></tr>
Otherwise the breadcrumb resides outside of the table and all you'll see is the border of the table where the breadcrumb should be.
Logged

marek!

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Customize Breadcrumbs
« Reply #3 on: February 14, 2011, 03:25:19 pm »

When I put back {BREADCRUMBS} between <tr> and <td>, it's getting full border around my breadcrumbs(please see the attached screenshot), what I'm not after. I wish, there was possibility to put Breadcrumbs outside the table and not having borders around it. I wanted to match my phpbb3 theme, in which the breadcrumbs are just as a text only, with no border - see the attached screenshot. I guess it's not possible.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Customize Breadcrumbs
« Reply #4 on: February 14, 2011, 03:40:37 pm »

Copy the following function to your theme.php file:
Code: [Select]
function theme_display_breadcrumb($breadcrumb, &$cat_data)
{
    /**
     * ** added breadcrumb as a seperate element
     */
    global $template_breadcrumb, $lang_breadcrumb;

    if ($breadcrumb) {
        $template = template_extract_block($template_breadcrumb, 'breadcrumb');
        $params = array(
                '{BREADCRUMB}' => $breadcrumb,
        );
        echo template_eval($template, $params);
    }
}
Logged

marek!

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Customize Breadcrumbs
« Reply #5 on: February 14, 2011, 11:50:59 pm »

Thank you Andre! Looks like everything is possible for you :) Works perfect!
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 20 queries.