2007-03-22, 07:51 PM
2007-03-22, 08:49 PM
Hello there
Open misc.php
find
replace with
Now in misc_smilies_popup template
change all
to change the width of the popup, edit ./jscripts/editor.js
there you find
Open misc.php
find
while($smilie = $db->fetch_array($query))
{
$smilie['insert'] = addslashes($smilie['find']);
$smilie['find'] = htmlspecialchars_uni($smilie['find']);
eval("\$smilies .= \"".$templates->get("misc_smilies_popup_smilie")."\";");
if($e == 2)
{
$smilies .= "</tr><tr>";
$e = 1;
$class = alt_trow();
}
else
{
$e = 2;
}
}
if($e == 2)
{
$smilies .= "<td colspan=\"2\" class=\"$class\"> </td>";
}
replace with
while($smilie = $db->fetch_array($query))
{
if($e == 4)
{
$smilies .= "</tr><tr>";
$e = 1;
$class = alt_trow();
}
$smilie['insert'] = addslashes($smilie['find']);
$smilie['find'] = htmlspecialchars_uni($smilie['find']);
eval("\$smilies .= \"".$templates->get("misc_smilies_popup_smilie")."\";");
$e++;
}
if($e == 3)
{
$smilies .= "<td colspan=\"2\" class=\"$class\"> </td>";
}
Now in misc_smilies_popup template
change all
colspan="4"
tocolspan="6"
to change the width of the popup, edit ./jscripts/editor.js
there you find
MyBB.popupWindow('misc.php?action=smilies&popup=true&editor='+editor, 'sminsert', 240, 280);
just change the number at the end.2007-03-22, 09:17 PM
Great.
Thank you very much.
Thank you very much.