MyBB Themes Community
Definition MyCode - Printable Version

+- MyBB Themes Community (http://mybbthemes.8ez.com)
+-- Forum: Theme Discussion (/forumdisplay.php?fid=141)
+--- Forum: Tutorials, Tips & Tricks (1.4.x) (/forumdisplay.php?fid=177)
+---- Forum: 1.2.x (/forumdisplay.php?fid=23)
+---- Thread: Definition MyCode (/showthread.php?tid=43)


Definition MyCode - FirefoxWiz - 02-26-2007 09:12 PM

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]


RE: Definition MyCode - bluejade - 02-27-2007 12:35 PM

Thanks for this, it will really help with definitions. :)


RE: Definition MyCode - dtommy79 - 07-13-2008 08:16 AM

Thanks, it's great. myCodes can be confusing.


RE: Definition MyCode - judel - 07-13-2008 12:15 PM

That's pretty cool. Maybe I'll add that to my site! Thanks! :D


RE: Definition MyCode - etnicious - 07-13-2008 02:49 PM

I coudnt understand the edit part? [edit]Had to fix the replacement[/edit]
what does it mean?


RE: Definition MyCode - judel - 07-13-2008 06:20 PM

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


RE: Definition MyCode - FirefoxWiz - 07-13-2008 10:12 PM

LOL. I used to have a custom mycode here for the [edit] thing. I must have removed it. :P


RE: Definition MyCode - Shaythong - 06-22-2009 10:49 AM

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. :)


RE: Definition MyCode - Shadowhacker - 12-10-2009 12:43 PM

Good,thanks.You is very good