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 :
Font Size butonunu gizlemek için siliyorsunuz ; Aşağıdaki gibi...
AdminCp => Şablonlar => Mesaj Düzenle Şablonlar
editpost aç ve tümünü aşağıdaki kodla değiş
AdminCp => Şablonlar => Şablon Ekle
Başlık : editpost_Hoteditor
Şablon :
Kaydedin
AdminCp => Şablonlar =>
htmldoctype aç ve tümünü aşağıdaki kodla değiş :
AdminCp => Şablonlar => Yeni Cevap Şablonlar
newreply aç ve tümünü aşağıdaki kodla değiş :
Admin KP => Şablonlar => Şablon Ekle
Başlık : newreply_Hoteditor
Şablon:
Admin KP => Şablonlar => Yeni Konu Şablonlar =>
newthread aç ve tümünü aşağıdaki kodlarla değiş ..
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>