تحديث آخر نسخة 1.8.37

تقييم الموضوع :
  • 3 أصوات - بمعدل 3.67
  • 1
  • 2
  • 3
  • 4
  • 5
هاك WYSIWYG BBCode Editor for MyBB 1.4
#1
انا يا جماعة وضعت هذا الطلب في الدعم لكن لم يستطع احد الرد على طلبي فققررت البحث بنفسي والحمد الله نجحت وحبيت افيدكم معاي

بسم الله الرحمن الرحيم
اولا نحمل الهاك من هذا الرابط.
منتديات الدليل العربي

بعد فك الضغط عن المجلد ستجد الملفات التالية
1-inc ---بداخله class_parser.php
انقله الى منتداك على هذا المسار root/forume/inc
2- ل jscript --انقل محتواه الى مجلد jscript اللي في منتداك
3- richedit--انقله كاملا الى مجلد منتداك الرئيسي.
4- hoteditor_quickedit.php --انقله الى مجلد منتداك الرئيسي..

بعد ان قمنا بنقل الملفات ناتي الان الى الشرح حول التعديل في بعض القوالب.فيا ريت الانتباه هنا.

ملاحظة :صاحب الهاك حذر من انه قد لا يعمل وكل خسائر ستكزن على مسؤليتك الخاصة

بالنسبة لي فالهاك اشتغل 100/100
----------------------------
1- نروح على القوالب ونختار قالبEdit Post Templates--ثم editpost
امسح كل ما بداخله وضع مكانه
PHP كود :
<html>
<
head>
<
title>{$mybb->settings['bbname']} - {$lang->edit_post}</title>
{
$headerinclude}
<
script type="text/javascript" src="jscripts/post.js?ver=1400"></script>
</head>
<body>
{$header}
{$preview}
{$post_errors}
{$attacherror}
<form action="editpost.php" method="post" name="editpost">
<input type="hidden" name="my_post_key" value="{$mybb->post_code}" />
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead" colspan="3"><strong>{$lang->delete_post}</strong></td>
</tr>
<tr>
<td class="trow1" style="white-space: nowrap"><input type="checkbox" class="checkbox" name="delete" value="1" tabindex="9" /> <strong>{$lang->delete_q}</strong></td>
<td class="trow1" width="100%">{$lang->delete_1}<br /><span class="smalltext">{$lang->delete_2}</span></td>
<td class="trow1"><input type="submit" class="button" name="submit" value="{$lang->delete_now}" tabindex="10" /></td>
</tr>
</table>
<input type="hidden" name="action" value="deletepost" />
<input type="hidden" name="pid" value="{$pid}" />
</form>
<br />
<form onSubmit="return get_hoteditor_data();" action="editpost.php?pid={$pid}&amp;processed=1" method="post" enctype="multipart/form-data" name="input">
<input type="hidden" name="my_post_key" value="{$mybb->post_code}" />
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead" colspan="2"><strong>{$lang->edit_post}</strong></td>
</tr>
{$loginbox}
<tr>
<td class="trow2"><strong>{$lang->subject}</strong></td>
<td class="trow2"><input type="text" class="textbox" name="subject" size="40" maxlength="85" value="{$subject}" tabindex="1" /></td>
</tr>
<!-- Uncomment the section below if you use the "Edit Reason" mod -->
<!--    <tr>
    <td class="trow2"><strong>Edit Reason</strong></td>
    <td class="trow2"><input type="text" class="textbox" name="editreason" size="40" maxlength="100" value="{$post['editreason']}" tabindex="1" /></td>
    </tr> -->
{$posticons}
<tr>
<td class="trow2" valign="top"><strong>{$lang->your_message}:</strong><br /></td>
<td class="trow2">
<!-- //EDITOR -->
<textarea style="visibility:hidden;position:absolute;top:-20;left:-20;width:1px;height:1px" name="message" id="message" rows="20" cols="70" tabindex="3">{$message}</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 language="JavaScript" type="text/javascript">
    var getdata =document.getElementById("message").value;
    //Make it work with MOD Hoteditor 4.0
    if(getdata.indexOf("{EDITOR=")!=-1 && getdata.indexOf("EDITOR}")!=-1){
 getdata=getdata.replace(/\&amp;/gi,"&");
 getdata=getdata.replace(/\&lt;/gi,"<");
 getdata=getdata.replace(/\&gt;/gi,">");
 getdata=getdata.replace(/\[<\]/gi,"&lt;");
 getdata=getdata.replace(/\[>\]/gi,"&gt;");
 getdata=getdata.replace(/\[<\]/gi,"&lt;");
 getdata=getdata.replace(/\[>\]/gi,"&gt;");
 getdata=getdata.replace(/\&quot;/gi,"\"");
 getdata=getdata.replace(/[\r\n]/gi,"");
 getdata=getdata.replace(/\{EDITOR=/gi,"");
 getdata=getdata.replace(/EDITOR\}/gi,"");
 
 //Convert to BBCode
 getdata=HTMLToBBCode(getdata);
    }
    Instantiate("max","editor", getdata , "100%", "300px");
    //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 it work with MOD Hoteditor 4.0
 bbcode_output=bbcode_output.replace(/\{EDITOR=/gi,"[B]{[/B]EDITOR=");
 bbcode_output=bbcode_output.replace(/EDITOR\}/gi,"EDITOR[B]}[/B]");

 //Output BBCode to message textarea
 document.getElementById("message").value = bbcode_output;
    }
</script>
<!-- //EDITOR -->
</td>
</tr>
<tr>
<td class="trow1" valign="top"><strong>{$lang->post_options}</strong></td>
<td class="trow1"><span class="smalltext">
<label><input type="checkbox" class="checkbox" name="postoptions[signature]" value="1" tabindex="6"{$postoptionschecked['signature']} /> {$lang->options_sig}</label>
{$disablesmilies}</span>
</td>
</tr>
{$subscriptionmethod}
{$pollbox}
</table>
{$attachbox}
<br />
<div align="center"><input type="submit" class="button" name="submit" value="{$lang->update_post}" tabindex="3" /> <input type="submit" class="button" name="previewpost" value="{$lang->preview_post}" tabindex="4" /></div>
<input type="hidden" name="action" value="do_editpost" />
<input type="hidden" name="posthash" value="{$posthash}" />
<input type="hidden" name="attachmentaid" value="" />
<input type="hidden" name="attachmentact" value="" />
</form>
{$footer}
</body>
</html> 

ثم احفظ التعديل.
----------------------------------------
2-
نروح على New Reply Templates ثم نفتح newreply
نمسح الكود اللي بداخله ونضع مكانو
PHP كود :
<html>
<
head>
<
title>{$lang->post_reply_to}</title>
{
$headerinclude}
<
script type="text/javascript" src="jscripts/post.js?ver=1400"></script>
</head>
<body>
{$header}
{$preview}
{$maximageserror}
{$attacherror}
{$reply_errors}
<form action="newreply.php?tid={$tid}&amp;processed=1" method="post" enctype="multipart/form-data" name="input">
<input type="hidden" name="my_post_key" value="{$mybb->post_code}" />
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead" colspan="2"><strong>{$lang->post_new_reply}</strong></td>
</tr>
<tr>
<td class="tcat" colspan="2"><span class="smalltext"><strong>{$lang->reply_to}</strong></span></td>
</tr>
{$loginbox}
<tr>
<td class="trow2" width="20%"><strong>{$lang->post_subject}</strong></td>
<td class="trow2"><input type="text" class="textbox" name="subject" size="40" maxlength="85" value="{$subject}" tabindex="1" /></td>
</tr>
{$posticons}
<tr>
<td class="trow2" valign="top"><strong>{$lang->your_message}</strong><br /></td>
<td class="trow2">
<!-- //EDITOR -->
<textarea style="visibility:hidden;position:absolute;top:-20;left:-20;width:1px;height:1px" id="message" name="message" rows="20" cols="70" tabindex="2" >{$message}</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 language="JavaScript" type="text/javascript">
    var getdata =document.getElementById("message").value;
    //Make it work with MOD Hoteditor 4.0
    if(getdata.indexOf("{EDITOR=")!=-1 && getdata.indexOf("EDITOR}")!=-1){
 getdata=getdata.replace(/\&amp;/gi,"&");
 getdata=getdata.replace(/\&lt;/gi,"<");
 getdata=getdata.replace(/\&gt;/gi,">");
 getdata=getdata.replace(/\[<\]/gi,"&lt;");
 getdata=getdata.replace(/\[>\]/gi,"&gt;");
 getdata=getdata.replace(/\[<\]/gi,"&lt;");
 getdata=getdata.replace(/\[>\]/gi,"&gt;");
 getdata=getdata.replace(/\&quot;/gi,"\"");
 getdata=getdata.replace(/[\r\n]/gi,"");
 getdata=getdata.replace(/\{EDITOR=/gi,"");
 getdata=getdata.replace(/EDITOR\}/gi,"");

 //Convert to BBCode
 getdata=HTMLToBBCode(getdata);
    }
    Instantiate("max","editor", getdata , "100%", "300px");
    //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 it work with MOD Hoteditor 4.0
 bbcode_output=bbcode_output.replace(/\{EDITOR=/gi,"[B]{[/B]EDITOR=");
 bbcode_output=bbcode_output.replace(/EDITOR\}/gi,"EDITOR[B]}[/B]");

 //Output BBCode to message textarea
 document.getElementById("message").value = bbcode_output;
    }
</script>
<!-- //EDITOR -->
{$multiquote_external}
</td>
</tr>
<tr>
<td class="trow1" valign="top"><strong>{$lang->post_options}</strong></td>
<td class="trow1"><span class="smalltext">
<label><input type="checkbox" class="checkbox" name="postoptions[signature]" value="1" tabindex="6"{$postoptionschecked['signature']} /> {$lang->options_sig}</label>
{$disablesmilies}
</span></td>
</tr>
{$modoptions}
{$subscriptionmethod}
{$captcha}
</table>
{$attachbox}
<br />
<div align="center"><input onClick="get_hoteditor_data();" type="submit" class="button" name="submit" value="{$lang->post_reply}" tabindex="3" accesskey="s" /> <input onClick="get_hoteditor_data();" type="submit" class="button" name="previewpost" value="{$lang->preview_post}" tabindex="4" />{$savedraftbutton}</div>
<input type="hidden" name="action" value="do_newreply" />
<input type="hidden" name="replyto" value="{$replyto}" />
<input type="hidden" name="posthash" value="{$posthash}" />
<input type="hidden" name="attachmentaid" value="" />
<input type="hidden" name="attachmentact" value="" />
<input type="hidden" name="quoted_ids" value="{$quoted_ids}" />
<input type="hidden" name="tid" value="{$tid}" />
{$editdraftpid}
</form>
{$forumrules}
{$threadreview}
{$footer}
</body>
</html> 

ثم احفظ التعديل.
---------------------------------------
3-
نروح على New Thread Templates ثم نفتح newthread
ونمسح ما بداخله ونضع مكانو
PHP كود :
<html>
<
head>
<
title>{$lang->newthread_in}</title>
{
$headerinclude}
<
script type="text/javascript" src="jscripts/post.js?ver=1400"></script>
</head>
<body>
{$header}
{$preview}
{$thread_errors}
{$attacherror}
<form action="newthread.php?fid={$fid}&amp;processed=1" method="post" enctype="multipart/form-data" name="input">
<input type="hidden" name="my_post_key" value="{$mybb->post_code}" />
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead" colspan="2"><strong>{$lang->post_new_thread}</strong></td>
</tr>
{$loginbox}
<tr>
<td class="trow2" width="20%"><strong>{$lang->thread_subject}</strong></td>
<td class="trow2"><input type="text" class="textbox" name="subject" size="40" maxlength="85" value="{$subject}" tabindex="1" /></td>
</tr>
{$posticons}
<tr>
<td class="trow2" valign="top"><strong>{$lang->your_message}</strong></td>
<td class="trow2">
<!-- //EDITOR -->
<textarea style="visibility:hidden;position:absolute;top:-20;left:-20;width:1px;height:1px" name="message" id="message" rows="20" cols="70" tabindex="2">{$message}</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 language="JavaScript" type="text/javascript">
    var getdata =document.getElementById("message").value;
    Instantiate("max","editor", getdata , "100%", "300px");
    //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 it work with MOD Hoteditor 4.0
 bbcode_output=bbcode_output.replace(/\{EDITOR=/gi,"[B]{[/B]EDITOR=");
 bbcode_output=bbcode_output.replace(/EDITOR\}/gi,"EDITOR[B]}[/B]");

 document.getElementById("message").value = bbcode_output;
    }
</script>
<!-- //EDITOR -->
{$multiquote_external}
</td>
</tr>
<tr>
<td class="trow1" valign="top"><strong>{$lang->post_options}</strong></td>
<td class="trow1"><span class="smalltext">
<label><input type="checkbox" class="checkbox" name="postoptions[signature]" value="1" tabindex="7"{$postoptionschecked['signature']} /> {$lang->options_sig}</label>
{$disablesmilies}</span></td>
</tr>
{$modoptions}
{$subscriptionmethod}
{$pollbox}
{$captcha}
</table>
{$attachbox}
<br />
<div style="text-align:center"><input onClick="get_hoteditor_data();" type="submit" class="button" name="submit" value="{$lang->post_thread}" tabindex="4" accesskey="s" /> <input onClick="get_hoteditor_data();" type="submit" class="button" name="previewpost" value="{$lang->preview_post}" tabindex="5" />{$savedraftbutton}</div>
<input type="hidden" name="action" value="do_newthread" />
<input type="hidden" name="posthash" value="{$posthash}" />
<input type="hidden" name="attachmentaid" value="" />
<input type="hidden" name="attachmentact" value="" />
<input type="hidden" name="quoted_ids" value="{$quoted_ids}" />
<input type="hidden" name="tid" value="{$tid}" />
{$editdraftpid}
</form>
{$forumrules}
{$footer}
</body>
</html> 

ثم احفظ
------------------------------------


4- نروح على قالب Post Templates ونفتح post_attachments_attachment_postinsert
ونمسح محتواه ونحط مكانو(بالنسب لي انا اضفت الكود ولم امسح القديم)
PHP كود :
<!-- <input type="button" name="insert" value="{$lang->insert_attachment_post}onclick="clickableEditor.insertAttachment({$attachment['aid']});" /> -->
<
input type="button" name="insert" value="{$lang->insert_attachment_post}onclick="if(editor_type=='0'){WriteTEXT('[attachment='+{$attachment['aid']}+']','editor');}else{WriteHTML('[attachment='+{$attachment['aid']}+']','editor');}" /> 
-
واحفظ التعديل
---------------------------------------------------
5- نروح على Private Messaging Templates ثم نفتح private_send (لقد قمت بالاستغناء عن هذه الخطوة لان صاحب الهاك حذر منها)
نمسح الكود اللي فيها
ونحظ مكانو
PHP كود :
<html>
<
head>
<
title>{$lang->compose_pm}</title>
{
$headerinclude}
<
script type="text/javascript" src="jscripts/usercp.js?ver=1400"></script>
</head>
<body>
{$header}
<form action="private.php" method="post" name="input">
<input type="hidden" name="my_post_key" value="{$mybb->post_code}" />
<table width="100%" border="0" align="center">
<tr>
{$usercpnav}
<td valign="top">
{$preview}
{$send_errors}
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead" colspan="2"><strong>{$lang->compose_pm}</strong></td>
</tr>
<tr>
<td class="trow1" valign="top" width="200"><strong>{$lang->compose_to}</strong>
    <script type="text/javascript">
    <!--
 document.write('(<a href="#" onclick="showBcc(); return false;" title="{$lang->compose_bcc_show_title}">{$lang->compose_bcc_show}<\/a>)');
    // -->
    </script>
    <br /><span class="smalltext">{$lang->separate_names}{$buddy_select_to}</span></td>
<td class="trow1" valign="top"><textarea name="to" id="to" rows="2" cols="38" tabindex="1">{$to}</textarea>{$max_recipients}</td>
</tr>
<tr id="bcc_area">
<td class="trow2" valign="top"><strong>{$lang->compose_bcc}</strong>{$buddy_select_bcc}</td>
<td class="trow2"><textarea name="bcc" id="bcc" rows="2" cols="38" tabindex="1">{$bcc}</textarea></td>
</tr>
<tr>
<td class="trow1"><strong>{$lang->compose_subject}</strong></td>
<td class="trow1"><input type="text" class="textbox" name="subject" size="40" maxlength="85" value="{$subject}" tabindex="3" /></td>
</tr>
{$posticons}
<tr>
<td class="trow2" valign="top"><strong>{$lang->compose_message}</strong></td>
<td class="trow2">
<!-- //EDITOR -->
<textarea style="visibility:hidden;position:absolute;top:-20;left:-20;width:1px;height:1px" name="message" id="message" rows="20" cols="60" tabindex="3">{$message}</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 language="JavaScript" type="text/javascript">
    var getdata =document.getElementById("message").value;
    //Make it work with MOD Hoteditor 4.0
    if(getdata.indexOf("{EDITOR=")!=-1 && getdata.indexOf("EDITOR}")!=-1){
 getdata=getdata.replace(/\&amp;/gi,"&");
 getdata=getdata.replace(/\&lt;/gi,"<");
 getdata=getdata.replace(/\&gt;/gi,">");
 getdata=getdata.replace(/\[<\]/gi,"&lt;");
 getdata=getdata.replace(/\[>\]/gi,"&gt;");
 getdata=getdata.replace(/\[<\]/gi,"&lt;");
 getdata=getdata.replace(/\[>\]/gi,"&gt;");
 getdata=getdata.replace(/\&quot;/gi,"\"");
 getdata=getdata.replace(/[\r\n]/gi,"");
 getdata=getdata.replace(/\{EDITOR=/gi,"");
 getdata=getdata.replace(/EDITOR\}/gi,"");
 
 //Convert to BBCode
 getdata=HTMLToBBCode(getdata);
    }
    Instantiate("max","editor", getdata , "100%", "300px");
    //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 it work with MOD Hoteditor 4.0
 bbcode_output=bbcode_output.replace(/\{EDITOR=/gi,"[B]{[/B]EDITOR=");
 bbcode_output=bbcode_output.replace(/EDITOR\}/gi,"EDITOR[B]}[/B]");

 //Output BBCode to message textarea
 document.getElementById("message").value = bbcode_output;
    }
</script>
<!-- //EDITOR -->
</tr>
<tr>
<td class="trow1" valign="top"><strong>{$lang->compose_options}</strong></td>
<td class="trow1"><span class="smalltext">
<label><input type="checkbox" class="checkbox" name="options[signature]" value="1" tabindex="5" {$optionschecked['signature']} />{$lang->options_sig}</label><br />
<label><input type="checkbox" class="checkbox" name="options[disablesmilies]" value="1" tabindex="6" {$optionschecked['disablesmilies']} />{$lang->options_disable_smilies}</label><br />
<label><input type="checkbox" class="checkbox" name="options[savecopy]" value="1" tabindex="7" {$optionschecked['savecopy']} />{$lang->options_save_copy}</label><br />
<label><input type="checkbox" class="checkbox" name="options[readreceipt]" value="1" tabindex="8" {$optionschecked['readreceipt']} />{$lang->options_read_receipt}</label><br />
</span></td>
</tr>
</table>
<br />
<input type="hidden" name="action" value="do_send" />
<input type="hidden" name="pmid" value="{$pmid}" />
<input type="hidden" name="do" value="{$do}" />
<div style="text-align: center;">
<input onClick="get_hoteditor_data();" type="submit" class="button" name="submit" value="{$lang->send_message}" tabindex="9" accesskey="s" />
<input onClick="get_hoteditor_data();" type="submit" class="button" name="saveasdraft" value="{$lang->save_draft}" tabindex="10" />
<input onClick="get_hoteditor_data();" type="submit" class="button" name="preview" value="{$lang->preview}" tabindex="11" />
</div>
</td>
</tr>
</table>
</form>
{$footer}
<script type="text/javascript">
<!--
    if($('bcc_area') && $('bcc').value == "")
    {
 $('bcc_area').style.display = 'none';
    }

    function showBcc()
    {
 if($('bcc_area').style.display == 'none')
 {
 $('bcc_area').style.display = '';
 }
 else
 {
 $('bcc_area').style.display = 'none';
 }
    }
// -->
</script>
{$autocompletejs}
</body>
</html> 

ثم احفظ التعديل.
------------------------------------
6- نروح على Show Thread Templates ثم نفتح showthread_quickreply
نمسح ما بداخله
ونضع مكانو
PHP كود :
<br />
<
form method="post" action="newreply.php?tid={$tid}&amp;processed=1" name="quick_reply_form" id="quick_reply_form">
    <
input type="hidden" name="my_post_key" value="{$mybb->post_code}/>
    <
input type="hidden" name="subject" value="RE: {$thread['subject']}/>
    <
input type="hidden" name="action" value="do_newreply" />
    <
input type="hidden" name="posthash" value="{$posthash}id="posthash" />
    <
input type="hidden" name="quoted_ids" value="" id="quoted_ids" />
    <
input type="hidden" name="lastpid" id="lastpid" value="{$last_pid}/>
    <
input type="hidden" name="from_page" value="{$page}/>
    <
input type="hidden" name="tid" value="{$tid}/>
    <
input type="hidden" name="method" value="quickreply" />

    <
table border="0" cellspacing="{$theme['borderwidth']}cellpadding="{$theme['tablespace']}class="tborder">
        <
thead>
            <
tr>
                <
td class="thead" colspan="2">
                    <
div class="expcolimage"><img src="{$theme['imgdir']}/collapse{$collapsedimg['quickreply']}.gif" id="quickreply_img" class="expander" alt="[-]" title="[-]" /></div>
                    <
div><strong>{$lang->quick_reply}</strong></div>
                </
td>
            </
tr>
        </
thead>
        <
tbody style="{$collapsed['quickreply_e']}id="quickreply_e">
            <
tr>
                <
td class="trow1" valign="top" width="22%">
                    <
strong>{$lang->message}</strong><br />
                    <
span class="smalltext">{$lang->message_note}<br /><br />
                    <
label><input type="checkbox" class="checkbox" name="postoptions[signature]" value="1" {$postoptionschecked['signature']} />&nbsp;<strong>{$lang->signature}</strong></label><br />
                    <
label><input type="checkbox" class="checkbox" name="postoptions[disablesmilies]" value="1" />&nbsp;<strong>{$lang->disable_smilies}</strong></label>{$closeoption}</span>
                </
td>
                <
td class="trow1">
                    <
div>
                        <!-- 
//EDITOR -->
        
<textarea style="visibility:hidden;position:absolute;top:-20;left:-20;width:1px;height:1px" rows="8" cols="80" name="message" id="message" tabindex="1"></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 language="JavaScript" type="text/javascript">
            var getdata =document.getElementById("message").value;
            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 it work with MOD Hoteditor 4.0
                bbcode_output=bbcode_output.replace(/\{EDITOR=/gi,"[B]{[/B]EDITOR=");
                bbcode_output=bbcode_output.replace(/EDITOR\}/gi,"EDITOR[B]}[/B]");

                document.getElementById("message").value = bbcode_output;
            }            
        </script>
        <!-- //EDITOR -->
                    </div>
                    <div class="editor_control_bar" style="width: 95%; padding: 4px; margin-top: 3px; display: none;" id="quickreply_multiquote">
                        <span class="smalltext">
                            {$lang->quickreply_multiquote_selected} <a href="./newreply.php?tid={$tid}&amp;load_all_quotes=1" onclick="return Thread.loadMultiQuoted();">{$lang->quickreply_multiquote_now}</a> {$lang->or} <a href="javascript:Thread.clearMultiQuoted();">{$lang->quickreply_multiquote_deselect}</a>.
                        </span>
                    </div>
                </td>
            </tr>
            {$captcha}
            <tr>
                <td colspan="2" align="center" class="tfoot"><input onClick="get_hoteditor_data(); FormatText('editor', 'delete_all', '');" type="submit" class="button" value="{$lang->post_reply}" tabindex="2" accesskey="s" id="quick_reply_submit" /> <input onClick="get_hoteditor_data();" type="submit" class="button" name="previewpost" value="{$lang->preview_post}" tabindex="3" /></td>
            </tr>
        </tbody>
    </table>
</form> 

ثم الحفظ.
--------------------------
7- نروح على User Control Panel Templates ثم نفتح usercp_editsig
نمسح ما بداخلو ونبدلو
ب
PHP كود :
<html>
<
head>
<
title>{$mybb->settings['bbname']} - {$lang->edit_sig}</title>
{
$headerinclude}
</
head>
<
body>
{
$header}
<
form onSubmit="return get_hoteditor_data();" action="usercp.php" method="post">
<
input type="hidden" name="my_post_key" value="{$mybb->post_code}/>
<
table width="100%" border="0" align="center">
<
tr>
{
$usercpnav}
<
td valign="top">
{
$error}
{
$signature}
<
table border="0" cellspacing="{$theme['borderwidth']}cellpadding="{$theme['tablespace']}class="tborder">
<
tr>
<
td class="thead" colspan="2"><strong>{$lang->edit_sig}</strong></td>
</
tr>
<
tr>
<
td class="trow1" valign="top" width="40%"><span class="smalltext">{$lang->edit_sig_note}</span></td>
<
td class="trow1" width="60%">
<!-- 
//EDITOR -->
<textarea style="visibility:hidden;position:absolute;top:-20;left:-20;width:1px;height:1px" rows="5" cols="55" id="signature" name="signature">{$sig}</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 language="JavaScript" type="text/javascript">
    var getdata =document.getElementById("signature").value;    
    Instantiate("max","editor", getdata , "100%", "200px");
    //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 it work with MOD Hoteditor 4.0
        bbcode_output=bbcode_output.replace(/\{EDITOR=/gi,"[B]{[/B]EDITOR=");
        bbcode_output=bbcode_output.replace(/EDITOR\}/gi,"EDITOR[B]}[/B]");

        //Output BBCode to message textarea
        document.getElementById("signature").value = bbcode_output;
    }
</script>
<!-- //EDITOR -->
</td>
</tr>
<tr>
<td class="trow2">
<span class="smalltext">{$lang->edit_sig_note2}</span>
</td>
<td class="trow2">
<span class="smalltext">
<label><input type="radio" class="radio" name="updateposts" value="enable" />&nbsp;{$lang->enable_sig_posts}</label><br />
<label><input type="radio" class="radio" name="updateposts" value="disable" />&nbsp;{$lang->disable_sig_posts}</label><br />
<label><input type="radio" class="radio" name="updateposts" value="0" checked="checked" />&nbsp;{$lang->leave_sig_settings}</label></span>
</td>
</tr>
</table>
<br />
<div align="center">
<input type="hidden" name="action" value="do_editsig" />
<input type="submit" class="button" name="submit" value="{$lang->update_sig}" />
<input type="submit" class="button" name="preview" value="{$lang->preview}" />
</div>
</td>
</tr>
</table>
</form>
{$footer}
</body>
</html> 

ونحفظ.
----------------------------------
8- نروح على XMLHTTP Templates ثم نفتح xmlhttp_inline_post_editor
نمسح محتواه ونبدلو
ب
PHP كود :
<br />
        <
div style="clear: both;">
            <
iframe name=hotframe_{$post['pid']} frameborder=0 width=100height=490px src="hoteditor_quickedit.php?id={$post['pid']}scrolling=no target="_top"></iframe>
            <
div>
                <
textarea style="visibility:hidden;position:absolute;top:-20;left:-20;width:1px;height:1px" id="quickedit_{$post['pid']}/>{$post['message']}</textarea>
            </
div>            
        </
div

ومبروك عليك محرر كامل
انا لست مسؤول عن اي مشكل قد يصادف بعد التركيب
انا الهاك اشتغل معاي وهذا رابط منتداي للتاكد
منتديات الدليل العربي
بالتوفيق للكل
الرد
شكر من طرف :
#2
مشكور اخي الكريم على هذا المجهود...
تسلم الايادي
الرد
شكر من طرف :
#3
العفو اخي.والله هذا من لطفك
الرد
شكر من طرف :
#4
بارك على فيك على الشرح الجميل
و الهاك و تقبل مروري.
الرد
شكر من طرف :
#5
لم أجد بمنتداك هذا المحرر و إنما وجدت محرر Mybb العادى كما أننى جربت هذا الهاك من قبل و هو فعلا به بعض المشاكل
الرد
شكر من طرف :
#6
(2009-07-13, 09:19 PM)الوَحش كتب : لم أجد بمنتداك هذا المحرر و إنما وجدت محرر Mybb العادى كما أننى جربت هذا الهاك من قبل و هو فعلا به بعض المشاكل
انا غيرت الستايل حتى اقوم بالتعديل على الستايل الثاني .
انا لم اقل انه خال من المشاكل.اصلا مبرمجه قال ان به مشاكل
لكن انا لحد الان لم ارى اي مشكل
إقتباس : Bestpublisher
العفو اخي هذا اقل شيئ اقدمه
الهاك به ثغرة واحدة لحد الان ولقد قمت بمراجعته كاملا
الثغرة حين نسخ موضوع من منتدى اخر ولصقه بعد ارسال الموضوع .ثظهر رسالة تقول ادخل نص الموضوع.
اي انه لم يتم لصق الموضوع.
القالب المسؤول والذي به هذه الثفرة هو editpost
PHP كود :
<html>
<
head>
<
title>{$mybb->settings['bbname']} - {$lang->edit_post}</title>
{
$headerinclude}
<
script type="text/javascript" src="jscripts/post.js?ver=1400"></script>
</head>
<body>
{$header}
{$preview}
{$post_errors}
{$attacherror}
<form action="editpost.php" method="post" name="editpost">
<input type="hidden" name="my_post_key" value="{$mybb->post_code}" />
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead" colspan="3"><strong>{$lang->delete_post}</strong></td>
</tr>
<tr>
<td class="trow1" style="white-space: nowrap"><input type="checkbox" class="checkbox" name="delete" value="1" tabindex="9" /> <strong>{$lang->delete_q}</strong></td>
<td class="trow1" width="100%">{$lang->delete_1}<br /><span class="smalltext">{$lang->delete_2}</span></td>
<td class="trow1"><input type="submit" class="button" name="submit" value="{$lang->delete_now}" tabindex="10" /></td>
</tr>
</table>
<input type="hidden" name="action" value="deletepost" />
<input type="hidden" name="pid" value="{$pid}" />
</form>
<br />
<form onSubmit="return get_hoteditor_data();" action="editpost.php?pid={$pid}&amp;processed=1" method="post" enctype="multipart/form-data" name="input">
<input type="hidden" name="my_post_key" value="{$mybb->post_code}" />
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead" colspan="2"><strong>{$lang->edit_post}</strong></td>
</tr>
{$loginbox}
<tr>
<td class="trow2"><strong>{$lang->subject}</strong></td>
<td class="trow2"><input type="text" class="textbox" name="subject" size="40" maxlength="85" value="{$subject}" tabindex="1" /></td>
</tr>
<!-- Uncomment the section below if you use the "Edit Reason" mod -->
<!--    <tr>
    <td class="trow2"><strong>Edit Reason</strong></td>
    <td class="trow2"><input type="text" class="textbox" name="editreason" size="40" maxlength="100" value="{$post['editreason']}" tabindex="1" /></td>
    </tr> -->
{$posticons}
<tr>
<td class="trow2" valign="top"><strong>{$lang->your_message}:</strong><br /></td>
<td class="trow2">
<!-- //EDITOR -->
<textarea style="visibility:hidden;position:absolute;top:-20;left:-20;width:1px;height:1px" name="message" id="message" rows="20" cols="70" tabindex="3">{$message}</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 language="JavaScript" type="text/javascript">
    var getdata =document.getElementById("message").value;
    //Make it work with MOD Hoteditor 4.0
    if(getdata.indexOf("{EDITOR=")!=-1 && getdata.indexOf("EDITOR}")!=-1){
        getdata=getdata.replace(/\&amp;/gi,"&");
        getdata=getdata.replace(/\&lt;/gi,"<");
        getdata=getdata.replace(/\&gt;/gi,">");
        getdata=getdata.replace(/\[<\]/gi,"&lt;");
        getdata=getdata.replace(/\[>\]/gi,"&gt;");
        getdata=getdata.replace(/\[<\]/gi,"&lt;");
        getdata=getdata.replace(/\[>\]/gi,"&gt;");
        getdata=getdata.replace(/\&quot;/gi,"\"");
        getdata=getdata.replace(/[\r\n]/gi,"");
        getdata=getdata.replace(/\{EDITOR=/gi,"");
        getdata=getdata.replace(/EDITOR\}/gi,"");
        
        //Convert to BBCode
        getdata=HTMLToBBCode(getdata);
    }
    Instantiate("max","editor", getdata , "100%", "300px");
    //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 it work with MOD Hoteditor 4.0
        bbcode_output=bbcode_output.replace(/\{EDITOR=/gi,"[B]{[/B]EDITOR=");
        bbcode_output=bbcode_output.replace(/EDITOR\}/gi,"EDITOR[B]}[/B]");

        //Output BBCode to message textarea
        document.getElementById("message").value = bbcode_output;
    }
</script>
<!-- //EDITOR -->
</td>
</tr>
<tr>
<td class="trow1" valign="top"><strong>{$lang->post_options}</strong></td>
<td class="trow1"><span class="smalltext">
<label><input type="checkbox" class="checkbox" name="postoptions[signature]" value="1" tabindex="6"{$postoptionschecked['signature']} /> {$lang->options_sig}</label>
{$disablesmilies}</span>
</td>
</tr>
{$subscriptionmethod}
{$pollbox}
</table>
{$attachbox}
<br />
<div align="center"><input type="submit" class="button" name="submit" value="{$lang->update_post}" tabindex="3" />  <input type="submit" class="button" name="previewpost" value="{$lang->preview_post}" tabindex="4" /></div>
<input type="hidden" name="action" value="do_editpost" />
<input type="hidden" name="posthash" value="{$posthash}" />
<input type="hidden" name="attachmentaid" value="" />
<input type="hidden" name="attachmentact" value="" />
</form>
{$footer}
</body>
</html> 
اللي يقدر يصلح هذه الثغرة يا ريت ما يتاخر وانا ساحاول بدوري
الرد
شكر من طرف :
#7
مشكور اخي على الهاك والشرح المفصل

انا ركبتة قبل فترة ولكن ظهرت المشكلة

إقتباس :حين نسخ موضوع من منتدى اخر ولصقه بعد ارسال الموضوع .ثظهر رسالة تقول ادخل نص الموضوع.
اي انه لم يتم لصق الموضوع.

انا حالياً استخدم محرر vb وهو شغال معاي 100 بكل مميزاتة ..

اتمنى الاخوان يجدون حل للمشكلة ...

ويعطيك الف عافية ...
الرد
شكر من طرف :
#8
العفو وشكرا على المرور
ويا ريت تعطيني نسخة عن محرر الفيبي اللي قلت عليه
الرد
شكر من طرف :
#9
السلام عليكم أولا منقول ثانيا قديم ثالثا ليس امن
الرد
شكر من طرف :
#10
(2009-07-18, 01:32 PM)khaledmo3 كتب : السلام عليكم أولا منقول ثانيا قديم ثالثا ليس امن
اولا لما تقول منقول ضع رابط الموضوع المنقول منه
ثانيا والله انا عامل الشرح بنفسي
ثالثا اذا كان قصدك على موضوع الاخ بيبو سابقا فهو كان للنسخة 1.2.
اما انا فهو للنسخة 1.4

ولا تتعدى على الاخرين مرة اخرى دون دليل
الرد
شكر من طرف :


التنقل السريع :


يقوم بقرائة الموضوع: بالاضافة الى ( 1 ) ضيف كريم