UPGRADE FROM 1.0 INSTRUCTIONS
In NEWTHREAD.PHP:
Find:
PHP Code:
$posticons = construct_icons(intval($newpost['iconid']), $foruminfo['allowicons']);
Add BELOW:
PHP Code:
// get ignore ids
if ($bbuserinfo['ignorelist'])
{
$ignore_ids = explode(' ', trim($bbuserinfo['ignorelist']));
}
else
{
$ignore_ids = array();
}
$listusers = array();
if (!empty($ignore_ids))
{
$users = $DB_site->query("
SELECT userid, username FROM " . TABLE_PREFIX . "user
WHERE userid IN (" . implode(',', $ignore_ids) . ")
ORDER BY username
");
while ($userinfo = $DB_site->fetch_array($users))
{
if ($userinfo['userid'] != 0)
{
if (in_array($userinfo['userid'], $ignore_ids))
{
$listusers['ignore']["$userinfo[userid]"] = $userinfo['username'];
}
}
}
}
$ignore_listbits = '';
if (!empty($listusers['ignore']))
{
$_usercount = 0;
foreach ($listusers['ignore'] AS $userid => $username)
{
$_usercount++;
if ($_usercount > 1)
{
eval('$ignore_listbits .= ",$username";');
}
else
{
eval('$ignore_listbits .= "$username";');
}
}
}
In (template) NEWTHREAD:
Find:
HTML Code:
<input type="text" class="bginput" size="25" name="bannedposters" id="$bannedposters" tabindex="1" /></label></div>
REPLACE with:
HTML Code:
<input type="text" class="bginput" size="25" name="bannedposters" id="$bannedposters" value="$ignore_listbits" tabindex="1" /></label></div>