SimplePortal
Customization => Blocks and Modifications => Mod Requests => Topic started by: wiecher on December 02, 2010, 08:52:26 AM
-
Hello
Is there an option to automatically shoutbox messages in a topic to post?
Gr wiecher
-
./Sources/Subs-Portal.php
global $smcFunc, $user_info;
if ($user_info['is_guest'])
global $smcFunc, $user_info, $sourcedir;
if ($user_info['is_guest'])
$shoutbox['num_shouts']++;
if ($shoutbox['num_shouts'] > $shoutbox['num_max'])
$board_id = 76; // EDIT
$subject = 'New Shout!'; // EDIT
require_once($sourcedir . '/Subs-Post.php');
$msgOptions = array(
'subject' => $subject,
'body' => $shout,
);
$topicOptions = array(
'board' => $board_id,
'mark_as_read' => false,
);
$posterOptions = array(
'id' => $user_info['id'],
'name' => $user_info['name'],
'email' => $user_info['email'],
'update_post_count' => !$user_info['is_guest'],
);
createPost($msgOptions, $topicOptions, $posterOptions);
$shoutbox['num_shouts']++;
if ($shoutbox['num_shouts'] > $shoutbox['num_max'])
-
Ok thanks.
Which topic is it of ours?
Gr Wiecher
-
Here is mine subs.portal.php.
Can you please help me ?
-
Which topic is it of ours?
What you mean?
-
Which topic is it of ours?
What you mean?
Can you take a look at mine attachment please ?
-
Not Subs-Post.php. You'll look at Subs-Portal.php.
-
Not Subs-Post.php. You'll look at Subs-Portal.php.
Ok thanks.
Where do the messages are?
They come in a topic?