Hi Vanama,
I noticed that the Axxix SuperMessenger notifications weren'y quite right, so have played a little on my site;
Converted it to use the API (you had it posting straight to the db);
}elseif ($config->pms == 2) { // Axxis SuperMesseer
include_once 'pms.supermessenger.php';
$supermessenger = new supermessenger3PDController();
$supermessenger->send($from, $to, $subject, $message);
}
I have attached the pms.supermessenger.php, the title I wrote straight in (so you may want to change it), it is the same for RPS and BlackJack excepting the title), as you can see I hacked SuperMessenger into BlackJack already

,
Also SuperMessenger is full html enabled (doesn't use bbCode), I just changed them manually to <a href rather than [URL in mine, could the algorythm detect which pms is used before it decided whether to go with bbCode or html maybe? Perhaps you could do something clever like have $link function that determined that bit, but that is a little compliacted for me so I was thinking a simple if based on the pms config, eg;
[code]if ($config->pms == 5) {
$pms_msg = $config->title." \n ".RPS_YOU_WON." ".RPS_IN_GAME." <a href=".sef("index.php?option=com_rps&Itemid=".$Itemid."&gid=".$gid).">".$game->challenger_name." vs ".$game->challenged_name."</a>.";
}else{
$pms_msg = $config->title." \n ".RPS_YOU_WON." ".RPS_IN_GAME."
".$game->challenger_name." vs ".$game->challenged_name.".";
)[/code]
Though it would be more code efficient to have a smart function that determined the typr of link like
if ($config->pms == 5) {
$link= '<a href';
$linkend='>'
$endlink='</a>';
}else{
$link= '[URL';
$linkend=']'
$endlink='[/URL]';
)
And the links like;
$pms_msg = $config->title." \n ".RPS_DRAW." ".RPS_IN_GAME." ".$link."".sef("index.php?option=com_rps&Itemid=".$Itemid."&gid=".$gid)."".$linkend."".$game->challenger_name." vs ".$game->challenged_name."".$endlink.";
But I am not sure if that would work (never sure whether to use ' or " and no idea what a T function means, he he, that doesn't stop me! ;))
Best wishes,
NuMoon :)
File Attachment:
File Name:
pms.zipFile Size: 3744