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: No Table for Breadcrumb  (Read 3824 times)

0 Members and 1 Guest are viewing this topic.

SolidSnake2003

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 82
  • Solid Snake/Joshua Harris Fan
    • Legacy Designs
No Table for Breadcrumb
« on: June 16, 2014, 08:38:51 am »

Is it possible to disable the starttable and end table functions for the breadcrumb?  I have the style for the gallery set, but just don't want to the tablle around the breadcrumb.

link: http://www.haley-osment.net/gallery
Logged

SolidSnake2003

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 82
  • Solid Snake/Joshua Harris Fan
    • Legacy Designs
Re: No Table for Breadcrumb
« Reply #1 on: June 16, 2014, 03:04:50 pm »

here is some code Im using

function pageheader
Code: [Select]
    // Breadcrumb hack - START
    $CONFIG['main_page_layout'] = str_replace(array('/breadcrumb', 'breadcrumb/', 'breadcrumb'), '', $CONFIG['main_page_layout']);
    global $breadcrumb;
    ob_start();
    theme_display_breadcrumb($breadcrumb);
    $template_vars['{HEADER_BREADCRUMB}'] = ob_get_clean();
    // Breadcrumb hack - END

function theme_breadcrumb
Code: [Select]
function theme_breadcrumb($breadcrumb_links, $BREADCRUMB_TEXTS, &$breadcrumb, &$BREADCRUMB_TEXT)
{
    $breadcrumb = '';
    $BREADCRUMB_TEXT = '';
    global $CONFIG;
    $breadcrumb_links[0] = '<a href="http://www.haley-osment.net/" target="_blank">The Haley Osment Network</a> > <a href="http://www.haley-osment.net/gallery/index.php">Photo Gallery</a>';
    for ($i = 0; $i < count($breadcrumb_links)-1; $i++) {
        $breadcrumb .= ' > ' . $breadcrumb_links[$i];
    }
    $breadcrumb .= ' > ' . $breadcrumb_links[$i];
    foreach ($BREADCRUMB_TEXTS as $BREADCRUMB_TEXT_elt) {
        $BREADCRUMB_TEXT .= ' > ' . $BREADCRUMB_TEXT_elt;
    }
    // We remove the first ' > '
    $breadcrumb = substr_replace($breadcrumb,'', 0, 3);
    $BREADCRUMB_TEXT = substr_replace($BREADCRUMB_TEXT,'', 0, 3);
}
Logged

SolidSnake2003

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 82
  • Solid Snake/Joshua Harris Fan
    • Legacy Designs
Re: No Table for Breadcrumb
« Reply #2 on: June 17, 2014, 06:56:26 am »

Nevermind, copied code from the themes.inc.php file, and removed the table from the breadcrumb
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 20 queries.