Re: Catads 1.50 beta | Titre du sujet : Re: Catads 1.50 beta par trabis sur 28/12/2008 21:59:35
Not sure if I understood :(
If you want to add scrollbars for the smilies area then you can edit class/xoopsform/formdhtmltextarea.php
Replace this function (xoops 2.0.18)
/**
* prepare HTML for output of the smiley list.
*
* @return string HTML
*/
function _renderSmileys()
{
$myts =& MyTextSanitizer::getInstance();
$smiles = $myts->getSmileys( false );
$ret = '<div style="height:100px; overflow-y:scroll;">';
$count = count($smiles);
$ele_name = $this->getName();
for ($i = 0; $i < $count; $i++) {
$ret .= "<img onclick='xoopsCodeSmilie("".$ele_name."", " ".$smiles[$i]['code']." ");' onmouseover='style.cursor="hand"' src='".XOOPS_UPLOAD_URL."/".htmlspecialchars($smiles[$i]['smile_url'], ENT_QUOTES)."' border='0' alt='' />";
}
$ret .= " [<a href='#moresmiley' onclick='javascript:openWithSelfMain("".XOOPS_URL."/misc.php?action=showpopups&type=smilies&target=".$ele_name."","smilies",300,475);'>"._MORE."</a>]";
$ret .= "</div>";
return $ret;
}
|
|