29
« on: August 22, 2007, 03:21:24 am »
well... if he wants it to post every time simple use this code...
this ones for money... goes before..
// Who the IM will come from
in Shop-Send.php... (Sources/Shop)
require_once($sourcedir . '/Subs-Post.php');
$msgOptions = array();
$msgOptions['id'] = 0;
$msgOptions['subject'] = $membersName, 'has sent some money';
$msgOptions['body'] = 'I have sent ',$amount,' money to ', $_POST['membername'] ,'.';
$msgOptions['icon'] = 'thumbup';
$msgOptions['smileys_enabled'] = true;
$topicOptions = array();
$topicOptions['id'] = 0;
$topicOptions['board'] = #;
$topicOptions['poll'] = null;
$topicOptions['lock_mode'] = null;
$topicOptions['sticky_mode'] = null;
$topicOptions['mark_as_read'] = false;
$posterOptions = array();
$posterOptions['id'] = $ID_MEMBER;
$posterOptions['name'] = $membersName;
$posterOptions['update_post_count'] = false;
createPost($msgOptions, $topicOptions, $posterOptions);
change the "#" in " $topicOptions['board'] = #;" to what board it will post to...
now for items... search for this "// Set the new owner"
and place this code before it...
require_once($sourcedir . '/Subs-Post.php');
$msgOptions = array();
$msgOptions['id'] = 0;
$msgOptions['subject'] = $membersName, 'has sent an item';
$msgOptions['body'] = 'I have sent the item ',$rowItem['name'],' to ', $_POST['membername'] ,'.';
$msgOptions['icon'] = 'thumbup';
$msgOptions['smileys_enabled'] = true;
$topicOptions = array();
$topicOptions['id'] = 0;
$topicOptions['board'] = #;
$topicOptions['poll'] = null;
$topicOptions['lock_mode'] = null;
$topicOptions['sticky_mode'] = null;
$topicOptions['mark_as_read'] = false;
$posterOptions = array();
$posterOptions['id'] = $ID_MEMBER;
$posterOptions['name'] = $membersName;
$posterOptions['update_post_count'] = false;
createPost($msgOptions, $topicOptions, $posterOptions);
once again change the "#" in "$topicOptions['board'] = #;" to the board number...