From 38e2cc16708a5dfbe563445db5d69b727a913e2b Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Wed, 6 Aug 2008 13:13:05 +0000 Subject: Update: Completed phpBB3's sending library Now, to finish the phpBB3 plugin, the MODX file has to be written. Refs #7 --- .../plugin/phpBB3/trunk/root/includes/functions_instadisc.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'update/plugin/phpBB3/trunk/root/includes/functions_instadisc.php') diff --git a/update/plugin/phpBB3/trunk/root/includes/functions_instadisc.php b/update/plugin/phpBB3/trunk/root/includes/functions_instadisc.php index 5570ef3..2858748 100644 --- a/update/plugin/phpBB3/trunk/root/includes/functions_instadisc.php +++ b/update/plugin/phpBB3/trunk/root/includes/functions_instadisc.php @@ -21,11 +21,18 @@ include($phpbb_root_path . 'includes/xmlrpc/xmlrpc.inc'); /** * Send an InstaDisc Item */ -function sendItem($title, $author, $url, $fourm) +function sendItem($title, $userID, $url, $fourm) { global $config, $db, $phpbb_root_path; $verID = rand(1,65536); + $da = array('user_id' => $userID); + $getuser = "SELECT * FROM " . USERS_TABLE . " WHERE " . $db->sql_build_array('SELECT', $da); + $getuser2 = $db->sql_query($getuser); + $getuser3 = $db->sql_fetchrow($getuser2); + $db->sql_freeresult($getuser2); + $author = $getuser3['username']; + $url = str_replace($phpbb_root_path, generate_board_url() . '/', $url); $da = array('forum_id' => $fourm); @@ -44,7 +51,6 @@ function sendItem($title, $author, $url, $fourm) new xmlrpcval($author, 'string'), new xmlrpcval($url, 'string'), new xmlrpcval(serialize($semantics), 'string'))); - $client->setDebug(4); $client->send($msg); } -- cgit 1.4.1