vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Glossary words and tooltips (https://vborg.vbsupport.ru/showthread.php?t=73029)

cinq 12-18-2004 02:08 AM

Glossary words and tooltips
 
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

Quote:

Originally Posted by cinq
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 ?


All times are GMT. The time now is 04:24 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02186 seconds
  • Memory Usage 1,712KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete