1
In news,newbb,mylink,message,blocksadmin module, when you send or edit something, the window may be to much wide if the smileys is visible to much.
It make inconvenient.
I have known how to hack for news,newbb and message, but blocksadmin and mylink. since the blocksadmin is link to \class\xoopsform\formdhtmltextarea.php and use smarty. I try but fail. so for help.
other is easy as it is HTML.
Below is the hack way.
1,messages:xoops/pmlite.php
echo ""._PM_MESSAGEC." | ";
echo ""; xoopsCodeTarea("message",37,8); xoopsSmilies("message"); echo " | ";
echo "
";
the “width='540'” it is.
2,newbb:/modules/newbb/includes/forumform.inc.php
<tr align='left'>
<td class='head' valign='top' nowrap='nowrap'>". _MD_MESSAGEC ."
td>
<td class='odd' width='540'>";
xoopsCodeTarea("message");
if ( !empty($isreply) && isset($hidden) && $hidden != "" ) {
echo "<input type='hidden' name='isreply' value='1' />";
echo "<input type='hidden' name='hidden' id='hidden' value='$hidden' />
<input type='button' name='quote' class='formButton' value='"._MD_QUOTE."'
onclick='xoopsGetElementById("message").value=xoopsGetElementById("message").value +
xoopsGetElementById("hidden").value; xoopsGetElementById("hidden").value="";' /><br />";
}
xoopsSmilies("message");
echo "td>tr>
same add a "width='540'".
3,news:/modules/news/admin/storyform.inc.php
// ------------------------------------------------------------------------ //
if ( !preg_match("/index.php/", $HTTP_SERVER_VARS['PHP_SELF']) ) {
exit("access denied");
}
include XOOPS_ROOT_PATH."/include/xoopscodes.php";
if(!isset($submit_page)){
$submit_page = $HTTP_SERVER_VARS['PHP_SELF'];
}
?>