Neden cURL kullanıyorsun? SMF'nin kendi konu açma fonksiyonu neyimize yetmiyor?
<?php
require_once('./Sources/Subs-Post.php');
// Mesaj ayaları
$msgOptions = array(
'id' => empty($_REQUEST['msg']) ? 0 : (int) $_REQUEST['msg'], // Mesaj ID
'subject' => 'Burası Başlıktır', // Başlık
'body' => 'Burasıda İçerik', // İçerik
);
// Konu ayarları
$topicOptions = array(
'id' => empty($topic) ? 0 : $topic,
'board' => $board,
'mark_as_read' => true, // Okundu olarak işaretle
);
// İleti yazarı ayarları
$posterOptions = array(
'id' => 1, // İletiyi yazan ID
'name' => '', // İletiyi yazan adı
'email' => '', // İletiyi yazan emaili
'update_post_count' => !$user_info['is_guest'] && !isset($_REQUEST['msg']) && $board_info['posts_count'],
);
createPost($msgOptions, $topicOptions, $posterOptions);
?>Daha fazla bilgi:
http://support.simplemachines.org/fu...unction;id=323