Extension talk:SectionLinkToTop

Undefined Constant error
Hey, i get the following error - how can it be fixed?

MediaWiki: 1.15.1

PHP: 5.2.12 (cgi-fcgi)

MySQL: 5.0.67-log


 * At the moment, I can only confirm your observation, I see the same error message in my log files. Action: I changed to

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 = '#()( )#i';
 * use
 * $pattern = '#()( )#i';
 * (it was rendering only for Heading 2 or more)
 * Palanolho 13:30, 14 March 2011 (UTC)
 * Palanolho 13:30, 14 March 2011 (UTC)
 * Palanolho 13:30, 14 March 2011 (UTC)

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)

Work when user is not logged in?
Is there a way I can make the link appear even when the user does not have editing rights?

Need To Prevent Error On Pages This Magic Word Not Added To

 * hey, hi, guys, hope all of you who are using this very slick little extension are doing well.
 * I have come across something. If the sysadmin enables this extension, but the wiki users have not yet added the magic word to a particular page yet, then PHP throws the following error
 * Notice: Use of undefined constant MAG_SECTIONLINKTOTOP - assumed 'MAG_SECTIONLINKTOTOP' in /var/www/html/wiki/extensions/SectionLinkToTop/SectionLinkToTop.php on line 77
 * if the user adds the magic word to the page, the error goes away
 * what we here at our office are thinking is that the extension needs to consider the intentional omission of this magic word on a page and not throw this error
 * pls help with this if you can
 * thx
 * cheers

Need Test on Latest Stable Version
Can any one help test this on the latest stable version of Mediawiki, (v.1.20.2) which is now many versions past the one referenced on the extension's main page. Thanks very much.