Skip to Content

Revision of [Howto] How to use alaa's jquery_bidi with mediawiki from Wed, 07/01/2009 - 1:52pm

The revisions let you track differences between multiple versions of a post.

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

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
put the two files there

Third: edit the style
edit this file


<script type="text/javascript" src="<?php $this->text('stylepath') ?>/<?php $th
is->text('stylename') ?>/jquery.js"></script>   
 <script type="text/javascript" src="<?php $this->text('stylepath') ?>/<?php $th
is->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, d
t, dd, ul, ol, dl").filter(":not([dir])").bidi();
      });
 </script>  

that's all

have a nice wiki :)



Dr. Radut | book