Sunday, September 5, 2010

how to embed javascript into a wiki page -mediawiki

goto your cpanel
goto the folder where you installed the media wiki
goto extensions
create a new file called wikiscript.php

add the source code from the link above BUT (this is very imp) leave out the ?>

with the ?> the page gives an error WebResponse.php on line 16

find the file LocalSettings.php and add the lines below

#Added for allowing user javascript
require_once( "$IP/extensions/wikiscript.php" );


No comments:

Post a Comment