MyBB Themes Community

Full Version: Definition MyCode
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Definition MyCode



MyCode Title: Definition
MyCode Desciption: Allows users to post words with their hover-over definitions.

Regular expression:
Code:
\[def=(.*?)\](.*?)\[/def\]
Replacement:
PHP Code:
<acronym title="$2">$1</acronym

Activate MyCode: Yes


Now use:
Code:
[def=Word]Word Definition here[/def]
and it will show up as
[def=Word]Word Definition here[/def]


[edit]Had to fix the replacement[/edit]
Thanks for this, it will really help with definitions. :)
Thanks, it's great. myCodes can be confusing.
That's pretty cool. Maybe I'll add that to my site! Thanks! :D
I coudnt understand the edit part? [edit]Had to fix the replacement[/edit]
what does it mean?
That isn't part of the mycode. FFW edited her post, and that is her reason for doing it. Not sure why she typed it that way though. :P
LOL. I used to have a custom mycode here for the [edit] thing. I must have removed it. :P
Thank you but I think something can be changed.

Change:
Code:
<acronym title="$2">$1</acronym>

To:
Code:
<acronym title="$1">$2</acronym>

It makes more sense. :)
Good,thanks.You is very good
Reference URL's