17
rgauci, check the code inside my file and try to modify manually the original file in your 2.18.2 xoops.
in xoops.js
le="color: #000000"><?php //urbanspaceman add function xoopsCodeMp3(id, enterMp3Phrase, enterMp3AuthorPhrase, enterMp3TitlePhrase){ var selection = getSelect(id); if (selection.length > 0){ var text = selection; } else{ var text = prompt(enterMp3Phrase, ""); } var domobj = xoopsGetElementById(id); if ( text.length>0 ) { var text2 = prompt(enterMp3AuthorPhrase, ""); var text3 = prompt(enterMp3TitlePhrase, ""); var result = "[mp3=autore:"+text2+" titolo:"+text3+"]" + text + "[/mp3]"; xoopsInsertText(domobj, result); } domobj.focus(); } //end urbanspaceman add
in dhtmltext.php
le="color: #000000"><?php //urbanspaceman add if (!empty($myts->config['extensions']['mp3'])) { $code .= "<img src='{$image_path}/mp3.gif' alt='" . _ALTMP3 . "' onclick='xoopsCodeMp3("{$textarea_id}","" . htmlspecialchars(_ENTERMP3URL, ENT_QUOTES) . "","" . htmlspecialchars(_ENTERAUTHOR, ENT_QUOTES) . "","" . htmlspecialchars(_ENTERTITLE, ENT_QUOTES) . "");' onmouseover='style.cursor="hand"'/> "; } //end urbanspaceman add