v4.0 WYSIWYG Text Editör Entegresi [ MyBB 1.2.3 ] Türkçe Uyeoll10

Join the forum, it's quick and easy

v4.0 WYSIWYG Text Editör Entegresi [ MyBB 1.2.3 ] Türkçe Uyeoll10

Would you like to react to this message? Create an account in a few clicks or log in to continue.

    v4.0 WYSIWYG Text Editör Entegresi [ MyBB 1.2.3 ] Türkçe

    By BiLiNMeZ
    By BiLiNMeZ
    SD Admin
    SD Admin


    Nereden : İstanbul
    Üyelik : 03/09/09
    Mesaj Sayısı : 5443
    Rep Gücü : 38052
    Başarı Sistemi : 11
    Uyarılar : Uyarı Yok
    Yorum : Dikkat: Bu Site Bağımlılık Yapar

    v4.0 WYSIWYG Text Editör Entegresi [ MyBB 1.2.3 ] Türkçe Empty v4.0 WYSIWYG Text Editör Entegresi [ MyBB 1.2.3 ] Türkçe

    Mesaj tarafından By BiLiNMeZ Salı Haz. 29, 2010 5:31 pm

    v4.0 WYSIWYG Text Editör Entegresi [ MyBB 1.2.3 ] Türkçe
    preset_files_mybb_123 içindeki tüm dosyaları ftpnizin ana dizinine atın.

    richedit klasörünün içindekileri değil direk klasörle birlikte ana dizine atın.


    newreply.php
    private.php
    hoteditor_quickedit.php
    xmlhttp.php
    dosyalarını forum ana dizine atın.


    Kendi siteme entegre edilmiş halini görmek için aşağıdaki linki ziyaret ediniz...
    [Linkleri görebilmek için üye olun veya giriş yapın.]

    Türkçeye uyarlanmış dosyalarıda aşağıdaki linkten alabilirsiniz...
    [Linkleri görebilmek için üye olun veya giriş yapın.]

    Orjinal Dosyalar için aşağıdaki linke tıklayınız...
    [Linkleri görebilmek için üye olun veya giriş yapın.]

    Demo sitesi için aşağıdaki siteyi ziyaret edebilirsiniz..
    Kullanıcı adı :demo
    Şifre :123456

    [Linkleri görebilmek için üye olun veya giriş yapın.]

    Butonlarından istediklerinizi Göstermek/Gizlemek için richedit/editor.js dosyasını değiştirin.

    Örnek :

    Kod:
    var toolbar1 ="SPACE,btFont_Name,btFont_Size,btFont_Color,";

    Font Size butonunu gizlemek için siliyorsunuz ; Aşağıdaki gibi...

    Kod:
    var toolbar1 ="SPACE,btFont_Name,btFont_Color,";

    AdminCp => Şablonlar => Mesaj Düzenle Şablonlar
    editpost aç ve tümünü aşağıdaki kodla değiş

    Kod:
    <html>
    <head>
    <title>{$mybb->settings['bbname']} - {$lang->edit_post}</title>
    {$headerinclude}
    <script type="text/javascript" src="jscripts/post.js?ver=121"></script>
    </head>
    <body>
    {$header}
    {$preview}
    {$post_errors}
    {$attacherror}
    <form action="editpost.php" method="post" name="editpost">
    <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="yes" 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 />
    <!--//EDITOR START HERE add onSubmit="return get_hoteditor_data();" -->
    <form onSubmit="return get_hoteditor_data();" action="editpost.php" method="post" enctype="multipart/form-data" name="input">
    <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>
    {$posticons}
    <tr>
    <td class="trow2" valign="top"><strong>{$lang->your_message}:</strong><br /></td>
    <td class="trow2">

    <!--//EDITOR START HERE -->
    <textarea style="visibility:hidden;position:absolute;top:0;l eft:0;" name="message" id="message" rows="1" cols="1" 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"></script>
    <script language="Javascript" type="text/javascript">
    var getdata = "{$message}";
    editor_cookie=hot_readCookie("hoteditor_cookie");
    if(editor_cookie=="" || editor_cookie==null)editor_cookie=show_mode_editor ;
    if(editor_cookie=="0")getdata=document.getElementB yId("message").value;
    if(isSafari || isKonqueror || isICab){
    getdata=getdata.replace(/</g,"<");
    getdata=getdata.replace(/>/g,">");
    getdata=getdata.replace(/&/g,"&");
    editor_cookie="0";
    }

    getdata = getdata.replace(/"/g,""");
    Instantiate("max","editor", getdata , "700px", "300px");

    function get_hoteditor_data(){
    setHTML();
    var MESS_EDITOR = document.getElementById("myhoteditor_editor").valu e;
    if(editor_cookie=="" || editor_cookie==null)editor_cookie=show_mode_editor ;
    if(editor_cookie=="1"){//RichText Mode
    MESS_EDITOR = MESS_EDITOR.replace(/</ig,"[<]");
    MESS_EDITOR = MESS_EDITOR.replace(/>/ig,"[>]");

    MESS_EDITOR = MESS_EDITOR.replace(/{EDITOR/ig,"<b>{</b>EDITOR");
    MESS_EDITOR = MESS_EDITOR.replace(/EDITOR}/ig,"EDITOR<b>}</b>");

    if(MESS_EDITOR !="" ){
    MESS_EDITOR = MESS_EDITOR.replace(/<br(.*?)>/ig,"<br>");
    MESS_EDITOR = "{EDITOR=" + MESS_EDITOR + "EDITOR}";
    }
    else{
    MESS_EDITOR = MESS_EDITOR.replace(/{EDITOR=EDITOR}/ig,"");
    MESS_EDITOR = MESS_EDITOR.replace(/{EDITOR=/ig,"");
    MESS_EDITOR = MESS_EDITOR.replace(/EDITOR}/ig,"");
    }
    document.getElementById("message").value = MESS_EDITOR ;
    }
    else{//BBCode Mode
    MESS_EDITOR = MESS_EDITOR.replace(/{EDITOR/ig,"{EDITOR");
    MESS_EDITOR = MESS_EDITOR.replace(/EDITOR}/ig,"EDITOR}");
    document.input.message.value = MESS_EDITOR ;
    }
    }

    </script>
    <!--//EDITOR END HERE -->

    </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="yes" tabindex="6" {$postoptionschecked['signature']} /> {$lang->options_sig}</label><br />
    <label><input type="checkbox" class="checkbox" name="postoptions[emailnotify]" value="yes" tabindex="7" {$postoptionschecked['emailnotify']} /> {$lang->options_emailnotify}</label>
    {$disablesmilies}</span></td>
    </tr>
    {$attachbox}
    {$pollbox}
    </table>
    <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="pid" value="{$pid}" />
    <input type="hidden" name="posthash" value="{$posthash}" />
    <input type="hidden" name="attachmentaid" value="" />
    <input type="hidden" name="attachmentact" value="" />
    </form>
    {$footer}
    </body>
    </html>



    AdminCp => Şablonlar => Şablon Ekle
    Başlık : editpost_Hoteditor
    Şablon :

    Kod:
    <html>
    <head>
    <title>{$mybb->settings['bbname']} - {$lang->edit_post}</title>
    {$headerinclude}
    </head>
    <body>
    {$header}
    {$preview}
    {$post_errors}
    {$attacherror}
    <form action="editpost.php" method="post" name="editpost">
    <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="yes" 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" method="post" enctype="multipart/form-data" name="input">
    <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>
    {$posticons}
    <tr>
    <td class="trow2" valign="top"><strong>{$lang->your_message}:</strong><br /></td>
    <td class="trow2">
    <!--//Remove this comment to use Vietnamese Keyboard
    <script language="Javascript" type="text/javascript" src="richedit/html2xhtml.js"></script>
    //Remove this comment to use Vietnamese Keyboard-->

    <script language="Javascript" type="text/javascript" src="richedit/editor.js"></script>
    <textarea name="message" id="message" style="display:none"></textarea>
    <script language="Javascript" type="text/javascript">
    var getdata="{$message}";
    getdata=getdata.replace(/"/ig,""");
    if (document.all) getdata = getdata + "<div></div>";
    Instantiate('editor', getdata , "100%", "300");

    function set_cookie(data){
    window.open('set_default_editor.php?editor=' + data, 'hoteditor', 'height=300,width=300,status=no,toolbar=no,menubar =no,location=no,scrollbar s=no' );
    }

    function get_hoteditor_data(){
    setHTML(editor);
    var myform=document.input;
    myform.message.value = myform.editor.value;
    var MESS_EDITOR = myform.message.value;
    MESS_EDITOR = MESS_EDITOR.replace(/[\n\r]/ig,'');
    MESS_EDITOR = MESS_EDITOR.replace(/\<\;/ig,"[<]");
    MESS_EDITOR = MESS_EDITOR.replace(/\>\;/ig,"[>]");

    MESS_EDITOR = MESS_EDITOR.replace(/\{EDITOR/ig,"<b>{</b>EDITOR");
    MESS_EDITOR = MESS_EDITOR.replace(/EDITOR\}/ig,"EDITOR<b>}</b>");
    if(MESS_EDITOR !="" ){
    MESS_EDITOR = "{EDITOR=" + MESS_EDITOR + "EDITOR}";
    }
    else{
    MESS_EDITOR = MESS_EDITOR.replace(/\{EDITOR\=EDITOR\}/ig,"");
    MESS_EDITOR = MESS_EDITOR.replace(/\{EDITOR\=/ig,"");
    MESS_EDITOR = MESS_EDITOR.replace(/EDITOR\}/ig,"");
    }
    myform.message.value = MESS_EDITOR ;
    }
    </script>

    <!--//Remove this comment to use Vietnamese Keyboard
    <script language="javascript1.2" src="richedit/CVietButtonHTML.js"> </script>
    <script language="javascript1.2" src="richedit/CVietMoz.js"> </script>
    <script>folder="richedit/"</script>
    <script language=javascript1.2 src="richedit/CVietAddOn.js"> </script>
    <style type=text/css>@import url("richedit/mviet.css");</style>
    //Remove this comment to use Vietnamese Keyboard-->

    <span id=HotEditor></span>

    </td>
    </tr>
    <tr>
    <td class="trow1" valign="top"><strong>{$lang->editor_default}</strong></td>
    <td class="trow1">
    <input type=radio value=1 checked name=richedit onClick="set_cookie('on')"><font size=1>{$lang->hoteditor_default}</font><br>
    <input type=radio value=0 name=richedit onClick="set_cookie('off')"><font size=1>{$lang->textarea_default}</font>
    </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="yes" tabindex="6" {$postoptionschecked['signature']} /> {$lang->options_sig}</label><br />
    <label><input type="checkbox" class="checkbox" name="postoptions[emailnotify]" value="yes" tabindex="7" {$postoptionschecked['emailnotify']} /> {$lang->options_emailnotify}</label>
    {$disablesmilies}</span></td>
    </tr>
    {$attachbox}
    {$pollbox}
    </table>
    <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="pid" value="{$pid}" />
    <input type="hidden" name="posthash" value="{$posthash}" />
    <input type="hidden" name="attachmentaid" value="" />
    <input type="hidden" name="attachmentact" value="" />
    </form>
    {$footer}
    </body>
    </html>


    Kaydedin

    AdminCp => Şablonlar =>
    htmldoctype aç ve tümünü aşağıdaki kodla değiş :

    Kod:
    <!-- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> -->


    AdminCp => Şablonlar => Yeni Cevap Şablonlar
    newreply aç ve tümünü aşağıdaki kodla değiş :


    Kod:
    <html>
    <head>
    <title>{$lang->post_reply_to}</title>
    {$headerinclude}
    <script type="text/javascript" src="jscripts/post.js?ver=121"></script>
    </head>
    <body>
    {$header}
    {$preview}
    {$maximageserror}
    {$attacherror}
    {$reply_errors}

    <!--//EDITOR START HERE add onSubmit="return get_hoteditor_data();" -->
    <form onSubmit="return get_hoteditor_data();" action="newreply.php" method="post" enctype="multipart/form-data" name="input">
    <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 START HERE -->
    <textarea style="visibility:hidden;position:absolute;top:0;l eft:0;" name="message" id="message" rows="1" cols="1" 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"></script>
    <script language="Javascript" type="text/javascript">
    var getdata = "{$message}";
    editor_cookie=hot_readCookie("hoteditor_cookie");
    if(editor_cookie=="" || editor_cookie==null)editor_cookie=show_mode_editor ;
    if(editor_cookie=="0")getdata=document.getElementB yId("message").value;
    if(isSafari || isKonqueror || isICab){
    getdata=getdata.replace(/</g,"<");
    getdata=getdata.replace(/>/g,">");
    getdata=getdata.replace(/&/g,"&");
    editor_cookie="0";
    }

    getdata = getdata.replace(/"/g,""");
    Instantiate("max","editor", getdata , "700px", "300px");

    function get_hoteditor_data(){
    setHTML();
    var MESS_EDITOR = document.getElementById("myhoteditor_editor").valu e;
    if(editor_cookie=="" || editor_cookie==null)editor_cookie=show_mode_editor ;
    if(editor_cookie=="1"){//RichText Mode
    MESS_EDITOR = MESS_EDITOR.replace(/</ig,"[<]");
    MESS_EDITOR = MESS_EDITOR.replace(/>/ig,"[>]");

    MESS_EDITOR = MESS_EDITOR.replace(/{EDITOR/ig,"<b>{</b>EDITOR");
    MESS_EDITOR = MESS_EDITOR.replace(/EDITOR}/ig,"EDITOR<b>}</b>");

    if(MESS_EDITOR !="" ){
    MESS_EDITOR = MESS_EDITOR.replace(/<br(.*?)>/ig,"<br>");
    MESS_EDITOR = "{EDITOR=" + MESS_EDITOR + "EDITOR}";
    }
    else{
    MESS_EDITOR = MESS_EDITOR.replace(/{EDITOR=EDITOR}/ig,"");
    MESS_EDITOR = MESS_EDITOR.replace(/{EDITOR=/ig,"");
    MESS_EDITOR = MESS_EDITOR.replace(/EDITOR}/ig,"");
    }
    document.getElementById("message").value = MESS_EDITOR ;
    }
    else{//BBCode Mode
    MESS_EDITOR = MESS_EDITOR.replace(/{EDITOR/ig,"{EDITOR");
    MESS_EDITOR = MESS_EDITOR.replace(/EDITOR}/ig,"EDITOR}");
    document.input.message.value = MESS_EDITOR ;
    }
    }

    </script>
    <!--//EDITOR END HERE -->

    </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="yes" tabindex="6" {$postoptionschecked['signature']} /> {$lang->options_sig}</label><br />
    <label><input type="checkbox" class="checkbox" name="postoptions[emailnotify]" value="yes" tabindex="7" {$postoptionschecked['emailnotify']} /> {$lang->options_emailnotify}</label>
    {$disablesmilies}
    </span></td>
    </tr>
    {$attachbox}
    {$modoptions}
    {$captcha}
    </table>
    <br />
    <div align="center"><input type="submit" class="button" name="submit" value="{$lang->post_reply}" tabindex="3" accesskey="s" /> <input 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="tid" value="{$tid}" />
    <input type="hidden" name="replyto" value="{$pid}" />
    <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}" />
    {$editdraftpid}
    </form>
    {$forumrules}
    {$threadreview}
    {$footer}
    </body>
    </html>



    Admin KP => Şablonlar => Şablon Ekle

    Başlık : newreply_Hoteditor
    Şablon:

    Kod:
    <html>
    <head>
    <title>{$lang->post_reply_to}</title>
    {$headerinclude}
    </head>
    <body>
    {$header}
    {$preview}
    {$maximageserror}
    {$attacherror}
    {$reply_errors}
    <form onSubmit="return get_hoteditor_data();" action="newreply.php" method="post" enctype="multipart/form-data" name="input">
    <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">
    <!--//Remove this comment to use Vietnamese Keyboard
    <script language="Javascript" type="text/javascript" src="richedit/html2xhtml.js"></script>
    //Remove this comment to use Vietnamese Keyboard-->

    <script language="Javascript" type="text/javascript" src="richedit/editor.js"></script>
    <textarea name="message" id="message" style="display:none"></textarea>
    <script language="Javascript" type="text/javascript">
    var getdata="{$message}";
    getdata=getdata.replace(/"/ig,""");
    if (document.all) getdata = getdata + "<div></div>";
    Instantiate('editor', getdata , "100%", "300");

    function set_cookie(data){
    window.open('set_default_editor.php?editor=' + data, 'hoteditor', 'height=300,width=300,status=no,toolbar=no,menubar =no,location=no,scrollbar s=no' );
    }

    function get_hoteditor_data(){
    setHTML(editor);
    var myform=document.input;
    myform.message.value = myform.editor.value;
    var MESS_EDITOR = myform.message.value;
    MESS_EDITOR = MESS_EDITOR.replace(/[\n\r]/ig,'');
    MESS_EDITOR = MESS_EDITOR.replace(/\<\;/ig,"[<]");
    MESS_EDITOR = MESS_EDITOR.replace(/\>\;/ig,"[>]");

    MESS_EDITOR = MESS_EDITOR.replace(/\{EDITOR/ig,"<b>{</b>EDITOR");
    MESS_EDITOR = MESS_EDITOR.replace(/EDITOR\}/ig,"EDITOR<b>}</b>");
    if(MESS_EDITOR !="" ){
    MESS_EDITOR = "{EDITOR=" + MESS_EDITOR + "EDITOR}";
    }
    else{
    MESS_EDITOR = MESS_EDITOR.replace(/\{EDITOR\=EDITOR\}/ig,"");
    MESS_EDITOR = MESS_EDITOR.replace(/\{EDITOR\=/ig,"");
    MESS_EDITOR = MESS_EDITOR.replace(/EDITOR\}/ig,"");
    }
    myform.message.value = MESS_EDITOR ;
    }
    </script>

    <!--//Remove this comment to use Vietnamese Keyboard
    <script language="javascript1.2" src="richedit/CVietButtonHTML.js"> </script>
    <script language="javascript1.2" src="richedit/CVietMoz.js"> </script>
    <script>folder="richedit/"</script>
    <script language=javascript1.2 src="richedit/CVietAddOn.js"> </script>
    <style type=text/css>@import url("richedit/mviet.css");</style>
    //Remove this comment to use Vietnamese Keyboard-->

    <span id=HotEditor></span>
    {$multiquote_external}
    </td>
    </tr>
    <tr>
    <td class="trow1" valign="top"><strong>{$lang->editor_default}</strong></td>
    <td class="trow1">
    <input type=radio value=1 checked name=richedit onClick="set_cookie('on')"><font size=1>{$lang->hoteditor_default}</font><br>
    <input type=radio value=0 name=richedit onClick="set_cookie('off')"><font size=1>{$lang->textarea_default}</font>
    </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="yes" tabindex="6" {$postoptionschecked['signature']} /> {$lang->options_sig}</label><br />
    <label><input type="checkbox" class="checkbox" name="postoptions[emailnotify]" value="yes" tabindex="7" {$postoptionschecked['emailnotify']} /> {$lang->options_emailnotify}</label>
    {$disablesmilies}
    </span></td>
    </tr>
    {$attachbox}
    {$modoptions}
    {$captcha}
    </table>
    <br />
    <div align="center"><input type="submit" class="button" name="submit" value="{$lang->post_reply}" tabindex="3" accesskey="s" /> <input 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="tid" value="{$tid}" />
    <input type="hidden" name="replyto" value="{$pid}" />
    <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}" />
    {$editdraftpid}
    </form>
    {$forumrules}
    {$threadreview}
    {$footer}
    </body>
    </html>


    Admin KP => Şablonlar => Yeni Konu Şablonlar =>
    newthread aç ve tümünü aşağıdaki kodlarla değiş ..

    Kod:
    <html>
    <head>
    <title>{$lang->newthread_in}</title>
    {$headerinclude}
    <script type="text/javascript" src="jscripts/post.js?ver=121"></script>
    </head>
    <body>
    {$header}
    {$preview}
    {$thread_errors}
    {$attacherror}

    <!--//EDITOR START HERE add onSubmit="return get_hoteditor_data();" -->
    <form onSubmit="return get_hoteditor_data();" action="newthread.php" method="post" enctype="multipart/form-data" name="input">
    <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><br /></td>
    <td class="trow2" >

    <!--//EDITOR START HERE -->
    <textarea style="visibility:hidden;position:absolute;top:0;l eft:0;" name="message" id="message" rows="1" cols="1" 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"></script>
    <script language="Javascript" type="text/javascript">
    var getdata = "{$message}";
    editor_cookie=hot_readCookie("hoteditor_cookie");
    if(editor_cookie=="" || editor_cookie==null)editor_cookie=show_mode_editor ;
    if(editor_cookie=="0")getdata=document.getElementB yId("message").value;
    if(isSafari || isKonqueror || isICab){
    getdata=getdata.replace(/</g,"<");
    getdata=getdata.replace(/>/g,">");
    getdata=getdata.replace(/&/g,"&");
    editor_cookie="0";
    }

    getdata = getdata.replace(/"/g,""");
    Instantiate("max","editor", getdata , "700px", "300px");

    function get_hoteditor_data(){
    setHTML();
    var MESS_EDITOR = document.getElementById("myhoteditor_editor").valu e;
    if(editor_cookie=="" || editor_cookie==null)editor_cookie=show_mode_editor ;
    if(editor_cookie=="1"){//RichText Mode
    MESS_EDITOR = MESS_EDITOR.replace(/</ig,"[<]");
    MESS_EDITOR = MESS_EDITOR.replace(/>/ig,"[>]");

    MESS_EDITOR = MESS_EDITOR.replace(/{EDITOR/ig,"<b>{</b>EDITOR");
    MESS_EDITOR = MESS_EDITOR.replace(/EDITOR}/ig,"EDITOR<b>}</b>");

    if(MESS_EDITOR !="" ){
    MESS_EDITOR = MESS_EDITOR.replace(/<br(.*?)>/ig,"<br>");
    MESS_EDITOR = "{EDITOR=" + MESS_EDITOR + "EDITOR}";
    }
    else{
    MESS_EDITOR = MESS_EDITOR.replace(/{EDITOR=EDITOR}/ig,"");
    MESS_EDITOR = MESS_EDITOR.replace(/{EDITOR=/ig,"");
    MESS_EDITOR = MESS_EDITOR.replace(/EDITOR}/ig,"");
    }
    document.getElementById("message").value = MESS_EDITOR ;
    }
    else{//BBCode Mode
    MESS_EDITOR = MESS_EDITOR.replace(/{EDITOR/ig,"{EDITOR");
    MESS_EDITOR = MESS_EDITOR.replace(/EDITOR}/ig,"EDITOR}");
    document.input.message.value = MESS_EDITOR ;
    }
    }

    </script>
    <!--//EDITOR END HERE -->

    </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="yes" tabindex="7" {$postoptionschecked['signature']} /> {$lang->options_sig}</label><br />
    <label><input type="checkbox" class="checkbox" name="postoptions[emailnotify]" value="yes" tabindex="8" {$postoptionschecked['emailnotify']} /> {$lang->options_emailnotify}</label>
    {$disablesmilies}</span></td>
    </tr>
    {$modoptions}
    {$attachbox}
    {$pollbox}
    {$captcha}
    </table>
    <br />
    <div style="text-align:center"><input type="submit" class="button" name="submit" value="{$lang->post_thread}" tabindex="4" accesskey="s" /> <input 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="fid" value="{$fid}" />
    <input type="hidden" name="attachmentaid" value="" />
    <input type="hidden" name="attachmentact" value="" />
    {$editdraftpid}
    </form>
    {$forumrules}
    {$footer}
    </body>
    </html>
    By BiLiNMeZ
    By BiLiNMeZ
    SD Admin
    SD Admin


    Nereden : İstanbul
    Üyelik : 03/09/09
    Mesaj Sayısı : 5443
    Rep Gücü : 38052
    Başarı Sistemi : 11
    Uyarılar : Uyarı Yok
    Yorum : Dikkat: Bu Site Bağımlılık Yapar

    v4.0 WYSIWYG Text Editör Entegresi [ MyBB 1.2.3 ] Türkçe Empty Geri: v4.0 WYSIWYG Text Editör Entegresi [ MyBB 1.2.3 ] Türkçe

    Mesaj tarafından By BiLiNMeZ Salı Haz. 29, 2010 5:32 pm

    Admin KP => Şablonlar => Şablon ekle

    Başlık : newthread_Hoteditor
    Şablon:

    Kod:
    <html>
    <head>
    <title>{$lang->newthread_in}</title>
    {$headerinclude}
    </head>
    <body>
    {$header}
    {$preview}
    {$thread_errors}
    {$attacherror}
    <form onSubmit="return get_hoteditor_data();" action="newthread.php" method="post" enctype="multipart/form-data" name="input">
    <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><br /></td>
    <td class="trow2">
    <!--//Remove this comment to use Vietnamese Keyboard
    <script language="Javascript" type="text/javascript" src="richedit/html2xhtml.js"></script>
    //Remove this comment to use Vietnamese Keyboard-->

    <script language="Javascript" type="text/javascript" src="richedit/editor.js"></script>
    <textarea name="message" id="message" style="display:none"></textarea>
    <script language="Javascript" type="text/javascript">
    var getdata="{$message}";
    getdata=getdata.replace(/"/ig,""");
    if (document.all) getdata = getdata + "<div></div>";
    Instantiate('editor', getdata , "100%", "300");

    function set_cookie(data){
    window.open('set_default_editor.php?editor=' + data, 'hoteditor', 'height=300,width=300,status=no,toolbar=no,menubar =no,location=no,scrollbar s=no' );
    }

    function get_hoteditor_data(){
    setHTML(editor);
    var myform=document.input;
    myform.message.value = myform.editor.value;
    var MESS_EDITOR = myform.message.value;
    MESS_EDITOR = MESS_EDITOR.replace(/[\n\r]/ig,'');
    MESS_EDITOR = MESS_EDITOR.replace(/\<\;/ig,"[<]");
    MESS_EDITOR = MESS_EDITOR.replace(/\>\;/ig,"[>]");

    MESS_EDITOR = MESS_EDITOR.replace(/\{EDITOR/ig,"<b>{</b>EDITOR");
    MESS_EDITOR = MESS_EDITOR.replace(/EDITOR\}/ig,"EDITOR<b>}</b>");
    if(MESS_EDITOR !="" ){
    MESS_EDITOR = "{EDITOR=" + MESS_EDITOR + "EDITOR}";
    }
    else{
    MESS_EDITOR = MESS_EDITOR.replace(/\{EDITOR\=EDITOR\}/ig,"");
    MESS_EDITOR = MESS_EDITOR.replace(/\{EDITOR\=/ig,"");
    MESS_EDITOR = MESS_EDITOR.replace(/EDITOR\}/ig,"");
    }
    myform.message.value = MESS_EDITOR ;
    }
    </script>

    <!--//Remove this comment to use Vietnamese Keyboard
    <script language="javascript1.2" src="richedit/CVietButtonHTML.js"> </script>
    <script language="javascript1.2" src="richedit/CVietMoz.js"> </script>
    <script>folder="richedit/"</script>
    <script language=javascript1.2 src="richedit/CVietAddOn.js"> </script>
    <style type=text/css>@import url("richedit/mviet.css");</style>
    //Remove this comment to use Vietnamese Keyboard-->

    <span id=HotEditor></span>
    </td>
    </tr>
    <tr>
    <td class="trow1" valign="top"><strong>{$lang->editor_default}</strong></td>
    <td class="trow1">
    <input type=radio value=1 checked name=richedit onClick="set_cookie('on')"><font size=1>{$lang->hoteditor_default}</font><br>
    <input type=radio value=0 name=richedit onClick="set_cookie('off')"><font size=1>{$lang->textarea_default}</font>
    </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="yes" tabindex="7" {$postoptionschecked['signature']} /> {$lang->options_sig}</label><br />
    <label><input type="checkbox" class="checkbox" name="postoptions[emailnotify]" value="yes" tabindex="8" {$postoptionschecked['emailnotify']} /> {$lang->options_emailnotify}</label>
    {$disablesmilies}</span></td>
    </tr>
    {$modoptions}
    {$attachbox}
    {$pollbox}
    {$captcha}
    </table>
    <br />
    <div style="text-align:center"><input type="submit" class="button" name="submit" value="{$lang->post_thread}" tabindex="4" accesskey="s" /> <input 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="fid" value="{$fid}" />
    <input type="hidden" name="attachmentaid" value="" />
    <input type="hidden" name="attachmentact" value="" />
    {$editdraftpid}
    </form>
    {$forumrules}
    {$footer}
    </body>
    </html>



    Admin KP => Şablonlar => Postbit Şablonları
    postbit_edit Orjinaline çeviriniz...


    Admin KP => Şablonlar => Özel Mesaj Şablonlar
    private_send aç ve tümünü aşağıdaki kodlarla değiş

    Kod:
    <html>
    <head>
    <title>{$lang->compose_pm}</title>
    {$headerinclude}
    </head>
    <body>
    {$header}
    <form action="private.php" method="post" name="input">
    <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"><strong>{$lang->compose_to}</strong></td>
    <td class="trow1"><input type="text" class="textbox" name="to" id="to" size="40" maxlength="{$mybb->settings['maxnamelength']}" value="{$to}" tabindex="1" /></td>
    </tr>
    <tr>
    <td class="trow2"><strong>{$lang->compose_subject}</strong></td>
    <td class="trow2"><input type="text" class="textbox" name="subject" size="40" maxlength="85" value="{$subject}" tabindex="2" /></td>
    </tr>
    {$posticons}
    <tr>
    <td class="trow2" valign="top"><strong>{$lang->compose_message}</strong><br/><br/></td>
    <td class="trow2">

    <!--//EDITOR START HERE -->
    <textarea style="visibility:hidden;position:absolute;top:0;left:0; " name="message" id="message" rows="1" cols="1" 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"></script>
    <script language="Javascript" type="text/javascript">
    var getdata = "{$message}";
    editor_cookie=hot_readCookie("hoteditor_cookie");
    if(editor_cookie=="" || editor_cookie==null)editor_cookie=show_mode_editor ;
    if(editor_cookie=="0")getdata=document.getElementB yId("message").value;
    if(isSafari || isKonqueror || isICab){
    getdata=getdata.replace(/</g,"<");
    getdata=getdata.replace(/>/g,">");
    getdata=getdata.replace(/&/g,"&");
    editor_cookie="0";
    }

    getdata = getdata.replace(/"/g,""");
    Instantiate("max","editor", getdata , "700px", "300px");

    function get_hoteditor_data(){
    setHTML();
    var MESS_EDITOR = document.getElementById("myhoteditor_editor").valu e;
    if(editor_cookie=="" || editor_cookie==null)editor_cookie=show_mode_editor ;
    if(editor_cookie=="1"){//RichText Mode
    MESS_EDITOR = MESS_EDITOR.replace(/</ig,"[<]");
    MESS_EDITOR = MESS_EDITOR.replace(/>/ig,"[>]");

    MESS_EDITOR = MESS_EDITOR.replace(/{EDITOR/ig,"<b>{</b>EDITOR");
    MESS_EDITOR = MESS_EDITOR.replace(/EDITOR}/ig,"EDITOR<b>}</b>");

    if(MESS_EDITOR !="" ){
    MESS_EDITOR = MESS_EDITOR.replace(/<br(.*?)>/ig,"<br>");
    MESS_EDITOR = "{EDITOR=" + MESS_EDITOR + "EDITOR}";
    }
    else{
    MESS_EDITOR = MESS_EDITOR.replace(/{EDITOR=EDITOR}/ig,"");
    MESS_EDITOR = MESS_EDITOR.replace(/{EDITOR=/ig,"");
    MESS_EDITOR = MESS_EDITOR.replace(/EDITOR}/ig,"");
    }
    document.getElementById("message").value = MESS_EDITOR ;
    }
    else{//BBCode Mode
    MESS_EDITOR = MESS_EDITOR.replace(/{EDITOR/ig,"{EDITOR");
    MESS_EDITOR = MESS_EDITOR.replace(/EDITOR}/ig,"EDITOR}");
    document.input.message.value = MESS_EDITOR ;
    }
    }

    </script>
    <!--//EDITOR END HERE -->

    </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="yes" tabindex="8" {$optionschecked['signature']} />{$lang->options_sig}</label><br />
    <label><input type="checkbox" class="checkbox" name="options[disablesmilies]" value="yes" tabindex="9" {$optionschecked['disablesmilies']} />{$lang->options_disable_smilies}</label><br />
    <label><input type="checkbox" class="checkbox" name="options[savecopy]" value="yes" tabindex="10" {$optionschecked['savecopy']} />{$lang->options_save_copy}</label><br />
    <label><input type="checkbox" class="checkbox" name="options[readreceipt]" value="yes" tabindex="11" {$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}" />

    <!--//EDITOR START HERE add onclick="get_hoteditor_data();" -->
    <div style="text-align:center"><input type="submit" onclick="get_hoteditor_data();" class="button" name="submit" value="{$lang->send_message}" tabindex="4" accesskey="s" /> <input onclick="get_hoteditor_data();" type="submit" class="button" name="saveasdraft" value="{$lang->save_draft}" tabindex="5" /> <input onclick="get_hoteditor_data();" type="submit" class="button" name="preview" value="{$lang->preview}" tabindex="6" /></div>
    </td>
    </tr>
    </table>
    </form>
    {$footer}
    {$autocompletejs}
    </body>
    </html>



    Admin KP => Şablonlar => Şablon Ekle
    Başlık : private_send_Hoteditor
    Şablon :

    Kod:
    <html>
    <head>
    <title>{$lang->compose_pm}</title>
    {$headerinclude}
    </head>
    <body>
    {$header}
    <form action="private.php" method="post" name="input">
    <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"><strong>{$lang->compose_to}</strong></td>
    <td class="trow1"><input type="text" class="textbox" name="to" id="to" size="40" maxlength="{$mybb->settings['maxnamelength']}" value="{$to}" tabindex="1" /></td>
    </tr>
    <tr>
    <td class="trow2"><strong>{$lang->compose_subject}</strong></td>
    <td class="trow2"><input type="text" class="textbox" name="subject" size="40" maxlength="85" value="{$subject}" tabindex="2" /></td>
    </tr>
    {$posticons}
    <tr>
    <td class="trow2" valign="top"><strong>{$lang->compose_message}</strong><br/><br/></td>
    <td class="trow2">
    <!--//Remove this comment to use Vietnamese Keyboard
    <script language="Javascript" type="text/javascript" src="richedit/html2xhtml.js"></script>
    //Remove this comment to use Vietnamese Keyboard-->

    <script language="Javascript" type="text/javascript" src="richedit/editor.js"></script>
    <textarea name="message" id="message" style="display:none"></textarea>
    <script language="Javascript" type="text/javascript">
    var getdata="{$message}";
    getdata=getdata.replace(/"/ig,""");
    if (document.all) getdata = getdata + "<div></div>";
    Instantiate('editor', getdata , "100%", "300");

    function set_cookie(data){
    window.open('set_default_editor.php?editor=' + data, 'hoteditor', 'height=300,width=300,status=no,toolbar=no,menubar =no,location=no,scrollbar s=no' );
    }

    function get_hoteditor_data(){
    setHTML(editor);
    var myform=document.input;
    myform.message.value = myform.editor.value;
    var MESS_EDITOR = myform.message.value;
    MESS_EDITOR = MESS_EDITOR.replace(/[\n\r]/ig,'');
    MESS_EDITOR = MESS_EDITOR.replace(/\<\;/ig,"[<]");
    MESS_EDITOR = MESS_EDITOR.replace(/\>\;/ig,"[>]");

    MESS_EDITOR = MESS_EDITOR.replace(/\{EDITOR/ig,"<b>{</b>EDITOR");
    MESS_EDITOR = MESS_EDITOR.replace(/EDITOR\}/ig,"EDITOR<b>}</b>");
    if(MESS_EDITOR !="" ){
    MESS_EDITOR = "{EDITOR=" + MESS_EDITOR + "EDITOR}";
    }
    else{
    MESS_EDITOR = MESS_EDITOR.replace(/\{EDITOR\=EDITOR\}/ig,"");
    MESS_EDITOR = MESS_EDITOR.replace(/\{EDITOR\=/ig,"");
    MESS_EDITOR = MESS_EDITOR.replace(/EDITOR\}/ig,"");
    }
    myform.message.value = MESS_EDITOR ;
    }
    </script>

    <!--//Remove this comment to use Vietnamese Keyboard
    <script language="javascript1.2" src="richedit/CVietButtonHTML.js"> </script>
    <script language="javascript1.2" src="richedit/CVietMoz.js"> </script>
    <script>folder="richedit/"</script>
    <script language=javascript1.2 src="richedit/CVietAddOn.js"> </script>
    <style type=text/css>@import url("richedit/mviet.css");</style>
    //Remove this comment to use Vietnamese Keyboard-->

    <span id=HotEditor></span>
    </tr>
    <tr>
    <td class="trow1" valign="top"><strong>{$lang->editor_default}</strong></td>
    <td class="trow1">
    <input type=radio value=1 checked name=richedit onClick="set_cookie('on')"><font size=1>{$lang->hoteditor_default}</font><br>
    <input type=radio value=0 name=richedit onClick="set_cookie('off')"><font size=1>{$lang->textarea_default}</font>
    </td>
    </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="yes" tabindex="8" {$optionschecked['signature']} />{$lang->options_sig}</label><br />
    <label><input type="checkbox" class="checkbox" name="options[disablesmilies]" value="yes" tabindex="9" {$optionschecked['disablesmilies']} />{$lang->options_disable_smilies}</label><br />
    <label><input type="checkbox" class="checkbox" name="options[savecopy]" value="yes" tabindex="10" {$optionschecked['savecopy']} />{$lang->options_save_copy}</label><br />
    <label><input type="checkbox" class="checkbox" name="options[readreceipt]" value="yes" tabindex="11" {$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="4" accesskey="s" /> <input onclick="get_hoteditor_data();" type="submit" class="button" name="saveasdraft" value="{$lang->save_draft}" tabindex="5" /> <input onclick="get_hoteditor_data();" type="submit" class="button" name="preview" value="{$lang->preview}" tabindex="6" /></div>
    </td>
    </tr>
    </table>
    </form>
    {$footer}
    {$autocompletejs}
    </body>
    </html>



    AdminKp => Şablonlar => Konu Gösterim Şablonları
    showthread_quickreply açın ve tümünü değişin.

    Kod:
    <br />
    <!--//EDITOR START HERE add onSubmit="return get_hoteditor_data();" -->
    <form onsubmit="return get_hoteditor_data();" method="post" action="newreply.php" name="input">
    <input type="hidden" name="subject" value="RE: {$thread['subject']}" />
    <input type="hidden" name="action" value="do_newreply" />
    <input type="hidden" name="tid" value="{$tid}" />
    <input type="hidden" name="posthash" value="{$posthash}" />
    <input type="hidden" name="quoted_ids" value="" />
    <table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
    <thead>
    <tr>
    <td colspan="2" class="thead">
    <div class="expcolimage"><img src="{$theme['imgdir']}/collapse{$collapsedimg['quickreply']}.gif" id="quickreply_img" class="expander" alt="[-]"/></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="yes" {$postoptionschecked['signature']} /> <strong>{$lang->signature}</strong></label><br />
    <label><input type="checkbox" class="checkbox" name="postoptions[emailnotify]" value="yes" {$postoptionschecked['emailnotify']} /> <strong>{$lang->email_notify}</strong></label><br />
    <label><input type="checkbox" class="checkbox" name="postoptions[disablesmilies]" value="yes" />&nbsp;<strong>{$lang->disable_smilies}</strong></label>{$closeoption}</span>
    </td>
    <td class="trow1">
    <div>

    <!--//EDITOR START HERE -->
    <textarea style="visibility:hidden;position:absolute;top:0;left:0; " name="message" id="message" rows="1" cols="1" tabindex="2"></textarea>
    <style type='text/css'>@import url(richedit/styles/office2007/style.css);</style>
    <script language="Javascript" type="text/javascript" src="richedit/editor.js"></script>
    <script language="Javascript" type="text/javascript">
    var getdata = "";
    editor_cookie=hot_readCookie("hoteditor_cookie");
    if(editor_cookie=="" || editor_cookie==null)editor_cookie=show_mode_editor ;
    Instantiate("min","editor", getdata , "700px", "150px");

    function get_hoteditor_data(){
    setHTML();
    var MESS_EDITOR = document.getElementById("myhoteditor_editor").valu e;
    if(editor_cookie=="" || editor_cookie==null)editor_cookie=show_mode_editor ;
    if(editor_cookie=="1"){//RichText Mode
    MESS_EDITOR = MESS_EDITOR.replace(/</ig,"[<]");
    MESS_EDITOR = MESS_EDITOR.replace(/>/ig,"[>]");

    MESS_EDITOR = MESS_EDITOR.replace(/{EDITOR/ig,"<b>{</b>EDITOR");
    MESS_EDITOR = MESS_EDITOR.replace(/EDITOR}/ig,"EDITOR<b>}</b>");

    if(MESS_EDITOR !="" ){
    MESS_EDITOR = MESS_EDITOR.replace(/<br(.*?)>/ig,"<br>");
    MESS_EDITOR = "{EDITOR=" + MESS_EDITOR + "EDITOR}";
    }
    else{
    MESS_EDITOR = MESS_EDITOR.replace(/{EDITOR=EDITOR}/ig,"");
    MESS_EDITOR = MESS_EDITOR.replace(/{EDITOR=/ig,"");
    MESS_EDITOR = MESS_EDITOR.replace(/EDITOR}/ig,"");
    }
    document.getElementById("message").value = MESS_EDITOR ;
    }
    else{//BBCode Mode
    MESS_EDITOR = MESS_EDITOR.replace(/{EDITOR/ig,"{EDITOR");
    MESS_EDITOR = MESS_EDITOR.replace(/EDITOR}/ig,"EDITOR}");
    document.input.message.value = MESS_EDITOR ;
    }
    }

    </script>
    <!--//EDITOR END HERE -->

    </div>

    </td>
    </tr>
    <tr>
    <td colspan="2" align="center" class="tfoot"><input type="submit" class="button" value="{$lang->post_reply}" tabindex="2" accesskey="s" /> <input type="submit" class="button" name="previewpost" value="{$lang->preview_post}" tabindex="3" /></td>
    </tr>
    </tbody>
    </table>
    </form>



    AdminKp => Şablonları => Şablon Ekle

    Başlık : showthread_quickreply_Hoteditor
    Şablon :

    Kod:
    <script language=javascript>
    function set_cookie(data){
    window.open('set_default_editor.php?editor=' + data, 'hoteditor', 'height=300,width=300,status=no,toolbar=no,menubar =no,location=no,scrollbars=no' );
    }

    function get_hoteditor_data(){
    var MESS_EDITOR = document.getElementById("message").value;
    MESS_EDITOR = MESS_EDITOR.replace(/{EDITOR/ig,"{EDITOR");
    MESS_EDITOR = MESS_EDITOR.replace(/EDITOR}/ig,"EDITOR}");
    document.getElementById("message").value = MESS_EDITOR ;
    }

    </script>
    <br />
    <form onsubmit="return get_hoteditor_data();" method="post" action="newreply.php" name="input">
    <input type="hidden" name="subject" value="RE: {$thread['subject']}" />
    <input type="hidden" name="action" value="do_newreply" />
    <input type="hidden" name="tid" value="{$tid}" />
    <input type="hidden" name="posthash" value="{$posthash}" />
    <input type="hidden" name="quoted_ids" value="" />
    <table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
    <thead>
    <tr>
    <td colspan="2" class="thead">
    <div class="expcolimage"><img src="{$theme['imgdir']}/collapse{$collapsedimg['quickreply']}.gif" id="quickreply_img" class="expander" alt="[-]"/></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="yes" {$postoptionschecked['signature']} /> <strong>{$lang->signature}</strong></label><br />
    <label><input type="checkbox" class="checkbox" name="postoptions[emailnotify]" value="yes" {$postoptionschecked['emailnotify']} /> <strong>{$lang->email_notify}</strong></label><br />
    <label><input type="checkbox" class="checkbox" name="postoptions[disablesmilies]" value="yes" /> <strong>{$lang->disable_smilies}</strong></label>{$closeoption}</span>
    </td>
    <td class="trow1">
    <!--//Remove this comment to use Vietnamese Keyboard
    <script language="Javascript" type="text/javascript" src="richedit/html2xhtml.js"></script>
    //Remove this comment to use Vietnamese Keyboard-->

    <script language="Javascript" type="text/javascript" src="richedit/editor.js"></script>
    <textarea name="message" id="message" style="display:none"></textarea>
    <script language="Javascript" type="text/javascript">
    var getdata="{$message}";
    getdata=getdata.replace(/"/ig,""");
    if (document.all) getdata = getdata + "<div></div>";
    Instantiate('editor', getdata , "100%", "300");

    function set_cookie(data){
    window.open('set_default_editor.php?editor=' + data, 'hoteditor', 'height=300,width=300,status=no,toolbar=no,menubar =no,location=no,scrollbar s=no' );
    }

    function get_hoteditor_data(){
    setHTML(editor);
    var myform=document.input;
    myform.message.value = myform.editor.value;
    var MESS_EDITOR = myform.message.value;
    MESS_EDITOR = MESS_EDITOR.replace(/[\n\r]/ig,'');
    MESS_EDITOR = MESS_EDITOR.replace(/\<\;/ig,"[<]");
    MESS_EDITOR = MESS_EDITOR.replace(/\>\;/ig,"[>]");

    MESS_EDITOR = MESS_EDITOR.replace(/\{EDITOR/ig,"<b>{</b>EDITOR");
    MESS_EDITOR = MESS_EDITOR.replace(/EDITOR\}/ig,"EDITOR<b>}</b>");
    if(MESS_EDITOR !="" ){
    MESS_EDITOR = "{EDITOR=" + MESS_EDITOR + "EDITOR}";
    }
    else{
    MESS_EDITOR = MESS_EDITOR.replace(/\{EDITOR\=EDITOR\}/ig,"");
    MESS_EDITOR = MESS_EDITOR.replace(/\{EDITOR\=/ig,"");
    MESS_EDITOR = MESS_EDITOR.replace(/EDITOR\}/ig,"");
    }
    myform.message.value = MESS_EDITOR ;
    }
    </script>

    <!--//Remove this comment to use Vietnamese Keyboard
    <script language="javascript1.2" src="richedit/CVietButtonHTML.js"> </script>
    <script language="javascript1.2" src="richedit/CVietMoz.js"> </script>
    <script>folder="richedit/"</script>
    <script language=javascript1.2 src="richedit/CVietAddOn.js"> </script>
    <style type=text/css>@import url("richedit/mviet.css");</style>
    //Remove this comment to use Vietnamese Keyboard-->

    <span id=HotEditor></span>
    </td>
    </tr>
    <tr>
    <td class="trow1" valign="top"><strong>{$lang->editor_default}</strong></td>
    <td class="trow1">
    <input type=radio value=1 checked name=richedit onClick="set_cookie('on')"><font size=1>{$lang->hoteditor_default}</font><br>
    <input type=radio value=0 name=richedit onClick="set_cookie('off')"><font size=1>{$lang->textarea_default}</font>
    </td>
    </tr>
    <tr>
    <td colspan="2" align="center" class="tfoot"><input type="submit" class="button" value="{$lang->post_reply}" tabindex="2" accesskey="s" /> <input type="submit" class="button" name="previewpost" value="{$lang->preview_post}" tabindex="3" /></td>
    </tr>
    </tbody>
    </table>
    </form>


    AdminKp => Şablonları => Şablon Ekle

    Başlık : xmlhttp_inline_post_editor
    Şablon :

    Kod:

    <br />
    <div style="clear: both;">
    <iframe frameborder=0 width=100% height=500px src="hoteditor_quickedit.php?id={$post['pid']}" scrolling=no target="_top"></iframe>
    <div>
    <textarea style="visibility:hidden;" id="quickedit_{$post['pid']}" />{$post['message']}</textarea>
    </div>
    </div>

      Forum Saati Paz Nis. 28, 2024 12:55 pm