PunBB Resource

Your ultimate PunBB resource!

Keywords:

    (Extended)

You are not logged in.

#1 2005-04-26 15:10:13

Connorhd
Member
Registered: 2005-01-15
Posts: 176

Wiki breadcrumbs

Not sure if its worth it, but this little bit of code will generate the breadcrumbs for the current wiki page, the difference with this and the current ones is it will make the ones that are actually files links
e.g.
    Index Docs/Wiki dev functions is banned email

dev would not be a link as it is not currently a page, functions and is banned email however would be made links to their page

Code:

$id_explode = explode(':',$ID);
$id_linked = array();
foreach ($id_explode as $id_cur) {
    if (isset($id_build))
        $id_build = $id_build . ':' . $id_cur;
    else
        $id_build = $id_cur;
    $file = wikiFN($id_build);
    if(@file_exists($file))
        $id_linked[] = '<li>&raquo;&nbsp;<a href="doku.php?id'.pun_htmlspecialchars($id_build).'">'.$id_cur.'</a>&nbsp;</li>';
    else
        $id_linked[] = '<li>&raquo;&nbsp;'.$id_cur.'&nbsp;</li>';
}
echo implode('',$id_linked);

Offline

 

Board footer

Based on PunBB
© Copyright 2002–2005 Rickard Andersson

© Copyright 2004–2006 Kristoffer Jansson

User contributed files are property of their respective owners.