Support Forums

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Definition MyCode
02-26-2007, 09:12 PM (This post was last modified: 02-27-2007 11:21 AM by FirefoxWiz.)
Post: #1
Definition MyCode
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]

~FFW
FYI: I'm not a sir, dude, or guy. I am a 'miss'. :rolleyes:
Visit this user's website Find all posts by this user
Quote this message in a reply
02-27-2007, 12:35 PM
Post: #2
RE: Definition MyCode
Thanks for this, it will really help with definitions. :)

- Jade
Knowledge is Power!

Service with a smile... most of the time. ;)
Find all posts by this user
Quote this message in a reply
07-13-2008, 08:16 AM
Post: #3
RE: Definition MyCode
Thanks, it's great. myCodes can be confusing.
Visit this user's website Find all posts by this user
Quote this message in a reply
07-13-2008, 12:15 PM
Post: #4
RE: Definition MyCode
That's pretty cool. Maybe I'll add that to my site! Thanks! :D
Find all posts by this user
Quote this message in a reply
07-13-2008, 02:49 PM
Post: #5
RE: Definition MyCode
I coudnt understand the edit part? [edit]Had to fix the replacement[/edit]
what does it mean?
Find all posts by this user
Quote this message in a reply
07-13-2008, 06:20 PM
Post: #6
RE: Definition MyCode
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
Find all posts by this user
Quote this message in a reply
07-13-2008, 10:12 PM
Post: #7
RE: Definition MyCode
LOL. I used to have a custom mycode here for the [edit] thing. I must have removed it. :P

~FFW
FYI: I'm not a sir, dude, or guy. I am a 'miss'. :rolleyes:
Visit this user's website Find all posts by this user
Quote this message in a reply
06-22-2009, 10:49 AM
Post: #8
RE: Definition MyCode
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. :)
Find all posts by this user
Quote this message in a reply
12-10-2009, 12:43 PM
Post: #9
RE: Definition MyCode
Good,thanks.You is very good
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: