Webmaster Genel Forumları kategorimiz yenilendi!
SMF 2.0 sürümleri için yeni modül/eklentiler sitemizde! İlgili kategorilere gözatabilirsiniz.
Linkleri goruntulemenize izin verilmiyor. Kayit olun veya Giris yapin
Linkleri goruntulemenize izin verilmiyor. Kayit olun veya Giris yapin
Hoşgeldiniz Ziyaretçi. Lütfen giriş yapın veya kayıt olun
Tarih/Saat: 18 Mayıs 2012, 14:44:13
Sayfa: [1] 2 3 ... 15 Yazdır
Gönderen Konu: SMF Hot Editor - Smf Foruma Uyarlanışı - SMF için en gelişmiş yazı editörü!  (Okunma sayısı 16958 defa)
Siyahlar...
Kurucu Üye
*****
İleti: 1335
Teşekkür Sayısı: 544
Çevrimdışı Çevrimdışı
Cinsiyet: Bay
« : 27 Ekim 2007, 05:44:36 »



Download: mesajın sonundaki linkte Hot-Gerekli Dosyaları ..

KURULUMU AŞAĞIDA



Themes/default/Display.template.php

bul
Kod: Linkleri goruntulemenize izin verilmiyor. Kayit olun veya Giris yapin
<textarea cols="75" rows="7" style="width: 95%; height: 100px;" name="message" tabindex="1"></textarea><br />

değiştir

Kod: Linkleri goruntulemenize izin verilmiyor. Kayit olun veya Giris yapin
<!--//HotEditor MOD - Quick Reply -->
<textarea style="visibility:hidden;position:absolute;top:-20;left:-20;width:1px;height:1px" cols="75" rows="7" id="message" name="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");
   function get_hoteditor_data(){
      if (HTML_ON == "no"){
         alert ("Please uncheck the HTML checkbox");
         return false;
      }
      else{
         setCodeOutput();
         var bbcode_output=document.getElementById("hoteditor_bbcode_ouput_editor").value;//Output to BBCode
         document.getElementById("message").value = bbcode_output;
      }
   }
</script><br />
<!--//HotEditor MOD Quick Reply -->


bul

Kod: Linkleri goruntulemenize izin verilmiyor. Kayit olun veya Giris yapin
var smf_template_body_edit = \'<div id="error_box" style="padding: 4px; color: red;"></div><textarea class="editor" name="message" rows="12" style="width: 94%; margin-bottom: 10px;">%body%</textarea><br /><input type="hidden" name="sc" value="', $context['session_id'], '" /><input type="hidden" name="topic" value="', $context['current_topic'], '" /><input type="hidden" name="msg" value="%msg_id%" /><div style="text-align: center;"><input type="submit" name="post" value="', $txt[10], '" onclick="return modify_save(\\\'' . $context['session_id'] . '\\\');" accesskey="s" />&nbsp;&nbsp;', $context['show_spellchecking'] ? '<input type="button" value="' . $txt['spell_check'] . '" onclick="spellCheck(\\\'quickModForm\\\', \\\'message\\\');" />&nbsp;&nbsp;' : '', '<input type="submit" name="cancel" value="', $txt['modify_cancel'], '" onclick="return modify_cancel();" /></div>\';

değiştir

Kod: Linkleri goruntulemenize izin verilmiyor. Kayit olun veya Giris yapin
//HotEditor MOD QUICK EDIT / MODIFY POST
var edit_session_id = "', $context['session_id'], '";
var smf_template_body_edit = \'<div id="error_box" style="padding: 4px; color: red;"></div><iframe frameborder=0 width=100% height=550px src="hoteditor_quickedit.html" scrolling=no target="_top"></iframe><textarea style="visibility:hidden;width:1px;height:1px" id="message" class="editor" name="message" rows="12" style="width: 94%; margin-bottom: 10px;">%body%</textarea><input type="hidden" name="sc" value="', $context['session_id'], '" /><input type="hidden" name="topic" value="', $context['current_topic'], '" /><input type="hidden" name="msg" value="%msg_id%" /><div style="text-align: center;"><input type="hidden" name="post" value="', $txt[10], '" onclick="return modify_save(\\\'' . $context['session_id'] . '\\\');" accesskey="s" />&nbsp;&nbsp;', $context['show_spellchecking'] ? '<input type="button" value="' . $txt['spell_check'] . '" onclick="spellCheck(\\\'quickModForm\\\', \\\'message\\\');" />&nbsp;&nbsp;' : '', '<input type="hidden" name="cancel" value="', $txt['modify_cancel'], '" onclick="return modify_cancel();" /></div>\';





Themes/default/Post.template.php

bul

Kod: Linkleri goruntulemenize izin verilmiyor. Kayit olun veya Giris yapin
function template_postbox(&$message)

değiştir
Kod: Linkleri goruntulemenize izin verilmiyor. Kayit olun veya Giris yapin
// 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="right"></td>
            <td valign="middle">';

      // 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 "<img style='cursor:hand;cursor:pointer' onmousedown=\"if(editor_type==1){WriteHTML('<img src=$smiley_src>','editor');}else{WriteTEXT('\[IMG\]$smiley_src\[\/IMG\]','editor');}\" src=\"$smiley_src\" alt=\"$smiley[description]\" title=\"$smiley[description]\" />&nbsp;&nbsp;";
         }

         // 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="javascript:moreSmileys();">[', $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="JavaScript" type="text/javascript"><!-- // --><![CDATA[
            var smileys = [';

      foreach ($context['smileys']['popup'] as $smiley_row)
      {
         echo '
               [';
         foreach ($smiley_row['smileys'] as $smiley)
         {
            echo '
                  ["', $smiley['code'], '","', $smiley['filename'], '","', $smiley['js_description'], '"]';
            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("", "add_smileys", "toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,width=480,height=220,resizable=yes");
               smileyPopupWindow.document.write(\'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n<html>\');
               smileyPopupWindow.document.write(\'\n\t<head>\n\t\t<title>', $txt['more_smileys_title'], '</title>\n\t\t<link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/style.css" />\n\t</head>\');
               smileyPopupWindow.document.write(\'\n\t<body style="margin: 1ex;">\n\t\t<table width="100%" cellpadding="5" cellspacing="0" border="0" class="tborder">\n\t\t\t<tr class="titlebg"><td align="left">', $txt['more_smileys_pick'], '</td></tr>\n\t\t\t<tr class="windowbg"><td align="left">\');

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

               smileyPopupWindow.document.write(\'</td></tr>\n\t\t\t<tr><td align="center" class="windowbg"><a href="javascript:window.close();\\">', $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="top" align="right"></td>
            <td>
               <textarea style="visibility:hidden;position:absolute;top:-20;left:-20;width:1px;height:1px" class="editor" id="hoteditor_holder" name="$context[post_box_name]" >$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("hoteditor_holder").value;
                  getdata=getdata.replace(/\[S\]/gi,"[STRIKE]");
                  getdata=getdata.replace(/\[\/S\]/gi,"[/STRIKE]");
                  Instantiate("max","editor", getdata , "100%", "300px");         
                  function get_hoteditor_data(){
                     if (HTML_ON == "no"){
                        alert ("Please uncheck the HTML checkbox");
                        return false;
                     }
                     else{
                        setCodeOutput();
                        var bbcode_output=document.getElementById("hoteditor_bbcode_ouput_editor").value;//Output to BBCode
                        document.getElementById("hoteditor_holder").value = bbcode_output;
                     }
                  }
               </script>
            </td>
         </tr>
HTML_CODE;
}

function template_postbox_old(&$message)


bul

Kod: Linkleri goruntulemenize izin verilmiyor. Kayit olun veya Giris yapin
replaceText(text, document.forms.postmodify.message);

değiştir       
Kod: Linkleri goruntulemenize izin verilmiyor. Kayit olun veya Giris yapin
//HotEditor MOD
if(editor_type=="0"){//BBCode Editor
   WriteTEXT(text,"editor");
}
else{//WYSIWYG Editor
   text=BBCodeToHTML(text);
   WriteHTML(text,"editor");
}


bul

Kod: Linkleri goruntulemenize izin verilmiyor. Kayit olun veya Giris yapin
<input type="submit" name="post" value="', $context['submit_label'], '" tabindex="', $context['tabindex']++, '" onclick="return submitThisOnce(this);" accesskey="s" />
<input type="submit" name="preview" value="', $txt[507], '" tabindex="', $context['tabindex']++, '" onclick="return event.ctrlKey || previewPost();" accesskey="p" />';


değiştir

Kod: Linkleri goruntulemenize izin verilmiyor. Kayit olun veya Giris yapin
<input type="submit" name="post" value="', $context['submit_label'], '" tabindex="', $context['tabindex']++, '" onclick="return get_hoteditor_data();submitThisOnce(this);" accesskey="s" />
<input type="submit" name="preview" value="', $txt[507], '" tabindex="', $context['tabindex']++, '" onclick="return event.ctrlKey || get_hoteditor_data();previewPost();" accesskey="p" />';




Themes/default/Profile.template.php

bul

Kod: Linkleri goruntulemenize izin verilmiyor. Kayit olun veya Giris yapin
echo '
                     </td>
                     <td>
                        <textarea class="editor" onkeyup="calcCharLeft();" name="signature" rows="5" cols="50">', $context['member']['signature'], '</textarea><br />';


değiştir

Kod: Linkleri goruntulemenize izin verilmiyor. Kayit olun veya Giris yapin
$sign_message=$context['member']['signature'];
print<<<HTML_CODE
   </td>
   <td>
      <textarea style="visibility:hidden;position:absolute;top:-20;left:-20;width:1px;height:1px" class="editor" id="signature" name="signature" rows="5" cols="50">$sign_message</textarea><br />
      <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;
         getdata=getdata.replace(/\[S\]/gi,"[STRIKE]");
         getdata=getdata.replace(/\[\/S\]/gi,"[/STRIKE]");
         Instantiate("min","editor", getdata , "100%", "200px");
         function get_hoteditor_data(){
            if (HTML_ON == "no"){
               alert ("Please uncheck the HTML checkbox");
               return false;
            }
            else{
               setCodeOutput();
               var bbcode_output=document.getElementById("hoteditor_bbcode_ouput_editor").value;//Output to BBCode
               document.getElementById("signature").value = bbcode_output;
            }
         }
      </script>
HTML_CODE;


bul

Kod: Linkleri goruntulemenize izin verilmiyor. Kayit olun veya Giris yapin
<form action="', $scripturl, '?action=profile2" method="post" accept-charset="', $context['character_set'], '" name="creator" id="creator" enctype="multipart/form-data">

değiştir
Kod: Linkleri goruntulemenize izin verilmiyor. Kayit olun veya Giris yapin
<form onSubmit="return get_hoteditor_data();" action="', $scripturl, '?action=profile2" method="post" accept-charset="', $context['character_set'], '" name="creator" id="creator" enctype="multipart/form-data">



Themes/default/script.js

bul

Kod: Linkleri goruntulemenize izin verilmiyor. Kayit olun veya Giris yapin
function submitonce(theform)
{
   smf_formSubmitted = true;
}


değiştir

Kod: Linkleri goruntulemenize izin verilmiyor. Kayit olun veya Giris yapin
function submitonce(theform)
{
   //HotEditor MOD
   get_hoteditor_data();

   smf_formSubmitted = true;
}


bul

Kod: Linkleri goruntulemenize izin verilmiyor. Kayit olun veya Giris yapin
// Replaces the currently selected text with the passed text.
function replaceText(text, textarea)
{
   // Attempt to create a text range (IE).
   if (typeof(textarea.caretPos) != "undefined" && 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) != "undefined")
   {
      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

Kod: Linkleri goruntulemenize izin verilmiyor. Kayit olun veya Giris yapin
// Replaces the currently selected text with the passed text.
function replaceText(text, textarea)
{
   if(editor_type==1){
      text=BBCodeToHTML(text);
      WriteHTML(text,"editor");
   }
   else{
      WriteTEXT(text,"editor");
   }   
}




Sources/Subs.php

bul

Kod: Linkleri goruntulemenize izin verilmiyor. Kayit olun veya Giris yapin
$codes = array(

sonrasına ekle

Kod: Linkleri goruntulemenize izin verilmiyor. Kayit olun veya Giris yapin
//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="background-color: $1;">',
   '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..


Türkçe yama: aşağıda ekteki

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

Link: Linkleri goruntulemenize izin verilmiyor. Kayit olun veya Giris yapin
« Son Düzenleme: 08 Haziran 2011, 06:44:59 Gönderen: bolubeyi » Kayıtlı

Linkleri goruntulemenize izin verilmiyor. Kayit olun veya Giris yapin
Yeni Üye
*
İleti: 3
Teşekkür Sayısı: 0
Çevrimdışı Çevrimdışı
Cinsiyet: Bay
« Yanıtla #1 : 31 Ekim 2007, 23:21:00 »

ya hocam bunu çöl ateşine paket olarak kuramıyomuyuz manuel çok uzun :D
Kayıtlı
Hasan Yılmaz
Yeni Üye
*
İleti: 18
Teşekkür Sayısı: 0
Çevrimdışı Çevrimdışı
Cinsiyet: Bay
E-Posta
« Yanıtla #2 : 04 Kasım 2007, 00:24:01 »

edit : emeğinize sağlık bu sefer yaptım oldu walla :D helal emeğinize sağlık en çok istediğim bir moddu  sonunda kurabildim :)
« Son Düzenleme: 04 Kasım 2007, 01:11:58 Gönderen: hasan_muslumcu » Kayıtlı

Sabah 11 den Akşam 12 ye kadar çalışacağım için uzun bir süreliğine yokum Tüm Gönül Dostlarına Selam olsun Linkleri goruntulemenize izin verilmiyor. Kayit olun veya Giris yapin Linkleri goruntulemenize izin verilmiyor. Kayit olun veya Giris yapin Linkleri goruntulemenize izin verilmiyor. Kayit olun veya Giris yapin
Yeni Üye
*
İleti: 4
Teşekkür Sayısı: 0
Çevrimdışı Çevrimdışı
Cinsiyet: Bay
E-Posta
« Yanıtla #3 : 12 Kasım 2007, 17:55:12 »

değerli arkadaşım sitenize girdim ve üye oldum çok güzel bende siteme uyguladım herşey çok güzel tek bir sorunum var hızlı cevapta hoteditor görünmüyor nerede hata yaptım bir türlü bulamıyorum    , hızlı cevapta default temamdaki görünümü ekliyorum, yardımcı olursanız çok memnun olurum...  
 
Kayıtlı
Siyahlar...
Kurucu Üye
*****
İleti: 1335
Teşekkür Sayısı: 544
Çevrimdışı Çevrimdışı
Cinsiyet: Bay
« Yanıtla #4 : 12 Kasım 2007, 18:53:32 »

Post.template.php'ni ve display.template.php'ni her tema için gösterdiğimiz şekilde editle..
Kayıtlı

Linkleri goruntulemenize izin verilmiyor. Kayit olun veya Giris yapin
Yeni Üye
*
İleti: 4
Teşekkür Sayısı: 0
Çevrimdışı Çevrimdışı
Cinsiyet: Bay
E-Posta
« Yanıtla #5 : 13 Kasım 2007, 18:29:18 »

    arkadaşım lütfen yardım bu hızlı editörü bir kaç kere gördüm ama % 90 hata veriyor yanı kendi sitemde çalıştı ama genelde senin sitedece hata veriyor açılırken hata mesajı çıkıyor sebebi nedir genel ayarlardanmı kaynklanıyor  lütfen cevap benim sitede bir defa çalıştı ondan sonra hiç değişiklik yapmadım ama sonra hep verdiğim resimdeki gibi çıkıyor işin ilginç yanı bir kaç defa çalışmış olması hata mesajı içeren görünüm... lütfen yardım....
 
Kayıtlı
Yeni Üye
*
İleti: 4
Teşekkür Sayısı: 0
Çevrimdışı Çevrimdışı
Cinsiyet: Bay
E-Posta
« Yanıtla #6 : 14 Kasım 2007, 02:21:05 »

sorunuma çözüm yok sanırım çünkü aynı sorun senin sitendede var gördügüm kadarıyla cevabını bulursan bana mail atarsan sevinirim hoşçakal...
Kayıtlı
Siyahlar...
Kurucu Üye
*****
İleti: 1335
Teşekkür Sayısı: 544
Çevrimdışı Çevrimdışı
Cinsiyet: Bay
« Yanıtla #7 : 14 Kasım 2007, 04:13:01 »

arkadaşım flood yapmamanı tavsiye ediyorum öncelikle..Diğer bir konu ise, bu sitede hot editörü kullanıken sorun yaşayan var mı_? Ne gibi bir sorun yaşıyor o şahıslar_?
Ayrıca sorun dediğin sanırım cvp atıldıktan sonra hızlı cevap bolumunuın gorunmmemesi.. O sorun değil..O sadece arka arkaya yapılan floodları onlemek için, kullanıcı hemen hızlı cevabı kullanmasın dıye yapılan bir uygula.. Kodları aynen uygulayın.Çoğu kişi kullanıyor ve becerebiliyor..
Kayıtlı

Linkleri goruntulemenize izin verilmiyor. Kayit olun veya Giris yapin
Yeni Üye
*
İleti: 3
Teşekkür Sayısı: 0
Çevrimdışı Çevrimdışı
Cinsiyet: Bay
« Yanıtla #8 : 24 Kasım 2007, 19:02:42 »

ben bunu bir türlü çöl ateşine uygulayamadım hocam ya nabcaz :D
Kayıtlı
Siyahlar...
Kurucu Üye
*****
İleti: 1335
Teşekkür Sayısı: 544
Çevrimdışı Çevrimdışı
Cinsiyet: Bay
« Yanıtla #9 : 24 Kasım 2007, 19:07:19 »

Linkleri goruntulemenize izin verilmiyor. Kayit olun veya Giris yapin
ben bunu bir türlü çöl ateşine uygulayamadım hocam ya nabcaz :D

çöl atesınde varsa sunları silicen:  display.template , post.template , profile.template

ve uygulamaları default temaya yapcan :)
Kayıtlı

Linkleri goruntulemenize izin verilmiyor. Kayit olun veya Giris yapin
Sayfa: [1] 2 3 ... 15 Yazdır 
Etiketler: