There's a mod called "Easy Forms" here's the thread
https://vborg.vbsupport.ru/showthrea...ght=easy+forms
That mod allows us to create custom forms which when submitted by users will actually post as new thread in a specified forum.
When admin can set up the form by specifying questions and answers(options) (in my example, single selection radio buttons)
In that particular form question users get choose how they want to be contacted in case somebody wanted to respond to their request
Here's how it looks exactly:
How to contact me?
- Please email me
- Please PM me
So your code worked just fine after users submitting the form and the output shown in the created thread is OK and the PM link is shown
However, when users are actually filling the form itself (before submitting) they don't see
Please PM me option
instead they see
Please [url=http://www.yoursite.org/forum/private.php?do=newpm&u=xxxx]PM me/url]
PS: I intentionally ruined the closing URL above so that the code doesn't really work and only the link shows up