Extension talk:SectionLinkToTop
[edit] Undefined Constant error
Hey, i get the following error - how can it be fixed?
Notice: Use of undefined constant MAG_SECTIONLINKTOTOP - assumed 'MAG_SECTIONLINKTOTOP' in /wiki/extensions/SectionLinkToTop/SectionLinkToTop.php on line 90
line 90: $magicWords[MAG_SECTIONLINKTOTOP] = array( 0, '__SECTIONLINKTOTOP__' );
MediaWiki: 1.15.1
PHP: 5.2.12 (cgi-fcgi)
MySQL: 5.0.67-log
—The preceding unsigned comment was added by 84.60.185.46 (talk • contribs) {{{2}}}
- At the moment, I can only confirm your observation, I see the same error message in my log files. Action: I changed to
$magicWords['MAG_SECTIONLINKTOTOP'] = array( 0, '__SECTIONLINKTOTOP__' );
[edit] NOEDITSECTION problem
Greetings.
Im having sobre problems when using the SectionLinkToTop plus the NOEDITSECTION magic word.
If i define both, the links to the top do not appear. this only happens with H1 headding sections, on all other section levels its shows OK
Im not a big expert on wiki. Can anyone help me?
Palanolho 13:16, 14 March 2011 (UTC)
- Found the problem.
- in the SectionLinkToTop.php look for the function parserAfterTidy and instead of
-
$pattern = '#(<h[2-6]>)( <span.*</h[2-6]>)#i';
- use
-
$pattern = '#(<h[1-6]>)( <span.*</h[1-6]>)#i';
- (it was rendering only for Heading 2 or more)
- Palanolho 13:30, 14 March 2011 (UTC)
[edit] Links disappear after editing page
It seems like I currently need to re-insert the magic word (__SECTIONLINKTOTOP__) every time a page is edited. I'm using Mediawiki 1.16 with FCKeditor. Is this by design? Is there a way around it?
--MikeDarling 16:02, 12 January 2012 (UTC)