Now you can Download a packed zip file.
OR
You can add this code to "acp_icons.php", look for "}" sign at Line 418* (apprx.),
and adds the entire code after that line as it is.

Note: There are commeted (/*) lines for the 'replace' command (I think it's not needed), but if you want it uncommet these lines.


Code: Select all
else if ($data= split('=\+:',$pak_entry))
{
$img = stripslashes($data[0]);
list($width, $height ) = getimagesize($phpbb_root_path . $img_path."/".$img);
$display_on_posting = '1';
if (isset($data[1]) && isset($data[2]))
{
$emotion = stripslashes($data[1]);
$code = trim(str_replace('"',""",$data[2]));
}
/* if ($current == 'replace' &&
(($mode == 'smilies' && !empty($cur_img[$code])) ))
{
$replace_sql = ($mode == 'smilies') ? $code : $img;
$sql = array(
$fields . '_url' => $img,
$fields . '_height' => (int) $height,
$fields . '_width' => (int) $width,
'display_on_posting' => (int) $display_on_posting,
);
if ($mode == 'smilies')
{
$sql = array_merge($sql, array(
'emotion' => $emotion,
));
}
$sql = "UPDATE $table SET " . $db->sql_build_array('UPDATE', $sql) . "
WHERE $field_sql = '" . $db->sql_escape($replace_sql) . "'";
$db->sql_query($sql);
}
else
{*/ // IF rep
++$order;
$sql = array(
$fields . '_url' => $img,
$fields . '_height' => (int) $height,
$fields . '_width' => (int) $width,
$fields . '_order' => (int) $order,
'display_on_posting'=> (int) $display_on_posting,
);
if ($mode == 'smilies')
{
$sql = array_merge($sql, array(
'code' => $code,
'emotion' => $emotion,
));
}
$db->sql_query("INSERT INTO $table " . $db->sql_build_array('INSERT', $sql));
//} //IF replace

