Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
4 + 8 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     

Re: new features
by GOwin on 2004/5/3 5:10:08

are the updates included in the link you posted in the news section?
Re: cross-referencing
by mpowell on 2004/5/2 6:18:04

I am using a module called "dictionary" which I found here. It has the automatic cross reference function which is very nice. I like wordbook because it allows for more than one glossary, but the automatic cross referencing is so nice that I hate to change. Do you think you will be able to provide the automatic cross reference feature soon? Thanks for an excellent module.
Re: cross-referencing
by hsalazar on 2004/4/25 0:48:45

BradM:

To be truthful, it was your post in the hacks section of the forum the one that initially moved me to try to update the porting of Glossaire to XOOPS 2. This eventually led to the development, so to speak, of Wordbook.

Things already done:

1) In the admin side, took advantage of Mithrandir's function for the top menu, so I replaced the bulky code in all the admin pages.

2) Cleaned a bit more the code, eliminating unneeded stuff.

Things still in the notebook:

1) I've added code to highlight the term looked for in the search results page. Works fine.

2) I still need to work a lot on the pagination of search results. Since the initial form is set to POST, I seem to be losing the $term variable with the default page navigation snippet, that puts the variables in the URL, emulating thus a GET operation. Tried to copy the code from the general XOOPS function and got lost in the way. Sigh.

3) Obviously, I need to update the documentation.

I am slow, but I'll get there.

Cheers.
cross-referencing
by BradM on 2004/4/24 21:43:07

Hi hsalazar,

I was working on an adaptation of the glossaire module a while back, which didn't get to the point of an official release. However, I'm looking forward to checking out your next release of the wordbook.

I'm not sure if you or others are interested, but here's some code which will allow for automatic cross-referencing of terms. Basically if any other terms in the db appear within the currently-viewed entry, each will be hyperlinked to their corresponding entries.

I've just copied the code from my file, so it'll have to be adapted to fit within your module.

le="color: #000000"><?php // link up other terms in db list($numterms) = $xoopsDB->fetchRow($xoopsDB->query("SELECT COUNT(*) FROM ".$xoopsDB->prefix("lexicon"))); $termdata = $xoopsDB->query("SELECT id, letter, term, definition, post, image, submit_by, submit_date, use_wiki FROM ".$xoopsDB->prefix("lexicon")); while ( list($id, $letter, $term, $definition, $post, $image, $submit_by, $submit_date, $use_wiki) = $xoopsDB->fetchRow($termdata) ) { if ($term != $glo_term) { // don't link term in its own definition $default_term = $term; // singular $search_term = "/b$default_termb/i"; $replace_term = "<span style='font-size: 110%'><B><a href='".XOOPS_URL."/modules/lexicon/view.php?term_id=".$id."'>".$term."</a></B></span>"; $glo_definition = preg_replace($search_term, $replace_term, $glo_definition); // plural $term = $default_term."s"; $search_term = "/b$termb/i"; $replace_term = "<span style='font-size: 110%'><B><a href='".XOOPS_URL."/modules/lexicon/view.php?term_id=".$id."'>".$term."</a></B></span>"; $glo_definition = preg_replace($search_term, $replace_term, $glo_definition); // plural with e $term = $default_term."es"; $search_term = "/b$termb/i"; $replace_term = "<span style='font-size: 110%'><B><a href='".XOOPS_URL."/modules/lexicon/view.php?term_id=".$id."'>".$term."</a></B></span>"; $glo_definition = preg_replace($search_term, $replace_term, $glo_definition); } }



Brad
Re: yipee!
by ozboof on 2004/4/23 9:57:21

Sounds good hsalazar


Who's Online

488 user(s) are online (350 user(s) are browsing Support Forums)


Members: 0


Guests: 488


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits