PDA

View Full Version : Glossary words and tooltips


cinq
12-18-2004, 02:08 AM
You know how some site have articles which have certain words highlighted with tooltips to give a short definition of the term ?

Where they draw the description perhaps from a database of terms and their respective definitions?

How can that be acheieved ?
How do they search an entire article ( word for word ) to compare with a database of known terms and definitions ?

I am thinking of doing a hack such that on one hand, you have a glossary on your forums, and at the same time, it links up with the posts in the forum where terms that are in posts/threads which are also in the glossary database will be highlighed with a tooltip to show the term definitions.

Do advise :)

peterska2
12-19-2004, 09:26 PM
You know how some site have articles which have certain words highlighted with tooltips to give a short definition of the term ?

Where they draw the description perhaps from a database of terms and their respective definitions?

How can that be acheieved ?
How do they search an entire article ( word for word ) to compare with a database of known terms and definitions ?

I am thinking of doing a hack such that on one hand, you have a glossary on your forums, and at the same time, it links up with the posts in the forum where terms that are in posts/threads which are also in the glossary database will be highlighed with a tooltip to show the term definitions.

Do advise :)
Personally, I'd use the replacement variable manager to set replacements for things to a link to somewhere where you have the answer eg a post in one of your forums

eg uShop might have a replacement on it linking to www.mysite.com/forums/showthread.php?t=7428959

That way once you have set up all the posts or whatever with your definitions in and added them all to the replacement variable manager then it would change them automatically regardless of skins or age.

Just be careful that you don't change something vital to the HTML code in your templates otherwise it will all go tits up.

cinq
12-20-2004, 01:14 AM
Erm I think i kinda get what you mean, but that functionality isn't really what I am looking for ?