The actual message is stored in the phrase: tratings_pm_message.
You could have that passed a parameter and return it as part of the phrase, but I think it's probably easier to add it manually.
The last code in traderratings.php is the function for sending the pm. You can easily see what details are being used as far as the username/userid etc are concerned, so it's easy to add the url into $message before it's sent.
If you want the url in the middle of the message, or don't want to hard code the message so it's easy to change in future or translate, you can use a particular unique word in the phrase in place of the userid and then replace it with a string function before inserting the pm.
|