Here are the files I've created for SpecialThesaurus extension:
SpecialThesaurus.php
SpecialThesaurus_body.php
SpecialThesaurus.alias.php
SpecialThesaurus.i18n.php
The SpecialThesaurus_body.php file I've sent to Roan Kattouw this day consists
of the major form elements. The contents are too long to be displayed here
that's why I just sent it to Roan Kattouw's email. For now, this file allows
user to search for keyword in the given sentence "The
quick brown fox jumps over the lazy dog near the bank of the river." If a given
keyword is found, it makes a link to that searched keyword and a form including
a input box for tag, select tag for origins, etc. Still, the form is not yet
functioning... But, this is how it's gonna be...
Questions:
About the contents on the SpecialThesaurus_body.php,
am I on the right track?
About connecting to db, I used $dbr =
wfGetDb(DB_SLAVE) command. How can I
check if it was really connected to the db? How
can I fetch arrays from db? Are
there db functions specially made for mediawiki that I can use?
What kind of Hook shall I use if I wanted the elements
in SpecialThesaurus
(form including input boxes, etc.) be included some part of an
article page?
Let's say I wanted to put the form and other elements on the right part of the
page.. How will I do it?
With the three other files, what kind of contents
shall I add to them?
I badly needed your help, guys. Thanks (^_^)