• 31-01-2008, 19:43:04
    #1
    LUTFEN YEDEK ALARAK YAPIN

    mod bygeceden olduğu gibi alıntıdır
    --------------------------------------------------------------------------------
    Editördeki Son Gelismeler :
    edıt:Eger Msjlar İçinde Flasa İzin Vermesseniz You Tube Modu ve diger video modları  işe Yaramaz
    yahoo google Videoe ekleme eklenmistir
    Editörden Editöre Gecis yapabiliyorsunuz yani bbc code den text editöre
    hızlı cevap bölümüne editörü ekleyebiliyorsunuz isterseniz eklemeyebilirsiniz ....
    eger hızlı cvpta olmasın diyorsanız displey dosyasını edıtlamayın imza alanında editör olması diyorsanız profil dosyasını edıtlamayın..
    Denemek İçin
    www.paylasimciyiz.net
    Bu Editörü Kurmadan Önce 4.1 Versiyonu Kuruluysa Onu Kaldırmanız gerekiyor...
    richedit dosyasını Yine Forum Klasörüne
    hoteditor_quickedit.html forum klasörüne atınız
    MOD Version: 4.2
    Degiştirilecek dosyalar:
    Themes/default/Display.template.php,
    Themes/default/Post.template.php,
    Themes/default/Profile.template.php,
    Themes/default/script.js
    Sources/Subs.php
    License: Open Source Initiative OSI - The GPL:Licensing | Open Source Initiative GNU General Public License v2
    -----[ Ac ]------------------------------------------
    Themes/default/Display.template.php-----[ Bul ]------------------------------------------

    <textarea cols="75" rows="7" style="width: 95%; height: 100px;" name="message" tabindex="1"></textarea><br />
    bu kodu bulamazsan aşağıdaki kodu bul ve değiştir denen yeri sonrasına ekle
    <input type="hidden" name="num_replies" value="', $context['num_replies'], '" />
    -----[ Degistir ]------------------------------------------
    <!--//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]------------------------------------------
    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>\';
    -----[ Degiştir ]------------------------------------------
    //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>\';
    -----[ Ac]------------------------------------------
    Themes/default/Post.template.php
    -----[ Bul ]------------------------------------------

    function template_postbox(&$message)
    -----[ Degiştir ]------------------------------------------
    // 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 ]------------------------------------------
    replaceText(text, document.forms.postmodify.message);
    -----[ Degiştir ]------------------------------------------
    //HotEditor MOD
    if(editor_type=="0"){//BBCode Editor
    	WriteTEXT(text,"editor");
    }
    else{//WYSIWYG Editor
    	text=BBCodeToHTML(text);
    	WriteHTML(text,"editor");
    }
    -----[ Bul ]------------------------------------------
    <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" />';
    -----[ Degiştir ]------------------------------------------
    <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" />';
    -----[ Ac ]------------------------------------------
    [COLOR="redThemes/default/Profile.template.php[/COLOR]
    -----[ Bul ]------------------------------------------

    echo '
    							</td>
    							<td>
    								<textarea class="editor" onkeyup="calcCharLeft();" name="signature" rows="5" cols="50">', $context['member']['signature'], '</textarea><br />';
    -----[ Degiştir ]------------------------------------------
    $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 ]------------------------------------------
    <form action="', $scripturl, '?action=profile2" method="post" accept-charset="', $context['character_set'], '" name="creator" id="creator" enctype="multipart/form-data">
    -----[ Degiştir ]------------------------------------------
    <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">
    -----[ Ac ]------------------------------------------
    Themes/default/script.js
    -----[Bul ]------------------------------------------

    function submitonce(theform)
    {
    	smf_formSubmitted = true;
    }
    #-----[ Degiştir ]------------------------------------------
    function submitonce(theform)
    {
    	//HotEditor MOD
    	get_hoteditor_data();
    	smf_formSubmitted = true;
    }
    -----[ Bul ]------------------------------------------
    // 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);
    	}
    }
    -----[ Degiştir ]------------------------------------------
    // 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");
    	}	
    }
    -----[ Ac ]------------------------------------------
    Sources/Subs.php
    -----[ Bul ]------------------------------------------

    $codes = array(
    -----[ Sonrasına Ekle ]------------------------------------------
    //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>',
    ),
    -----[ Bul ]------------------------------------------
    'before' => '<table style="font: inherit; color: inherit;">',
    -----[ Degiştir ]------------------------------------------
    'before' => '<table align=center style="border-collapse: collapse;border-spacing: 0px;border: 1px solid #6CAFF7;background-color: #F4F4F4;width:98%;font-family:Verdana,Arial,Sans-Serif,Tahoma;font-size:12px;color: black;">',
    -----[ Bul ]------------------------------------------
    'before' => '<td valign="top" style="font: inherit; color: inherit;">',
    -----[ Degiştir ]------------------------------------------
    'before' => '<td style="height:25px; border: 1px solid #6CAFF7">',
    Dosyalar Ektedir Arkadaşlar
    RapidShare: 1-Click Webhosting
    RapidShare: 1-Click Webhosting
  • 01-02-2008, 19:21:36
    #2
    konu eklemek için süper bir mod
  • 01-02-2008, 20:20:20
    #3
    teşekkürler.
  • 01-02-2008, 22:10:20
    #4
    SMF 2.0' ı bekleyin
  • 21-02-2008, 20:55:30
    #5
    Kesinlikle süper bir şey . Önerilir. İşe yarıyor. Sorunusuz çalıştı diğemem ama : Sorunda basit bir sorun hızlı cevap kısmı buradakı gıbı yapınca çalışmıyor ama olsun. Gerçekten süper oldu. Hızlı cevabıda normal kullanırız
  • 22-02-2008, 08:37:04
    #6
    Evet gerçekten güzel bir mod. Bunun bir üst versiyonuda çıktı. Yanlız hızlı cevabı çalıştırabilmek için urlleri göstermeden kullan seçeneğini deaktif etmek lazım. Buda demek oluyor ki seo kullanan arkadaşlar bunu sadece normal konu açmakta kullanabilirler.
  • 22-02-2008, 11:09:03
    #7
    smf 2.0 da bi çok hata var nasıl ekliyorsun çok değişik kodlar açıkta kalıyo
  • 22-02-2008, 15:04:43
    #8
    LeGoLaS adlı üyeden alıntı: mesajı görüntüle
    Evet gerçekten güzel bir mod. Bunun bir üst versiyonuda çıktı. Yanlız hızlı cevabı çalıştırabilmek için urlleri göstermeden kullan seçeneğini deaktif etmek lazım. Buda demek oluyor ki seo kullanan arkadaşlar bunu sadece normal konu açmakta kullanabilirler.
    Bende hem hızlı cevapta var hem de seo
  • 22-02-2008, 15:15:50
    #9
    selim7124 adlı üyeden alıntı: mesajı görüntüle
    Bende hem hızlı cevapta var hem de seo
    sürüm 1.1.4 mü Tema hangisi? çok uğraştım ama bir türlü çıkaramadım. Sadece urleleri göstermeden kullan seçeneğini deaktif ettiğimde açlıştı