![]() |
(Useless) Acronym vBcode
While browsing the web I came across a website that used <acronym> HTML4 tag, and finding the concept interesting, I decided to try out a vBcode tag for it.
I soon ran into an error with the <acronym> tag that was buggin' the hell out of me, so I switched over to the <span> tag. Anyway, 98% of the people here might find this utterly useless, but what this does is allows somebody to type: Code:
[acro]United States of America[/acro] Code:
USA Upon hovering the word with your mouse, which will not be solid underlined but "dotted" underlined, the acronym full term will show up in one of those "alt" boxes. The main convenience of the HTML and this acronym tag is that sometimes not everyone knows what an acronym means, if the acronym isn't well-known, so this will aid in clarifying things. ---------------- If you feel inspired by this hack, feel free to click the install-button (inspired meaning, even if you didn't install it on your forum :rolleyes: j/k) |
Here is an example, just for those deprived of imagination. :p
|
I saw this at vBT but with no hacking.. o_O
|
Quote:
|
If you took a second to look inside the magical file titled "install_acronym.txt" you would find out how this differs from the general <acronym> tag, as I stated in the first post. =P *infinite +1
You can't do this style of hack with no php coding. |
Cool, but useless...
|
Hence the title. ;)
|
Found a problem with it. If you use the word OFF in an acronym, it picks up the last F because one of the omitted words is OF. Try doing:
Laughing My Ass Off with your code and you will see what I mean. |
Ah... looks like I underestimated the functionality of that darn str_replace().
I'm a bit tired as of now though, and about to doze off, but if anyone would care to find out how to make it so str_replace() matches "whole words" only, that would be cool. ;) |
Do a preg_replace instead.
|
All times are GMT. The time now is 11:29 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|