In my content.htm is a upper- and lowercase mix of <hx>-tags so the page will not validate XHTML.
I've found that these mixed <Hx></hx> tags caused by a bug in the Menumanager plugin.
It happens when you drag'n drop a page to another menulevel.
For now only tested with Menumanager 2007 - (Club-)Version and latest Firefox 2 on WAMPP.
Can someone confirm that or, much better , can someone fix that?
Holger
Bug in Menumanager plugin
Moderator: Tata
Re: Bug in Menumanager plugin
In admin.php search for:Holger wrote:can someone fix that?
Code: Select all
$leveledPage = preg_replace('/<H[1-3]/i','<H'.$pageInfo[1] , $c[$pageInfo[0]],1);
$leveledPage = preg_replace('/H[1-3]>/i','H'.$pageInfo[1].'>' , $leveledPage,1);
But I found another cute bug. After moving a menulevel3 item to menulevel2 I received this HTML code:
Code: Select all
<h2>An H3 heading</h3>
Till
Re: Bug in Menumanager plugin
Amazing, I've looked into all files except admin.php .Till wrote: In admin.php search for:Change the capital H to small h letters. Then it is fixed.Code: Select all
$leveledPage = preg_replace('/<H[1-3]/i','<H'.$pageInfo[1] , $c[$pageInfo[0]],1); $leveledPage = preg_replace('/H[1-3]>/i','H'.$pageInfo[1].'>' , $leveledPage,1);
Thanks for your help!
Holger
Edit:
Now I've tested with version 2007a, that's the lates version without integrated renaming of headings.
It seems that there's no issue like described above.
Re: Bug in Menumanager plugin
Yes, this bug appears in menumanager 2007b. But to fix it you change:Till wrote:But I found another cute bug. After moving a menulevel3 item to menulevel2 I received this HTML code:I bet this wont validate eitherCode: Select all
<h2>An H3 heading</h3>
Code: Select all
$leveledPage = preg_replace('/h[1-3]>/i','h'.$pageInfo[1].'>' , $leveledPage,1);
to
Code: Select all
$leveledPage = preg_replace('/h[1-3]>/i','h'.$pageInfo[1].'>' , $leveledPage);
Till
Re: Bug in Menumanager plugin
I was unsure if the first bug also affects versions lower than 2007b. So I checked the admin.php of Menumanager 2006c - there are no capital 'H'-tags in it. Just for others to know
2006c is the last free version of Menu Manager, right?
2006c is the last free version of Menu Manager, right?
-
- Posts: 342
- Joined: Thu Jun 26, 2008 8:19 pm
- Location: Germany
- Contact:
Re: Bug in Menumanager plugin
The new version (2008a) is now online for free! I hope i have fixed all known bugs, but if new ones are found i will quickly create a version 2008b to deal with them. Please test this version and report any bugs you can find, It now also supports up to 6 menulevels when set in CMSimple.