• 17-01-2009, 02:03:32
    #1
    Üyeliği durduruldu
    Ekran Görüntüsü;



    Ekteki Dosyalar;

    tryama.zip (21,5 KB) -> Türkçe Dil Pakedi


    hot_gerekli_dosyalar.rar (889,7 KB) -> Gerekli Dosyalar


    hot_gerekli_dosyalar2.rar (471,6 KB) -> Smiley Paketi

    Not: Smiley paketi sığmadığından ayrı ekledim indirdiğinizde Gerekli Dosyalar klasörüne atınız.


    Bütün Dosyaları Rapide'de attım;
    RapidShare: Easy Filehosting






    Elle Kurulum Anlatımı


    Aç -> Themes/default/Display.template.php


    Bul
    Alıntı
    <textarea cols=&quot;75&quot; rows=&quot;7&quot; style=&quot;width: 95%; height: 100px;&quot; name=&quot;message&quot; tabindex=&quot;1&quot;></textarea><br />
    Değiştir
    Alıntı
    <!--//HotEditor MOD - Quick Reply -->
    <textarea style=&quot;visibility:hidden;position:absolute;to p:-20;left:-20;width:1px;height:1px&quot; cols=&quot;75&quot; rows=&quot;7&quot; id=&quot;message&quot; name=&quot;message&quot; tabindex=&quot;1&quot;></textarea>
    <style type=&quot;text/css&quot;>@import url(richedit/styles/office2007/style.css);</style>
    <script language=&quot;JavaScript&quot; type=&quot;text/javascript&quot; src=&quot;richedit/editor.js?version=4.2&quot;></script>
    <script language=&quot;JavaScript&quot; type=&quot;text/javascript&quot;>
    var getdata =document.getElementById(&quot;message&quot;).valu e;
    Instantiate(&quot;min&quot;,&quot;editor&quot;, getdata , &quot;100%&quot;, &quot;150px&quot;);
    function get_hoteditor_data(){
    if (HTML_ON == &quot;no&quot;){
    alert (&quot;Please uncheck the HTML checkbox&quot;);
    return false;
    }
    else{
    setCodeOutput();
    var bbcode_output=document.getElementById(&quot;hotedi tor_bbcode_ouput_editor&quot;).value;//Output to BBCode
    document.getElementById(&quot;message&quot;).value = bbcode_output;
    }
    }
    </script><br />
    <!--//HotEditor MOD Quick Reply -->
    Bul
    Alıntı
    var smf_template_body_edit = \'<div id=&quot;error_box&quot; style=&quot;padding: 4px; color: red;&quot;></div><textarea class=&quot;editor&quot; name=&quot;message&quot; rows=&quot;12&quot; style=&quot;width: 94%; margin-bottom: 10px;&quot;>%body%</textarea><br /><input type=&quot;hidden&quot; name=&quot;sc&quot; value=&quot;', $context['session_id'], '&quot; /><input type=&quot;hidden&quot; name=&quot;topic&quot; value=&quot;', $context['current_topic'], '&quot; /><input type=&quot;hidden&quot; name=&quot;msg&quot; value=&quot;%msg_id%&quot; /><div style=&quot;text-align: center;&quot;><input type=&quot;submit&quot; name=&quot;post&quot; value=&quot;', $txt[10], '&quot; onclick=&quot;return modify_save(\\\'' . $context['session_id'] . '\\\');&quot; accesskey=&quot;s&quot; />&nbsp;&nbsp;', $context['show_spellchecking'] ? '<input type=&quot;button&quot; value=&quot;' . $txt['spell_check'] . '&quot; onclick=&quot;spellCheck(\\\'quickModForm\\\', \\\'message\\\');&quot; />&nbsp;&nbsp;' : '', '<input type=&quot;submit&quot; name=&quot;cancel&quot; value=&quot;', $txt['modify_cancel'], '&quot; onclick=&quot;return modify_cancel();&quot; /></div>\';
    Değiştir
    Alıntı
    //HotEditor MOD QUICK EDIT / MODIFY POST
    var edit_session_id = &quot;', $context['session_id'], '&quot;;
    var smf_template_body_edit = \'<div id=&quot;error_box&quot; style=&quot;padding: 4px; color: red;&quot;></div><iframe frameborder=0 width=100% height=550px src=&quot;hoteditor_quickedit.html&quot; scrolling=no target=&quot;_top&quot;></iframe><textarea style=&quot;visibility:hidden;width:1px;height:1px &quot; id=&quot;message&quot; class=&quot;editor&quot; name=&quot;message&quot; rows=&quot;12&quot; style=&quot;width: 94%; margin-bottom: 10px;&quot;>%body%</textarea><input type=&quot;hidden&quot; name=&quot;sc&quot; value=&quot;', $context['session_id'], '&quot; /><input type=&quot;hidden&quot; name=&quot;topic&quot; value=&quot;', $context['current_topic'], '&quot; /><input type=&quot;hidden&quot; name=&quot;msg&quot; value=&quot;%msg_id%&quot; /><div style=&quot;text-align: center;&quot;><input type=&quot;hidden&quot; name=&quot;post&quot; value=&quot;', $txt[10], '&quot; onclick=&quot;return modify_save(\\\'' . $context['session_id'] . '\\\');&quot; accesskey=&quot;s&quot; />&nbsp;&nbsp;', $context['show_spellchecking'] ? '<input type=&quot;button&quot; value=&quot;' . $txt['spell_check'] . '&quot; onclick=&quot;spellCheck(\\\'quickModForm\\\', \\\'message\\\');&quot; />&nbsp;&nbsp;' : '', '<input type=&quot;hidden&quot; name=&quot;cancel&quot; value=&quot;', $txt['modify_cancel'], '&quot; onclick=&quot;return modify_cancel();&quot; /></div>\';
    Aç -> Themes/default/Post.template.php

    Bul

    Alıntı
    function template_postbox(&$message)
    Değiştir

    Alıntı
    // This function displays all the stuff you'd expect to see with a message box, the box, BBC buttons and of course smileys.
    function template_postbox(&$message)
    {
    global $context, $settings, $options, $txt, $modSettings;

    // Now start printing all of the smileys.
    if (!empty($context['smileys']['postform']))
    {
    echo '
    <tr>
    <td align=&quot;right&quot;></td>
    <td valign=&quot;middle&quot;>';

    // Show each row of smileys;).
    foreach ($context['smileys']['postform'] as $smiley_row)
    {
    foreach ($smiley_row['smileys'] as $smiley)
    {
    $smiley_src= $settings['smileys_url'] . '/' . $smiley['filename'];
    print &quot;<img style='cursor:hand;cursor:pointer' onmousedown=\&quot;if(editor_type==1){WriteHTML('< img src=$smiley_src>','editor');}else{WriteTEXT('\[IMG\]$smiley_src\[\/IMG\]','editor');}\&quot; src=\&quot;$smiley_src\&quot; alt=\&quot;$smiley[description]\&quot; title=\&quot;$smiley[description]\&quot; />&nbsp;&nbsp;&quot;;
    }

    // If this isn't the last row, show a break.
    if (empty($smiley_row['last']))
    echo '<br />';
    }

    // If the smileys popup is to be shown... show it!
    if (!empty($context['smileys']['popup']))
    echo '
    <a href=&quot;java script:moreSmileys();&quot;>[', $txt['more_smileys'], ']</a>';

    echo '
    </td>
    </tr>';
    }

    // If there are additional smileys then ensure we provide the javascript for them.
    if (!empty($context['smileys']['popup']))
    {
    echo '
    <script language=&quot;JavaScript&quot; type=&quot;text/javascript&quot;><!-- // --><![CDATA[
    var smileys = [';

    foreach ($context['smileys']['popup'] as $smiley_row)
    {
    echo '
    [';
    foreach ($smiley_row['smileys'] as $smiley)
    {
    echo '
    [&quot;', $smiley['code'], '&quot;,&quot;', $smiley['filename'], '&quot;,&quot;', $smiley['js_description'], '&quot;]';
    if (empty($smiley['last']))
    echo ',';
    }

    echo ']';
    if (empty($smiley_row['last']))
    echo ',';
    }

    echo '];
    var smileyPopupWindow;

    function moreSmileys()
    {
    var row, i;

    if (smileyPopupWindow)
    smileyPopupWindow.close();

    smileyPopupWindow = window.open(&quot;&quot;, &quot;add_smileys&quot;, &quot;toolbar=no,location=no,status=no,menubar=no, sc
    ollbars=yes,width=480,height=220,resizable=yes&quo t;);
    smileyPopupWindow.document.write(\'<!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;>\n<html>\');
    smileyPopupWindow.document.write(\'\n\t<head>\n\t\ t<title>', $txt['more_smileys_title'], '</title>\n\t\t<link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;', $settings['theme_url'], '/style.css&quot; />\n\t</head>\');
    smileyPopupWindow.document.write(\'\n\t<body style=&quot;margin: 1ex;&quot;>\n\t\t<table width=&quot;100%&quot; cellpadding=&quot;5&quot; cellspacing=&quot;0&quot; border=&quot;0&quot; class=&quot;tborder&quot;>\n\t\t\t<tr class=&quot;titlebg&quot;><td align=&quot;left&quot;>', $txt['more_smileys_pick'], '</td></tr>\n\t\t\t<tr class=&quot;windowbg&quot;><td align=&quot;left&quot;>\');

    for (row = 0; row < smileys.length; row++)
    {
    for (i = 0; i < smileys[row].length; i++)
    {
    smileys[row][i][2] = smileys[row][i][2].replace(/&quot;/g, \'&quot;\');
    smileyPopupWindow.document.write(\'<a href=&quot;java script:void(0);&quot; onclick=&quot;window.opener.replaceText(&quot; \' + smileys[row][i][0] + \'&quot;, window.opener.document.forms.', $context['post_form'], '.', $context['post_box_name'], '); window.focus(); return false;&quot;><img src=&quot;', $settings['smileys_url'], '/\' + smileys[row][i][1] + \'&quot; alt=&quot;\' + smileys[row][i][2] + \'&quot; title=&quot;\' + smileys[row][i][2] + \'&quot; style=&quot;padding: 4px;&quot; border=&quot;0&quot; /></a> \');
    }
    smileyPopupWindow.document.write(&quot;<br />&quot;);
    }

    smileyPopupWindow.document.write(\'</td></tr>\n\t\t\t<tr><td align=&quot;center&quot; class=&quot;windowbg&quot;><a href=&quot;java script:window.close();\\&quot;>', $txt['more_smileys_close_window'], '</a></td></tr>\n\t\t</table>\n\t</body>\n</html>\');
    smileyPopupWindow.document.close();
    }
    // ]]></script>';
    }

    // Finally the most important bit - the actual Hoteditor box to write in!
    //HotEditor MOD
    print<<<HTML_CODE
    <tr>
    <td valign=&quot;top&quot; align=&quot;right&quot;></td>
    <td>
    <textarea style=&quot;visibility:hidden;position:absolute;to p:-20;left:-20;width:1px;height:1px&quot; class=&quot;editor&quot; id=&quot;hoteditor_holder&quot; name=&quot;$context[post_box_name]&quot; >$message</textarea>
    <style type=&quot;text/css&quot;>@import url(richedit/styles/office2007/style.css);</style>
    <script language=&quot;JavaScript&quot; type=&quot;text/javascript&quot; src=&quot;richedit/editor.js?version=4.2&quot;></script>
    <script language=&quot;JavaScript&quot; type=&quot;text/javascript&quot;>
    var getdata =document.getElementById(&quot;hoteditor_holder&qu ot;).value;
    getdata=getdata.replace(/\[S\]/gi,&quot;[STRIKE]&quot;);
    getdata=getdata.replace(/\[\/S\]/gi,&quot;[/STRIKE]&quot;);
    Instantiate(&quot;max&quot;,&quot;editor&quot;, getdata , &quot;100%&quot;, &quot;300px&quot;);
    function get_hoteditor_data(){
    if (HTML_ON == &quot;no&quot;){
    alert (&quot;Please uncheck the HTML checkbox&quot;);
    return false;
    }
    else{
    setCodeOutput();
    var bbcode_output=document.getElementById(&quot;hotedi tor_bbcode_ouput_editor&quot;).value;//Output to BBCode
    document.getElementById(&quot;hoteditor_holder&quo t;).value = bbcode_output;
    }
    }
    </script>
    </td>
    </tr>
    HTML_CODE;
    }

    function template_postbox_old(&$message)
    Bul
    Alıntı
    replaceText(text, document.forms.postmodify.message);
    Değiştir
    Alıntı
    //HotEditor MOD
    if(editor_type==&quot;0&quot;){//BBCode Editor
    WriteTEXT(text,&quot;editor&quot;);
    }
    else{//WYSIWYG Editor
    text=BBCodeToHTML(text);
    WriteHTML(text,&quot;editor&quot;);
    }
    Bul

    Alıntı
    <input type=&quot;submit&quot; name=&quot;post&quot; value=&quot;', $context['submit_label'], '&quot; tabindex=&quot;', $context['tabindex']++, '&quot; onclick=&quot;return submitThisOnce(this);&quot; accesskey=&quot;s&quot; />
    <input type=&quot;submit&quot; name=&quot;preview&quot; value=&quot;', $txt[507], '&quot; tabindex=&quot;', $context['tabindex']++, '&quot; onclick=&quot;return event.ctrlKey || previewPost();&quot; accesskey=&quot;p&quot; />';
    Değiştir

    Alıntı
    <input type=&quot;submit&quot; name=&quot;post&quot; value=&quot;', $context['submit_label'], '&quot; tabindex=&quot;', $context['tabindex']++, '&quot; onclick=&quot;return get_hoteditor_data();submitThisOnce(this);&quot; accesskey=&quot;s&quot; />
    <input type=&quot;submit&quot; name=&quot;preview&quot; value=&quot;', $txt[507], '&quot; tabindex=&quot;', $context['tabindex']++, '&quot; onclick=&quot;return event.ctrlKey || get_hoteditor_data();previewPost();&quot; accesskey=&quot;p&quot; />';
    Aç -> Themes/default/Profile.template.php

    Bul

    Alıntı
    echo '
    </td>
    <td>
    <textarea class=&quot;editor&quot; onkeyup=&quot;calcCharLeft();&quot; name=&quot;signature&quot; rows=&quot;5&quot; cols=&quot;50&quot;>', $context['member']['signature'], '</textarea><br />';
    Değiştir

    Alıntı
    $sign_message=$context['member']['signature'];
    print<<<HTML_CODE
    </td>
    <td>
    <textarea style=&quot;visibility:hidden;position:absolute;to p:-20;left:-20;width:1px;height:1px&quot; class=&quot;editor&quot; id=&quot;signature&quot; name=&quot;signature&quot; rows=&quot;5&quot; cols=&quot;50&quot;>$sign_message</textarea><br />
    <style type=&quot;text/css&quot;>@import url(richedit/styles/office2007/style.css);</style>
    <script language=&quot;JavaScript&quot; type=&quot;text/javascript&quot; src=&quot;richedit/editor.js?version=4.2&quot;></script>
    <script language=&quot;JavaScript&quot; type=&quot;text/javascript&quot;>
    var getdata =document.getElementById(&quot;signature&quot;).va lue;
    getdata=getdata.replace(/\[S\]/gi,&quot;[STRIKE]&quot;);
    getdata=getdata.replace(/\[\/S\]/gi,&quot;[/STRIKE]&quot;);
    Instantiate(&quot;min&quot;,&quot;editor&quot;, getdata , &quot;100%&quot;, &quot;200px&quot;);
    function get_hoteditor_data(){
    if (HTML_ON == &quot;no&quot;){
    alert (&quot;Please uncheck the HTML checkbox&quot;);
    return false;
    }
    else{
    setCodeOutput();
    var bbcode_output=document.getElementById(&quot;hotedi tor_bbcode_ouput_editor&quot;).value;//Output to BBCode
    document.getElementById(&quot;signature&quot;).val ue = bbcode_output;
    }
    }
    </script>
    HTML_CODE;
    Bul

    Alıntı
    <form action=&quot;', $scripturl, '?action=profile2&quot; method=&quot;post&quot; accept-charset=&quot;', $context['character_set'], '&quot; name=&quot;creator&quot; id=&quot;creator&quot; enctype=&quot;multipart/form-data&quot;>
    Değiştir

    Alıntı
    <form onSubmit=&quot;return get_hoteditor_data();&quot; action=&quot;', $scripturl, '?action=profile2&quot; method=&quot;post&quot; accept-charset=&quot;', $context['character_set'], '&quot; name=&quot;creator&quot; id=&quot;creator&quot; enctype=&quot;multipart/form-data&quot;>
    Aç -> Themes/default/script.js

    Bul

    Alıntı
    function submitonce(theform)
    {
    smf_formSubmitted = true;
    }
    Değiştir

    Alıntı
    function submitonce(theform)
    {
    //HotEditor MOD
    get_hoteditor_data();

    smf_formSubmitted = true;
    }
    Bul

    Alıntı
    // Replaces the currently selected text with the passed text.
    function replaceText(text, textarea)
    {
    // Attempt to create a text range (IE).
    if (typeof(textarea.caretPos) != &quot;undefined&quot; && textarea.createTextRange)
    {
    var caretPos = textarea.caretPos;

    caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? text + ' ' : text;
    caretPos.select();
    }
    // Mozilla text range replace.
    else if (typeof(textarea.selectionStart) != &quot;undefined&quot;)
    {
    var begin = textarea.value.substr(0, textarea.selectionStart);
    var end = textarea.value.substr(textarea.selectionEnd);
    var scrollPos = textarea.scrollTop;

    textarea.value = begin + text + end;

    if (textarea.setSelectionRange)
    {
    textarea.focus();
    textarea.setSelectionRange(begin.length + text.length, begin.length + text.length);
    }
    textarea.scrollTop = scrollPos;
    }
    // Just put it on the end.
    else
    {
    textarea.value += text;
    textarea.focus(textarea.value.length - 1);
    }
    }
    Değiştir

    Alıntı
    // Replaces the currently selected text with the passed text.
    function replaceText(text, textarea)
    {
    if(editor_type==1){
    text=BBCodeToHTML(text);
    WriteHTML(text,&quot;editor&quot;);
    }
    else{
    WriteTEXT(text,&quot;editor&quot;);
    }
    }
    Aç -> Sources/Subs.php

    Bul

    Alıntı
    $codes = array(
    Değiştir

    Alıntı
    //HotEditor MOD
    array(
    'tag' => 'highlight',
    'type' => 'unparsed_equals',
    'test' => '(#[\da-fA-F]{3}|#[\da-fA-F]{6}|[A-Za-z]{1,12})\]',
    'before' => '<span style=&quot;background-color: $1;&quot;>',
    'after' => '</span>',
    ),
    array(
    'tag' => 'strike',
    'before' => '<strike>',
    'after' => '</strike>',
    ),
    en son zipli dosyanın içinde bulunan richedit klasörünü ve hoteditor_quickedit.html adlı dosyayı forum ana dizinine atmayı unutmayınız..



    aşagıda ekteki zipli tryama dosyasının içindeki editor dosyasını,richedit klasörüne atıp değişimi onaylayın bu kadar...


    Alıntıdır; Adres
  • 01-02-2009, 15:42:08
    #2
    Bu ise yaramiyo yda ben yapamadim :s
  • 01-02-2009, 23:22:41
    #3
    1.1.7 için hot editör çok gereksiz. Zaten 2.0 da bütünleşik bir editör geliyor..
  • 06-02-2009, 15:27:22
    #4
    Üyeliği durduruldu
    Smf 2.0'da böyle bir özelliğin olduğunu duydum ama kurmadım çünkü Smf 2.0 Beta Sürüm, 1.1.7 Kullananlar bu anlatımdan yararlanabilir kurulumu denemiştim ...
  • 07-02-2009, 15:20:56
    #5
    2.0 RC sürümü çıktı. Artık rahatlıkla kullanabilirsiniz..
  • 09-01-2010, 20:25:04
    #6
    Üyeliği durduruldu
    2.0 sürümünü kurdum ancak b öyle bir editör yok bunu paket halinde kuramazmıyız