Quote:
Originally Posted by StefanS
Hi,
just tested the following code:
PHP Code:
<?
require('./global.php');
require('./includes/functions_newpost.php');
$userid = 10;
$forumid = 100;
$foruminfo = fetch_foruminfo($forumid);
$bbuserinfo = fetch_userinfo($userid);
$post[title] = 'subject';
$post[message] = 'message';
$post[poststarttime] = TIMENOW;
$post[posthash] = md5($post[poststarttime] . $bbuserinfo['userid'] . $bbuserinfo['salt']);
build_new_post('thread', $foruminfo, array(), 0, $post, $errors);
?>
works for me with 3.03 without problems ...
|
is there a form to add the threads you want and create the conditions under which their added?