Customize Breadcrumbs Customize Breadcrumbs
 

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

Customize Breadcrumbs

Started by marek!, February 13, 2011, 09:41:09 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

marek!

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

marek!

My zip theme

Αndré

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.

marek!

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.

Αndré

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);
    }
}

marek!

Thank you Andre! Looks like everything is possible for you :) Works perfect!