Hyperlink in mantis bugnote

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
kerthi
Posts: 17
Joined: 08 Nov 2005, 14:31

Hyperlink in mantis bugnote

Post by kerthi »

Hey!

I have integrated subversion with my mantis installation.

To make this usable i need to create links in my mantis bugnotes!

How is that possible?

If i write html in my notes, the tags are not interpreted as html. They are just displayed as i write them.

e.g. <a href="asdf">asdf</a> is displayed as <a href="asdf">asdf</a>.

kerthi
Narcissus
Developer
Posts: 338
Joined: 17 Feb 2005, 09:45

Post by Narcissus »

Hi Kerthi,

Firstly, a disclaimer: I've never done this myself, so...

Also, I don't know of any 'official' SVN / Mantis integration code, so I don't quite know what you mean when you say that you "have integrated subversion with my mantis installation".

I'm assuming that you hope to just type something like "SVN:1234" to link to your change, right?

With that all over, there's two things I'd consider looking at:
1) The slightly easier option: if you don't use CVS (or at least don't care if you can't create CVS links in Mantis) then I'd just change the string_process_cvs_link(...) function (in core/strings_api.php) to suit your needs.

2) If you want to keep the CVS option open, copy the string_process_cvs_link(...) function, name it something like string_process_svn_link(...) and edit it appropriately. Finally, edit the string_display_links(...) function in the same file, and call your new SVN parser alongside all of the rest.

Hopefully this makes sense!
Lincoln.
Post Reply