Page 1 of 1

Acronym Mod

Posted: 27 Oct 2003, 16:18
by RogerMcAllen
Over at aquariumadvice.com we have an acronym mod so that when you hold the mouse over a common acronym it will display the meaning. I was wondering if such a thing could be enacted here on some of the latin species names so that a common name would display as I often find myself reading a thread and having no idea what type if fish is being talked about.

Here is a sample thread full of them:
http://www.aquariumadvice.com/viewtopic.php?t=9018

Posted: 28 Oct 2003, 17:58
by Jools
The HTML behind it is <acronym title="Small Polyped Stoney">SPS</acronym>; hrm, interesting...will do some digging.

Jools

Posted: 28 Oct 2003, 18:50
by Jools

Code: Select all

/* This is the line in the posting page which shows the rollover
help line. This is actually a text box,but if set to be the same
colour as the background no one will know;)*/
.helpline{background:#e1e9f2;border-style:none;color:#000000}

abbr, acronym {
	color: #FF0000;text-decoration:underline;
	cursor: help;
}
This is in the sylesheet, but I can't see how, on its own, it would work. Maybe something to do with the XML DTD.

Any techs out there want to suss it out?

Jools

Posted: 28 Oct 2003, 20:54
by Rusty
The <acronym> and <abbr> tags are W3C non-compliant, so you don't see them around very often.

I don't see how we could make this easily workable... it's not like we have only a few three letter abbreviations, but we have thousands of species names, which are easily mis-spelled, mangled, etc.

Rusty

Posted: 29 Oct 2003, 08:35
by Jools
I was thinking of using it for stuff like AFAIK BTW LFS SL TL and so on from the acronym angle. I would also REALLY like to use it for a kind of inline glossary with words like conspecific or auchwufs etc.

Jools

Posted: 30 Oct 2003, 00:15
by RogerMcAllen
Thats exactly what I was thinking, the technical jargon words. It has the capacity to work with any word/set of words not just acronyms.

Posted: 30 Oct 2003, 02:12
by Rusty
OK, just as a teaser, I have LFS entered as an acronym. Mouse over and you get the full meaning.

Rusty

Posted: 30 Oct 2003, 06:15
by RogerMcAllen
Nice work, can you add it so that it makes the word bold/a color so we know what words are able to do this.

Posted: 30 Oct 2003, 08:25
by Jools
Nicely done! How do we edit the list? Is it delivered via the site style sheet (and thus is available to any HTML page)? Maybe bold purple for recognised acronyms and terms?

Jools

Posted: 30 Oct 2003, 12:10
by Rusty
I was actually doing it through the censor. We could enter a definition in the style sheet to make it bold/purple/whatever.

Rusty

Posted: 30 Oct 2003, 14:32
by Jools
All,

Well, it's open season on acronyms and the like. Any suggestions on ones to add?

Rusty,

Do you need me to change the CSS or can you do it (maybe "planet green" rather than "planet purple"?)

Jools

Posted: 30 Oct 2003, 22:38
by magnum4
TL. SL. SPP. SP. CF.
AFAIK. YMMV. PC. IMO.

Posted: 30 Oct 2003, 23:56
by Rusty
magnum4 wrote:PC.
Planet Catfish? Politically correct? Personal computer? What does it stand for? :D

Rusty

Posted: 31 Oct 2003, 00:55
by Silurus
CF.
I think this would be too long and complicated for something like this. Explaining cf. and aff. would be better done in the new FAQ section.

Posted: 31 Oct 2003, 09:43
by Jools
Rusty wrote:
magnum4 wrote:PC.
Planet Catfish? Politically correct? Personal computer? What does it stand for? :D

Rusty
The short term for Planet Catfish is Planet! For example, "Everyone at Planet likes keeping fish".

Jools

Posted: 02 Nov 2003, 15:24
by Jools

Code: Select all

<acronym lang="en" title="Standard Length">SL</acronym>
Just a reminder on for m on how to do this. :oops: Just add to this topic if anyone sees a need to add another acronym.

Jools


[/code]

Posted: 02 Nov 2003, 16:11
by Rusty
Just testing something

asdasdasdasdlfsasdasd

Posted: 09 Nov 2003, 16:37
by Rusty
Doing this through the naughty word censor doesn't seem to be ideal. Any other ideas as to how to implement this?

Rusty

Posted: 13 Nov 2003, 18:01
by Silurus
Baltimore.

Don't suppose this is the result of the acronym mod on the word "B a l t i m o r e"?

Posted: 13 Nov 2003, 19:05
by Jools
Yup, Rusty is right, doing this via the forum censor is not a good plan for the reasons Silurus shows.

Jools