ExaLTeD_Gs Administratör
Mesaj Sayısı : 2513 Yaş : 32 Nerden : Alemden İş/Hobiler : Bilişim <FONT color=orange><B><center>Ka : Kayıt tarihi : 19/05/08
| Konu: Ecardmax Smf HotEditor ( Tüm Hatalardan Arındırılmış 4.2 Son Sürümü + Türkçe ) Cuma Ara. 19, 2008 4:37 pm | |
| Smf Hot Editorun tüm hatalardan arındırılmış yeni sürümü çıktı. Bu yeni sürümde artık mesaj yazmadınız , exe uzantılardaki hatalar ve kopya linklerin sonuna eklenen target_blank hatası yok. En son sürümü aşağıdan indirebilirsiniz... not: eski sürüm kuruluysa öncelikle onu kaldırmalısınız...Visual Warning modu ile çakışmaktadır, bu mod kuruluysa bunu yüklemeyiniz...NE İŞE YARAR?
Ana Sayfa: http://www.ecardmax.com/Demo: http://www.ecardmax.com/smf_111Download: http://www.ecardmax.com/ehelpmax/resource/download/f390f754/hoteditor_smf_mod.zipKURULUMU AŞAĞIDA aç Themes/default/Display.template.php bul - Kod:
-
<textarea cols="75" rows="7" style="width: 95%; height: 100px;" name="message" tabindex="1"></textarea><br /> değiştir - Kod:
-
<!--//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:
-
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([url=http://bilir.forum.st/]\\\''[/url] . $context['session_id'] . '\\\');" accesskey="s" /> ', $context['show_spellchecking'] ? '<input type="button" value="' . $txt['spell_check'] . '" onclick="spellCheck([url=http://bilir.forum.st/]\\\'quickModForm\\\'[/url], [url=http://bilir.forum.st/]\\\'message\\\'[/url]);" /> ' : '', '<input type="submit" name="cancel" value="', $txt['modify_cancel'], '" onclick="return modify_cancel();" /></div>\'; değiştir - Kod:
-
//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([url=http://bilir.forum.st/]\\\''[/url] . $context['session_id'] . '\\\');" accesskey="s" /> ', $context['show_spellchecking'] ? '<input type="button" value="' . $txt['spell_check'] . '" onclick="spellCheck([url=http://bilir.forum.st/]\\\'quickModForm\\\'[/url], [url=http://bilir.forum.st/]\\\'message\\\'[/url]);" /> ' : '', '<input type="hidden" name="cancel" value="', $txt['modify_cancel'], '" onclick="return modify_cancel();" /></div>\';
aç Themes/default/Post.template.php bul - Kod:
-
function template_postbox(&$message)
değiştir - Kod:
-
// 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]\" /> "; } // 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" "[url=http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"\nhtml\']http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n<html>\'[/url]); 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:
-
replaceText(text, document.forms.postmodify.message); değiştir - Kod:
-
//HotEditor MOD if(editor_type=="0"){//BBCode Editor WriteTEXT(text,"editor"); } else{//WYSIWYG Editor text=BBCodeToHTML(text); WriteHTML(text,"editor"); } bul - Kod:
-
<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:
-
<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" />'; aç Themes/default/Profile.template.php bul - Kod:
-
echo ' </td> <td> <textarea class="editor" onkeyup="calcCharLeft();" name="signature" rows="5" cols="50">', $context['member']['signature'], '</textarea><br />'; değiştir - Kod:
-
$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:
-
<form action="', $scripturl, '?action=profile2" method="post" accept-charset="', $context['character_set'], '" name="creator" id="creator" enctype="multipart/form-data"> değiştir - Kod:
-
<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"> aç Themes/default/script.js bul - Kod:
-
function submitonce(theform) { smf_formSubmitted = true; } değiştir - Kod:
-
function submitonce(theform) { //HotEditor MOD get_hoteditor_data(); smf_formSubmitted = true; } bul - Kod:
-
// 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:
-
// 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"); } } aç Sources/Subs.php bul - Kod:
-
$codes = array( sonrasına ekle - Kod:
-
//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 dizinine atmayı unutmayınız.. Türkçe yama: http://rapidshare.com/files/36352711/editor.rar.htmlzipli dosyanın içindekini richedit klasörüne atıp değişimi onaylayın bu kadar... | |
|