Message # 1 | 3:05 PM
This function only apply for some specific groups not for user. Because I have no time to write a completely post so I just give the code.

Step 1. Login ACP > User > User permission > Choose the group which can use HTML code in forum.
Step 2. ACP > Design Template > Forum > New Message Form
Or click on the link http://yourdomain.com/tmpls/?a=tmpl;m=8;t=3 replace yourdomain.com by yours.

Find


Code

<?if($_HTML_OPT$)?>
$_HTML_OPT$ <label for="ahtml">Enable HTML tags</label>
$_MAKE_BR_OPT$ <label for="frmt">Substitute line feeds by the tag <b><BR></b></label><br>
<?endif?>   


Replace

Quote
<script type="text/javascript">
get_editor832 = function(t){
if (t==1){window.open('/tmpls/?a=wysiwyg;f=message;g=sp;frag=1;noif=1;nocm=1','wysiwyg2','scrollbars=1,resizable=1,top=0,left=0,width=760,height=560');return false;}if (!document.getElementById('tempMess34message')){var kk = document.createElement('textarea');kk.setAttribute('id','tempMess34message');kk.style.display='none';document.body.appendChild(kk);}
document.getElementById('tempMess34message').value=document.getElementById('message').value;
try{document.getElementById('myGrid').style.cssText = 'position:absolute; z-index:8; top:0;left:0; display:normal; background: url(\'http://s500.dmon.com/img/fr/g.gif\'); text-align:center; width:'+document.body.scrollWidth+'px; height:'+document.body.scrollHeight+'px;';}catch(e){}
_uPostForm('',{url:'http://www.yourdomain.com/index/30-4-'+t+'-2'});
}
</script>
<TD class=gTableRight id=frM16><?if($_HTML_OPT$)?>$_HTML_OPT$ <LABEL for=ahtml>Enable HTML tags</LABEL> - [ <a href="javascript://" rel="nofollow" onclick="get_editor832('1');return false;">Visual Editor WYSIWYG</a>] <BR>$_MAKE_BR_OPT$ <LABEL for=frmt>Substitute line feeds by the tag </LABEL><BR><?endif?>


Replace yourdomain.com by yours.

Demo



Done.

Good luck.
Attachments: 4348010.jpg (22.1 Kb)
Post edited by Good - Sunday, 2012-07-15, 3:11 PM