Glossary Plugin

Creating and modifying plugins.
Post Reply
User avatar
RobA
Regular
Posts: 317
Joined: Wed Apr 27, 2005 5:11 pm
Contact:

Glossary Plugin

Post by RobA » Fri Jun 10, 2005 8:45 pm

I'm reposting this as new thread in case it is missed buried in this one

Someone asked, details are here:http://ffaat.pointclark.net/blog/archives/22-Glossary-Reloaded.html

This plugin takes a set of definitions/glossary words and displays them when a user hovers over:
Image

Currently it is set up on my site with the following search terms/definitions:

Code: Select all

regexp : A regexp is a Unix Regular Expression; ie a string for pattern matching.
html  : HyperText Markup Language.
plugin: A plugin is a program written by someone that is integrated into another application.
alphanumeric : Consisting of letters and/or numbers, but not other symbols or punctuation marks.


This does slow down my blog rendering, but I have turned it back on by request (for awhile at least). I haven't tested it with the simple cache plugin, but that may speed it up by not having to do all the regexp matching.

This was done for fun, so hopefully someong else will get some use out of it.

A direct download is here: http://ffaat.pointclark.net/blog/uploads/Files/serendipity_event_glossary.zip

-Rob A>

defuru
Posts: 2
Joined: Sun May 08, 2005 4:13 pm

Post by defuru » Sat Jun 11, 2005 12:38 am

i'm loving the idea of this. will definitly give this a shot, at least on my localhost :)

would it be possible to take this plugin a step further by making a generell code rewrite version ?
ie

Code: Select all

currently:
s9y:the serendipidy blog engine

alternativley:
s9y:<a href="www.s9y.org" class="whatever">s9y</a>
or
s9y:<img src="s9y.gif">

it would seem to me that since you already have the code rewrite on render in there, that just might be possible.
on the other hand its supposed to be a glossary plugin, and it does just that. and the functionality it has in the admin pannel also makes it seem sweet.

/edit
poor me must remember that to != the, damn not native language :)

mgroeninger
Regular
Posts: 546
Joined: Tue Dec 21, 2004 12:57 am
Contact:

Post by mgroeninger » Sat Jun 11, 2005 4:09 am

defuru,

While I don't use it, I believe there is a general rewrite plugin which comes with serendipity standard.

You might play with serendipity_event_contentrewrite (listed as Content Rewriter in configure plugins) and see if it meets your needs.

User avatar
RobA
Regular
Posts: 317
Joined: Wed Apr 27, 2005 5:11 pm
Contact:

Post by RobA » Tue Jun 21, 2005 3:23 pm

Just a quick note that a new version of the glossary plugin is available. THis supports the simplecache plugin, which greatly speeds up things.

You can get it here: http://ffaat.pointclark.net/blog/pages/glossary.html

Post Reply