Extension talk:BrettCrumbs

Escape HTML
$arr[$i] should probably be replaced by htmlspecialchars($arr[$i]) Bryan 19:26, 25 July 2008 (UTC)

Thanks Bryan, I made the suggested change. --Brett.Dutton 23:26, 28 September 2008 (UTC)

BrettCrumbs in every section
I would love to use this extension in a Wiki with an extensive subpage hierarchy - but my system keeps adding the URL to every section of the longer pages. Any ideas how to fix it?

Kind Regards Gavin --81.158.214.204 00:22, 11 March 2009 (UTC)

Updated This
Gavin, I have updated BrettCrumbs to use a different Hook (OutputPageBeforeHTML) This seems to give better results and not put urls in every section. I also noticed that the Calendar extension might be using the parser incorrectly, that is why the bread crumbs URLs are appearing in every section (that the calendar is used in).

I updated the code in BrettCrumbs.php to be able to toggle off the creation of the links and updated the calendar.php to look something like this:

Let me know if you want all the code. --Brett.Dutton 06:27, 11 May 2009 (UTC)

Great stuff, thanks
I am using it where appropriate, e.g. in http://www.staerk.de/thorsten/index.php/My_Tutorials/Programming_Tutorials/C_Programming_Tutorial/How_to_simulate_a_keypress. I added one line: if ( strpos ( $wgTitle->getPrefixedText, "/" ) === false ) return true; meaning if the article is a top-level-article, do not show the brettcrumbs. --ThorstenStaerk 15:37, 10 May 2009 (UTC)

Good addition. Thanks Thorsten. I have added your changes. --Brett.Dutton 10:40, 17 June 2009 (UTC)