[Howto] How to use alaa's jquery_bidi with mediawiki
Hi guys,
Today I'll explain how to use alaa's jquery_bidi in mediawiki
First: you have to get jquery and jquery_bidi
Second: you will put the js files on the style directory
Third and Last: Edit the style itself.
First: get the javascript files
jquery --> Download here
jquery_bidi --> Download here
dont forget to rename the jquery-1.2.6.js --> jquery.js
and from jquery_bidi get only this file --> jquery.bidi.js
Second: Put the files on the style directory
the default style directory is
mediawiki/skins/monobookput the two files there
Third: edit the style
edit this file
mediawiki/skins/MonoBook.php
add the following lines before body in the head of the html
<script type="text/javascript" src="<?php $this->text('stylepath') ?>/<?php $this->text('stylename') ?>/jquery.js"></script>
<script type="text/javascript" src="<?php $this->text('stylepath') ?>/<?php $this->text('stylename') ?>/jquery.bidi.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$("address, blockcode, blockquote, h1, h2, h3, h4, h5, h6, p, pre, li, dt, dd, ul, ol, dl").filter(":not([dir])").bidi();
});
</script>
this is an example on live wiki here
that's all
Thanks alaa
have a nice wiki :)
- Printer-friendly version
- Login or register to post comments
- 224 reads

