coppermine-gallery.com/forum

Support => cpg1.5.x Support => cpg1.5 themes (visuals) => Topic started by: marek! on February 13, 2011, 09:41:09 AM

Title: Customize Breadcrumbs
Post by: marek! 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
Title: Re: Customize Breadcrumbs
Post by: marek! on February 13, 2011, 09:50:41 AM
My zip theme
Title: Re: Customize Breadcrumbs
Post by: Αndré on February 14, 2011, 01:54:08 PM
You need to change
<div class="breadcrumbs_style_font">{BREADCRUMB}</div>
to something like
<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.
Title: Re: Customize Breadcrumbs
Post by: marek! 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.
Title: Re: Customize Breadcrumbs
Post by: Αndré on February 14, 2011, 03:40:37 PM
Copy the following function to your theme.php file:
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);
    }
}
Title: Re: Customize Breadcrumbs
Post by: marek! on February 14, 2011, 11:50:59 PM
Thank you Andre! Looks like everything is possible for you :) Works perfect!