In inferno.php replace
function inferno_newthread()
{
global $mybb, $db, $settings, $url, $lang, $tid;
if ($settings['inferno_enabled'])
{
$inferno = inferno_init();
$data = $mybb->input;
$fid = $data['fid'];
if ($settings['inferno_thread_post'] && !in_array($fid, explode(',', $settings['inferno_thread_forums'])))
{
$link = '[url=' . $settings['bburl'] . '/' . get_thread_link($tid) . ']' . $db->escape_string($data['subject']) . '[/url]';
$shout = $lang->sprintf($lang->isb_newthread, $link);
$inferno->create_shout($mybb->user['uid'], $shout, true);
}
}
}
with
function inferno_newthread()
{
global $mybb, $db, $settings, $url, $lang, $tid, $visible, $new_thread;
if ($settings['inferno_enabled'])
{
$inferno = inferno_init();
$data = $mybb->input;
$fid = $data['fid'];
if ($visible && !$new_thread['savedraft'])
{
if ($settings['inferno_thread_post'] && !in_array($fid, explode(',', $settings['inferno_thread_forums'])))
{
$link = '[url=' . $settings['bburl'] . '/' . get_thread_link($tid) . ']' . $db->escape_string($data['subject']) . '[/url]';
$shout = $lang->sprintf($lang->isb_newthread, $link);
$inferno->create_shout($mybb->user['uid'], $shout, true);
}
}
}
}
EDIT: Sorry about that, this only works for the new thread. I was in a rush this morning and didn't read far enough. I'll work on the new post when I have time, maybe late tonight, probably tomorrow.
EDIT 2: Okay, I'm back and here's the code to fix the posts
Replace
function inferno_newpost()
{
global $mybb, $db, $settings, $post, $url, $lang, $thread;
$counter = (int) $settings['inferno_newpost'];
$posts = (int) $mybb->user['postnum'] + 1;
if ($settings['inferno_enabled'] && $counter)
{
$inferno = inferno_init();
if ($posts % $counter == 0)
{
$inferno->create_shout($mybb->user['uid'], $lang->sprintf($lang->isb_newpost, $posts), true);
}
}
if ($settings['inferno_enabled'])
{
$inferno = inferno_init();
$data = $mybb->input;
$fid = $thread['fid'];
$inferno_url = htmlspecialchars_decode($url);
if ($settings['inferno_post_post'] && !in_array($fid, explode(',', $settings['inferno_thread_forums'])))
{
$link = '[url=' . $settings['bburl'] . '/' . $inferno_url . ']' . $db->escape_string($thread['subject']) . '[/url]';
$shout = $lang->sprintf($lang->isb_newpost_shout, $link);
$inferno->create_shout($mybb->user['uid'], $shout, true);
}
}
}
with
function inferno_newpost()
{
global $mybb, $db, $settings, $post, $url, $lang, $thread, $visible;
$counter = (int) $settings['inferno_newpost'];
$posts = (int) $mybb->user['postnum'] + 1;
if ($visible == 1) {
if ($settings['inferno_enabled'] && $counter)
{
$inferno = inferno_init();
if ($posts % $counter == 0)
{
$inferno->create_shout($mybb->user['uid'], $lang->sprintf($lang->isb_newpost, $posts), true);
}
}
if ($settings['inferno_enabled'])
{
$inferno = inferno_init();
$data = $mybb->input;
$fid = $thread['fid'];
$inferno_url = htmlspecialchars_decode($url);
if ($settings['inferno_post_post'] && !in_array($fid, explode(',', $settings['inferno_thread_forums'])))
{
$link = '[url=' . $settings['bburl'] . '/' . $inferno_url . ']' . $db->escape_string($thread['subject']) . '[/url]';
$shout = $lang->sprintf($lang->isb_newpost_shout, $link);
$inferno->create_shout($mybb->user['uid'], $shout, true);
}
}
}
}
Both are in inferno.php. I also updated the code on the github page, so if you download it from there, it will have this.