uddeim.api.php ================================================================ This is an experimental interface for providing udde Intstant Messages to 3rd party components. This file declares a class uddeIMAPI that provides following functions: ------------------------------------------------------------ Create an instance ------------------------------------------------------------ require_once("uddeim.api.php"); $uddeim = new uddeIMAPI(); ------------------------------------------------------------ bool $uddeim->isInboxLimitReached($userid); ------------------------------------------------------------ -> userid <- true if the Inbox limit has been reached. ------------------------------------------------------------ void $uddeim->sendNewMessage($fromid, $toid, $message, $sendnotification=0, $updatelastsent=0); ------------------------------------------------------------ -> fromid -> toid -> message -> sendnotifications -> updatelastsent <- void Special features supported: - autoforward Special features not supported: - copy2me - autoresponder ------------------------------------------------------------ Sample Usage: ------------------------------------------------------------ Place uddeim.api.php in "components/com_uddeim/uddeim.api.php" $fromid=62; $toid = 97; $message = "This is the PM that will appear in the uddeIM inbox \nYou can use [url=index.php]BBcode[/url]"; require_once("components/com_uddeim/uddeim.api.php"); $uddeim = new uddeIMAPI(); $uddeim->sendNewMessage($fromid, $toid, $message, 1, 1 );