Manish Patil wrote:
Hi All,
I am working since last some months on the Mediawiki to host my
personal
site. I found difficulty in integrating in jQuery plug-in(e.g.
lightbox
[
http://leandrovieira.com/projects/jquery/lightbox/]) in my
mediawiki. I
have also referred some
links[http://www.thusa.co.za/blog/gareth-davies/getting-jquery-running-m
ediawiki] from google but not working in my case.
So it will be very nice, if someone could help me on this issue.
Thanks,
Manish Patil
Hi Manish,
The guide you link to is outdated. jQuery is included with MediaWiki
as of MediaWiki 1.16 and loaded/available by default on every page
as of MediaWiki 1.17.
I would recommend installing MediaWiki 1.17. Then simply upload
that jQuery plugin to your mediawiki/resources/jquery directory and
register it as a module in LocalSettings.php
$wgResourceModules['jquery.myPlugin'] = array(
'scripts' => 'resources/jquery/jquery.myPlugin.js',
);
Then you can load it and use it whenever you like.
--
Krinkle