??????? ????? ???? ?????? ????? hoteditor
مرسل: الثلاثاء نوفمبر 11, 2008 10:55 pm
?????? ????? ...
????? ??? ?? ????
??? ???? ?? ?????? ????? hoteditor
???? ?? ?????? ?????? ?? ???? ??????
??? ?????? ??? evil quick replay
???? ???????? ?? ??? posting_qr_replay
????? ?????? :
?????? ??????
???????? ??? ???? ??? ??? ????? ?? ????? ?????? ?????? ?? ????? ??? ucp_profie_signture ???? ??????? ???? ??? ???? ?????? ??? ??? ???? ??? ???? ????? ???? ?? ?? ????? ????? ?? ??? ????? ????? ??? ???? ?????? ??????? ??? ???? ??????? ... ?
?? ???? ??? ?? ???? ???? .. ?
????? ??? ?? ????
??? ???? ?? ?????? ????? hoteditor
???? ?? ?????? ?????? ?? ???? ??????
??? ?????? ??? evil quick replay
???? ???????? ?? ??? posting_qr_replay
????? ?????? :
كود: تحديد الكل
<textarea name="message" id="message" rows="15" cols="76" tabindex="2" style="width: 70%; height: 150px;"></textarea>
كود: تحديد الكل
<!--//HotEditor MOD START - Remove BBcode buttons & font color panel -->
<textarea class="post" style="visibility:hidden;position:absolute;top:-20;left:-20;width:1px;height:1px" id="signature" name="signature" rows="10" cols="76" style="width: 90%;" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);">{SIGNATURE}</textarea>
<style type='text/css'>@import url(richedit/styles/office2007/style.css);</style>
<script language="JavaScript" type="text/javascript" src="richedit/editor.js?version=4.2"></script>
<script type="text/javascript" src="{T_TEMPLATE_PATH}/editor.js"></script>
<script language="JavaScript" type="text/javascript">
var getdata = document.getElementById("signature").value;
getdata = convertSize(getdata,"1");
Instantiate("min","editor", getdata , "100%", "150px");
//For Vietnamese User. Edit file editor.js to enable vietnamese keyboard
if(enable_vietnamese_keyboard==1){
document.write("<script language=\"JavaScript\" type=\"text/javascript\" src=\"richedit/avim.js\"><\/script>");
var hoteditor_avim_method = hot_readCookie("hoteditor_avim_method");var him_auto_checked="";var him_telex_checked="";var him_vni_checked="";var him_viqr_checked="";var him_viqr2_checked="";var him_off_checked="";if(hoteditor_avim_method=="0"){him_auto_checked="checked";}else if(hoteditor_avim_method=="1"){him_telex_checked="checked";}else if(hoteditor_avim_method=="2"){him_vni_checked="checked";}else if(hoteditor_avim_method=="3"){him_viqr_checked="checked";}else if(hoteditor_avim_method=="4"){him_viqr2_checked="checked";}else if(hoteditor_avim_method=="-1"){him_off_checked="checked";}
document.write("<div style='width:100%;text-align:center;font-family:Verdana;font-size:11px;'><input "+him_auto_checked+" id=him_auto onclick=setMethod(0); type=radio name=viet_method> Auto :: <input "+him_telex_checked+" id=him_telex onclick=setMethod(1); type=radio name=viet_method> Telex :: <input "+him_vni_checked+" id=him_vni onclick=setMethod(2); type=radio name=viet_method> VNI :: <input "+him_viqr_checked+" id=him_viqr onclick=setMethod(3); type=radio name=viet_method> VIQR :: <input "+him_viqr2_checked+" id=him_viqr2 onclick=setMethod(4); type=radio name=viet_method> VIQR* :: <input "+him_off_checked+" id=him_off onclick=setMethod(-1); type=radio name=viet_method> Off<br><img src="+styles_folder_path+"/vietnamese_symbol.gif></div>");
}
function get_hoteditor_data(){
if (HTML_ON == "no"){
alert ("Please uncheck the HTML checkbox");
return false;
}
setCodeOutput();
var bbcode_output=document.getElementById("hoteditor_bbcode_ouput_editor").value;//Output to BBCode
//Make BBCode ouput compatible with phpbb
var currentDomain=document.URL;
currentDomain=currentDomain.replace("http://","");
var infoDomain=currentDomain.split("/");
var correctDomain="http://";
for(var d=0;d < infoDomain.length; d++){
if(d<infoDomain.length-1) correctDomain+=infoDomain[d]+"/";
}
bbcode_output=bbcode_output.replace(/\[IMG\]\.\//gi,"[IMG]"+correctDomain);
bbcode_output=bbcode_output.replace(/\[(\/)quote\]/gi,"[$1quote]");
bbcode_output = convertSize(bbcode_output,"0");
document.getElementById("signature").value = bbcode_output;
}
function convertSize(text,what){
if(what=="1"){//phpBB size to Hoteditor size
text=text.replace(/\[size=85\]/gi,"[SIZE=1]");
text=text.replace(/\[size=100\]/gi,"[SIZE=2]");
text=text.replace(/\[size=120\]/gi,"[SIZE=3]");
text=text.replace(/\[size=130\]/gi,"[SIZE=4]");
text=text.replace(/\[size=150\]/gi,"[SIZE=5]");
text=text.replace(/\[size=170\]/gi,"[SIZE=6]");
text=text.replace(/\[size=200\]/gi,"[SIZE=7]");
}
else{//Hoteditor size to phpBB size
text=text.replace(/\[size=1\]/gi,"[SIZE=85]");
text=text.replace(/\[size=2\]/gi,"[SIZE=100]");
text=text.replace(/\[size=3\]/gi,"[SIZE=120]");
text=text.replace(/\[size=4\]/gi,"[SIZE=130]");
text=text.replace(/\[size=5\]/gi,"[SIZE=150]");
text=text.replace(/\[size=6\]/gi,"[SIZE=170]");
text=text.replace(/\[size=7\]/gi,"[SIZE=200]");
}
return text;
}
</script>
<!--//HotEditor MOD END -->
?? ???? ??? ?? ???? ???? .. ?