BBCode help needed

Submitted by Anonymous on Wed, 08/23/2006 - 16:10
Written by
martijn

Hi,

Could anyone tell me how to make a new BBCode tag (I know it's in one of the function files)?
The reason I ask this is because I'm running a site wich lists free software on filesharing networks.
The tags I'd like to add are [magnet=][/magnet] and [ed2k=][/ed2k].

Magnets are formatted like this: magnet:?xt=urn:sha1:YNCKHTQCWBTRNJIV4WNAE52SJUQCZO5C , so no "http://" in front of it but "magnet:?xt=".

Ed2k links are formatted like this: ed2k://|file|The_Two_Towers-The_Purist_Edit-Trailer.avi|14997504|965c013e991ee246d63d45ea71954c4d|/ , with "ed2k://" instead off "http://".

I hope anyone can help me with this.
Thanks in advance!

BBCode functions are bbcode_clear(), bbcode_prepare() and markup() in sources/functions.php. I think it's obvious how to add ones looking at the existing code.