ModernChivalry.org
Miscellaneous => The Sallyport => Topic started by: Sir James A on 2011-03-21, 15:59:20
-
I've seen this in a variety of places, and since we are getting a more diverse member base (SCA, HEMA, etc), I thought it could be a useful addition. It's the little "pop-in" message that shows up when you hover over a word/abbreviation you might not know. Example here:
http://flowplayer.org/tools/demos/tooltip/
(hover over the 4 images on the page)
It could be useful things such as SCA, HEMA, WMA, and also for common "group" terms like Unterhau, Oberhau, Pflug, Vom Tag, that are probably not too prevalent outside of the core WMA community.
I'm not sure how hard it is to add it to the forum, but I can provide a specific forum example, if it would help any.
-
That'd be awesome...save me from having to look it up all the time til it sinks in. lol
-
Yeah, one of the cool features on myArmoury is that they have a list of words that get auto-highlighted as links to articles. A glossary mod on the forum would be cool. Looking at the SMF mods list, I see a glossary mod for the 2.x series (still in release candidates), but not one for the 1.x line. A downloadable mod would be ideal, of course.
-
The compatibility is slightly out of date, but this one is half-way there:
http://custom.simplemachines.org/mods/index.php?mod=1140 (http://custom.simplemachines.org/mods/index.php?mod=1140)
It allows people to manually add tooltips to their own messages.
This is the one that's more correct to what we want, but it's designed for the 2.x series:
http://custom.simplemachines.org/mods/index.php?mod=1525 (http://custom.simplemachines.org/mods/index.php?mod=1525)
-
The compatibility is slightly out of date, but this one is half-way there:
http://custom.simplemachines.org/mods/index.php?mod=1140 (http://custom.simplemachines.org/mods/index.php?mod=1140)
It allows people to manually add tooltips to their own messages.
(I'm hacking on this message to test out some options. Installed this mod, learned from it, and removed it)
I'm [csstooltip=This is a test! A much longer test, indeed. I wonder how it will look.]testing something out[/csstooltip], using just CSS and a small edit to the forum code. (This CSS method looks good as long is it's not at the bottom or on the right side of the message, otherwise it scrolls off)
Second test: [inlinetip=This is a test! A much longer test, indeed. I wonder how it will look.]testing something out[/inlinetip] to see how well it works with inline text. This one allows the message box to resize appropriately so it never extends out of view, but everything shifts around. Not as pretty ,but more reliable.
[tooltip=This is a test! A much longer test, indeed. I wonder how it will look.]Test #3[/tooltip] is using the jQuery method. So is [tooltip=This is another test that also has long text. It's even longer than the others to try to fill up a bit more of the pop-up box.]test #4[/tooltip]
-
Since that jQuery part looks pretty easy to implement to make the actual pop-ups, I'm now looking into the code to see what it would take to automatically add them for a variety of words. The path of least resistance might be to just hard-code an array that contains the words and definitions.
Maybe we should start coming up with a specific list of words to have definitions for?
Some examples:
Swordsmanship groups or genres: VAF, NYHFA, MEMAG, MASHS, ARMA, SCA, WMA/HEMA, JSA
Sword moves: swerchau, oberhau, zornhau, unterhau
Renfaires: MDRF, VARF, CRF, NCRF, PARF
Perhaps even some types of swords, sword parts, armor terms like tassets, coif, and gorget.
KC
-
Cool, I think that's working.
-
It IS working...I was like wth is going on lol
-
Ah, fantastic Sir Edward! Exactly what I had in mind. We could add "SCA" and "HEMA" to the list, I can't think of any others off the top of my head. Thanks!
-
Ah, fantastic Sir Edward! Exactly what I had in mind. We could add "SCA" and "HEMA" to the list, I can't think of any others off the top of my head. Thanks!
They were some of the first ones I added. :)
This worked out pretty well. I borrowed a little of the substitution code from the mod for the forum's 2.0 release (we'll be able to use the real mod once 2.0 goes stable), but otherwise it's some simplistic custom stuff. It worked better than I thought it would.
-
Ah, fantastic Sir Edward! Exactly what I had in mind. We could add "SCA" and "HEMA" to the list, I can't think of any others off the top of my head. Thanks!
They were some of the first ones I added. :)
This worked out pretty well. I borrowed a little of the substitution code from the mod for the forum's 2.0 release (we'll be able to use the real mod once 2.0 goes stable), but otherwise it's some simplistic custom stuff. It worked better than I thought it would.
Oh, interesting. It doesn't catch the SCA and HEMA in my first post, but does catch the WMA - at first I thought the comma throws it off, but that doesn't seem to be the case since it caught WMA. Hmm. :confused:
-
Oh, interesting. It doesn't catch the SCA and HEMA in my first post, but does catch the WMA - at first I thought the comma throws it off, but that doesn't seem to be the case since it caught WMA. Hmm. :confused:
Actually it does catch them, but I have it only highlighting the first instance of it in the post (your first sentence in that post) rather than all instances.
-
Oh, interesting. It doesn't catch the SCA and HEMA in my first post, but does catch the WMA - at first I thought the comma throws it off, but that doesn't seem to be the case since it caught WMA. Hmm. :confused:
Actually it does catch them, but I have it only highlighting the first instance of it in the post (your first sentence in that post) rather than all instances.
Ah, indeed, oops. I'm off to seek some caffeine... :o