Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /var/www/mybb-es.com/html/inc/class_language.php on line 201
Editor wysiwyg para mybb ?
Páginas (4):    1 2 3 4   
Edson Ordaz   1 Dec, 2010, 7:05 am
#11
si hay que modificar mira te dejo las plantillas que hay que modificar

Editar mensaje --> editpost (remplaza todo)
Código:
<html>
<head>
<title>{$mybb->settings['bbname']} - {$lang->edit_post}</title>
{$headerinclude}
<script type="text/javascript" src="jscripts/post.js?ver=1400"></script>
</head>
<body>
{$header}
{$preview}
{$post_errors}
{$attacherror}
<form action="editpost.php" method="post" name="editpost">
<input type="hidden" name="my_post_key" value="{$mybb->post_code}" />
<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="1" 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?pid={$pid}&amp;processed=1" method="post" enctype="multipart/form-data" name="input">
<input type="hidden" name="my_post_key" value="{$mybb->post_code}" />
<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>
<!-- Uncomment the section below if you use the "Edit Reason" mod -->
<!--    <tr>
    <td class="trow2"><strong>Edit Reason</strong></td>
    <td class="trow2"><input type="text" class="textbox" name="editreason" size="40" maxlength="100" value="{$post['editreason']}" tabindex="1" /></td>
    </tr> -->
{$posticons}
<tr>
<td class="trow2" valign="top"><strong>{$lang->your_message}:</strong><br /></td>
<td class="trow2">
<!-- //EDITOR -->
<textarea style="visibility:hidden;position:absolute;top:-20;left:-20;width:1px;height:1px" name="message" id="message" rows="20" cols="70" tabindex="3">{$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("message").value;
    //Make it work with MOD Hoteditor 4.0
    if(getdata.indexOf("{EDITOR=")!=-1 && getdata.indexOf("EDITOR}")!=-1){
        getdata=getdata.replace(/\&amp;/gi,"&");
        getdata=getdata.replace(/\&lt;/gi,"<");
        getdata=getdata.replace(/\&gt;/gi,">");
        getdata=getdata.replace(/\[<\]/gi,"&lt;");
        getdata=getdata.replace(/\[>\]/gi,"&gt;");
        getdata=getdata.replace(/\[<\]/gi,"&lt;");
        getdata=getdata.replace(/\[>\]/gi,"&gt;");
        getdata=getdata.replace(/\&quot;/gi,"\"");
        getdata=getdata.replace(/[\r\n]/gi,"");
        getdata=getdata.replace(/\{EDITOR=/gi,"");
        getdata=getdata.replace(/EDITOR\}/gi,"");
        
        //Convert to BBCode
        getdata=HTMLToBBCode(getdata);
    }
    Instantiate("max","editor", getdata , "100%", "300px");
    //For Vietnamese User. Edit file editor.js to enable vietnamese keyboard
    if(enable_vietnamese_keyboard==1){
        document.write("<script language=\"JavaScript\" type=\"text/javascript\" src=\"richedit/avim.js\"><\/script>");
        var hoteditor_avim_method = hot_readCookie("hoteditor_avim_method");var him_auto_checked="";var him_telex_checked="";var him_vni_checked="";var him_viqr_checked="";var him_viqr2_checked="";var him_off_checked="";if(hoteditor_avim_method=="0"){him_auto_checked="checked";}else if(hoteditor_avim_method=="1"){him_telex_checked="checked";}else if(hoteditor_avim_method=="2"){him_vni_checked="checked";}else if(hoteditor_avim_method=="3"){him_viqr_checked="checked";}else if(hoteditor_avim_method=="4"){him_viqr2_checked="checked";}else if(hoteditor_avim_method=="-1"){him_off_checked="checked";}
        document.write("<div style='width:100%;text-align:center;font-family:Verdana;font-size:11px;'><input "+him_auto_checked+" id=him_auto onclick=setMethod(0); type=radio name=viet_method> Auto :: <input "+him_telex_checked+" id=him_telex onclick=setMethod(1); type=radio name=viet_method> Telex :: <input "+him_vni_checked+" id=him_vni onclick=setMethod(2); type=radio name=viet_method> VNI :: <input "+him_viqr_checked+" id=him_viqr onclick=setMethod(3); type=radio name=viet_method> VIQR :: <input "+him_viqr2_checked+" id=him_viqr2 onclick=setMethod(4); type=radio name=viet_method> VIQR* :: <input "+him_off_checked+" id=him_off onclick=setMethod(-1); type=radio name=viet_method> Off<br><img src="+styles_folder_path+"/vietnamese_symbol.gif></div>");
    }
    function get_hoteditor_data(){
        if (HTML_ON == "no"){
            alert ("Please uncheck the HTML checkbox");
            return false;
        }
        setCodeOutput();
        var bbcode_output=document.getElementById("hoteditor_bbcode_ouput_editor").value;//Output to BBCode
        
        //Make it work with MOD Hoteditor 4.0
        bbcode_output=bbcode_output.replace(/\{EDITOR=/gi,"[B]{[/B]EDITOR=");
        bbcode_output=bbcode_output.replace(/EDITOR\}/gi,"EDITOR[B]}[/B]");

        //Output BBCode to message textarea
        document.getElementById("message").value = bbcode_output;
    }
</script>
<!-- //EDITOR -->
</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="1" tabindex="6"{$postoptionschecked['signature']} /> {$lang->options_sig}</label>
{$disablesmilies}</span>
</td>
</tr>
{$subscriptionmethod}
{$pollbox}
</table>
{$attachbox}
<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="posthash" value="{$posthash}" />
<input type="hidden" name="attachmentaid" value="" />
<input type="hidden" name="attachmentact" value="" />
</form>
{$footer}
</body>
</html>


nueva respuesta -- >newreply
Código:
<html>
<head>
<title>{$lang->post_reply_to}</title>
{$headerinclude}
<script type="text/javascript" src="jscripts/post.js?ver=1400"></script>
</head>
<body>
{$header}
{$preview}
{$maximageserror}
{$attacherror}
{$reply_errors}
<form action="newreply.php?tid={$tid}&amp;processed=1" method="post" enctype="multipart/form-data" name="input">
<input type="hidden" name="my_post_key" value="{$mybb->post_code}" />
<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 -->
<textarea style="visibility:hidden;position:absolute;top:-20;left:-20;width:1px;height:1px" id="message" name="message" rows="20" cols="70" 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?version=4.2"></script>                
<script language="JavaScript" type="text/javascript">
    var getdata =document.getElementById("message").value;
    //Make it work with MOD Hoteditor 4.0
    if(getdata.indexOf("{EDITOR=")!=-1 && getdata.indexOf("EDITOR}")!=-1){
        getdata=getdata.replace(/\&amp;/gi,"&");
        getdata=getdata.replace(/\&lt;/gi,"<");
        getdata=getdata.replace(/\&gt;/gi,">");
        getdata=getdata.replace(/\[<\]/gi,"&lt;");
        getdata=getdata.replace(/\[>\]/gi,"&gt;");
        getdata=getdata.replace(/\[<\]/gi,"&lt;");
        getdata=getdata.replace(/\[>\]/gi,"&gt;");
        getdata=getdata.replace(/\&quot;/gi,"\"");
        getdata=getdata.replace(/[\r\n]/gi,"");
        getdata=getdata.replace(/\{EDITOR=/gi,"");
        getdata=getdata.replace(/EDITOR\}/gi,"");

        //Convert to BBCode
        getdata=HTMLToBBCode(getdata);
    }
    Instantiate("max","editor", getdata , "100%", "300px");
    //For Vietnamese User. Edit file editor.js to enable vietnamese keyboard
    if(enable_vietnamese_keyboard==1){
        document.write("<script language=\"JavaScript\" type=\"text/javascript\" src=\"richedit/avim.js\"><\/script>");
        //var hoteditor_avim_method = hot_readCookie("hoteditor_avim_method");var him_auto_checked="";var him_telex_checked="";var him_vni_checked="";var him_viqr_checked="";var him_viqr2_checked="";var him_off_checked="";if(hoteditor_avim_method=="0"){him_auto_checked="checked";}else if(hoteditor_avim_method=="1"){him_telex_checked="checked";}else if(hoteditor_avim_method=="2"){him_vni_checked="checked";}else if(hoteditor_avim_method=="3"){him_viqr_checked="checked";}else if(hoteditor_avim_method=="4"){him_viqr2_checked="checked";}else if(hoteditor_avim_method=="-1"){him_off_checked="checked";}
        //document.write("<div style='width:100%;text-align:center;font-family:Verdana;font-size:11px;'><input "+him_auto_checked+" id=him_auto onclick=setMethod(0); type=radio name=viet_method> Auto :: <input "+him_telex_checked+" id=him_telex onclick=setMethod(1); type=radio name=viet_method> Telex :: <input "+him_vni_checked+" id=him_vni onclick=setMethod(2); type=radio name=viet_method> VNI :: <input "+him_viqr_checked+" id=him_viqr onclick=setMethod(3); type=radio name=viet_method> VIQR :: <input "+him_viqr2_checked+" id=him_viqr2 onclick=setMethod(4); type=radio name=viet_method> VIQR* :: <input "+him_off_checked+" id=him_off onclick=setMethod(-1); type=radio name=viet_method> Off<br><img src="+styles_folder_path+"/vietnamese_symbol.gif></div>");
    }
    function get_hoteditor_data(){
        if (HTML_ON == "no"){
            alert ("Please uncheck the HTML checkbox");
            return false;
        }
        setCodeOutput();
        var bbcode_output=document.getElementById("hoteditor_bbcode_ouput_editor").value;//Output to BBCode
        
        //Make it work with MOD Hoteditor 4.0
        bbcode_output=bbcode_output.replace(/\{EDITOR=/gi,"[B]{[/B]EDITOR=");
        bbcode_output=bbcode_output.replace(/EDITOR\}/gi,"EDITOR[B]}[/B]");

        //Output BBCode to message textarea
        document.getElementById("message").value = bbcode_output;
    }
</script>
<!-- //EDITOR -->
{$multiquote_external}
</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="1" tabindex="6"{$postoptionschecked['signature']} /> {$lang->options_sig}</label>
{$disablesmilies}
</span></td>
</tr>
{$modoptions}
{$subscriptionmethod}
{$captcha}
</table>
{$attachbox}
<br />
<div align="center"><input onClick="get_hoteditor_data();" type="submit" class="button" name="submit" value="{$lang->post_reply}" tabindex="3" accesskey="s" />  <input onClick="get_hoteditor_data();" 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="replyto" value="{$replyto}" />
<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}" />
<input type="hidden" name="tid" value="{$tid}" />
{$editdraftpid}
</form>
{$forumrules}
{$threadreview}
{$footer}
</body>
</html>

Nuevo tema -- >newtrhead
Código:
<html>
<head>
<title>{$lang->newthread_in}</title>
{$headerinclude}
<script type="text/javascript" src="jscripts/post.js?ver=1400"></script>
</head>
<body>
{$header}
{$preview}
{$thread_errors}
{$attacherror}
<form action="newthread.php?fid={$fid}&amp;processed=1" method="post" enctype="multipart/form-data" name="input">
<input type="hidden" name="my_post_key" value="{$mybb->post_code}" />
<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></td>
<td class="trow2">
<!-- //EDITOR -->
<textarea style="visibility:hidden;position:absolute;top:-20;left:-20;width:1px;height:1px" name="message" id="message" rows="20" cols="70" 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?version=4.2"></script>                
<script language="JavaScript" type="text/javascript">
    var getdata =document.getElementById("message").value;
    Instantiate("max","editor", getdata , "100%", "300px");
    //For Vietnamese User. Edit file editor.js to enable vietnamese keyboard
    if(enable_vietnamese_keyboard==1){
        document.write("<script language=\"JavaScript\" type=\"text/javascript\" src=\"richedit/avim.js\"><\/script>");
        var hoteditor_avim_method = hot_readCookie("hoteditor_avim_method");var him_auto_checked="";var him_telex_checked="";var him_vni_checked="";var him_viqr_checked="";var him_viqr2_checked="";var him_off_checked="";if(hoteditor_avim_method=="0"){him_auto_checked="checked";}else if(hoteditor_avim_method=="1"){him_telex_checked="checked";}else if(hoteditor_avim_method=="2"){him_vni_checked="checked";}else if(hoteditor_avim_method=="3"){him_viqr_checked="checked";}else if(hoteditor_avim_method=="4"){him_viqr2_checked="checked";}else if(hoteditor_avim_method=="-1"){him_off_checked="checked";}
        document.write("<div style='width:100%;text-align:center;font-family:Verdana;font-size:11px;'><input "+him_auto_checked+" id=him_auto onclick=setMethod(0); type=radio name=viet_method> Auto :: <input "+him_telex_checked+" id=him_telex onclick=setMethod(1); type=radio name=viet_method> Telex :: <input "+him_vni_checked+" id=him_vni onclick=setMethod(2); type=radio name=viet_method> VNI :: <input "+him_viqr_checked+" id=him_viqr onclick=setMethod(3); type=radio name=viet_method> VIQR :: <input "+him_viqr2_checked+" id=him_viqr2 onclick=setMethod(4); type=radio name=viet_method> VIQR* :: <input "+him_off_checked+" id=him_off onclick=setMethod(-1); type=radio name=viet_method> Off<br><img src="+styles_folder_path+"/vietnamese_symbol.gif></div>");
    }
    function get_hoteditor_data(){
        if (HTML_ON == "no"){
            alert ("Please uncheck the HTML checkbox");
            return false;
        }
        setCodeOutput();
        var bbcode_output=document.getElementById("hoteditor_bbcode_ouput_editor").value;//Output to BBCode

        //Make it work with MOD Hoteditor 4.0
        bbcode_output=bbcode_output.replace(/\{EDITOR=/gi,"[B]{[/B]EDITOR=");
        bbcode_output=bbcode_output.replace(/EDITOR\}/gi,"EDITOR[B]}[/B]");

        document.getElementById("message").value = bbcode_output;
    }
</script>
<!-- //EDITOR -->
{$multiquote_external}
</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="1" tabindex="7"{$postoptionschecked['signature']} /> {$lang->options_sig}</label>
{$disablesmilies}</span></td>
</tr>
{$modoptions}
{$subscriptionmethod}
{$pollbox}
{$captcha}
</table>
{$attachbox}
<br />
<div style="text-align:center"><input onClick="get_hoteditor_data();" type="submit" class="button" name="submit" value="{$lang->post_thread}" tabindex="4" accesskey="s" />  <input onClick="get_hoteditor_data();" 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="attachmentaid" value="" />
<input type="hidden" name="attachmentact" value="" />
<input type="hidden" name="quoted_ids" value="{$quoted_ids}" />
<input type="hidden" name="tid" value="{$tid}" />
{$editdraftpid}
</form>
{$forumrules}
{$footer}
</body>
</html>


Mensaje --> post_attachments_attachment_postinsert
Código:
<!-- <input type="button" name="insert" value="{$lang->insert_attachment_post}" onclick="clickableEditor.insertAttachment({$attachment['aid']});" /> -->
<input type="button" name="insert" value="{$lang->insert_attachment_post}" onclick="if(editor_type=='0'){WriteTEXT('[attachment='+{$attachment['aid']}+']','editor');}else{WriteHTML('[attachment='+{$attachment['aid']}+']','editor');}" />


Mensajeria Privada -->private_send
Código:
<html>
<head>
<title>{$lang->compose_pm}</title>
{$headerinclude}
<script type="text/javascript" src="jscripts/usercp.js?ver=1400"></script>
</head>
<body>
{$header}
<form action="private.php" method="post" name="input">
<input type="hidden" name="my_post_key" value="{$mybb->post_code}" />
<table width="100%" border="0" align="center">
<tr>
{$usercpnav}
<td valign="top">
{$preview}
{$send_errors}
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead" colspan="2"><strong>{$lang->compose_pm}</strong></td>
</tr>
<tr>
<td class="trow1" valign="top" width="200"><strong>{$lang->compose_to}</strong>
    <script type="text/javascript">
    <!--
        document.write('(<a href="#" onclick="showBcc(); return false;" title="{$lang->compose_bcc_show_title}">{$lang->compose_bcc_show}<\/a>)');
    // -->
    </script>
    <br /><span class="smalltext">{$lang->separate_names}{$buddy_select_to}</span></td>
<td class="trow1" valign="top"><textarea name="to" id="to" rows="2" cols="38" tabindex="1">{$to}</textarea>{$max_recipients}</td>
</tr>
<tr id="bcc_area">
<td class="trow2" valign="top"><strong>{$lang->compose_bcc}</strong>{$buddy_select_bcc}</td>
<td class="trow2"><textarea name="bcc" id="bcc" rows="2" cols="38" tabindex="1">{$bcc}</textarea></td>
</tr>
<tr>
<td class="trow1"><strong>{$lang->compose_subject}</strong></td>
<td class="trow1"><input type="text" class="textbox" name="subject" size="40" maxlength="85" value="{$subject}" tabindex="3" /></td>
</tr>
{$posticons}
<tr>
<td class="trow2" valign="top"><strong>{$lang->compose_message}</strong></td>
<td class="trow2">
<!-- //EDITOR -->
<textarea style="visibility:hidden;position:absolute;top:-20;left:-20;width:1px;height:1px" name="message" id="message" rows="20" cols="60" tabindex="3">{$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("message").value;
    //Make it work with MOD Hoteditor 4.0
    if(getdata.indexOf("{EDITOR=")!=-1 && getdata.indexOf("EDITOR}")!=-1){
        getdata=getdata.replace(/\&amp;/gi,"&");
        getdata=getdata.replace(/\&lt;/gi,"<");
        getdata=getdata.replace(/\&gt;/gi,">");
        getdata=getdata.replace(/\[<\]/gi,"&lt;");
        getdata=getdata.replace(/\[>\]/gi,"&gt;");
        getdata=getdata.replace(/\[<\]/gi,"&lt;");
        getdata=getdata.replace(/\[>\]/gi,"&gt;");
        getdata=getdata.replace(/\&quot;/gi,"\"");
        getdata=getdata.replace(/[\r\n]/gi,"");
        getdata=getdata.replace(/\{EDITOR=/gi,"");
        getdata=getdata.replace(/EDITOR\}/gi,"");
        
        //Convert to BBCode
        getdata=HTMLToBBCode(getdata);
    }
    Instantiate("max","editor", getdata , "100%", "300px");
    //For Vietnamese User. Edit file editor.js to enable vietnamese keyboard
    if(enable_vietnamese_keyboard==1){
        document.write("<script language=\"JavaScript\" type=\"text/javascript\" src=\"richedit/avim.js\"><\/script>");
        var hoteditor_avim_method = hot_readCookie("hoteditor_avim_method");var him_auto_checked="";var him_telex_checked="";var him_vni_checked="";var him_viqr_checked="";var him_viqr2_checked="";var him_off_checked="";if(hoteditor_avim_method=="0"){him_auto_checked="checked";}else if(hoteditor_avim_method=="1"){him_telex_checked="checked";}else if(hoteditor_avim_method=="2"){him_vni_checked="checked";}else if(hoteditor_avim_method=="3"){him_viqr_checked="checked";}else if(hoteditor_avim_method=="4"){him_viqr2_checked="checked";}else if(hoteditor_avim_method=="-1"){him_off_checked="checked";}
        document.write("<div style='width:100%;text-align:center;font-family:Verdana;font-size:11px;'><input "+him_auto_checked+" id=him_auto onclick=setMethod(0); type=radio name=viet_method> Auto :: <input "+him_telex_checked+" id=him_telex onclick=setMethod(1); type=radio name=viet_method> Telex :: <input "+him_vni_checked+" id=him_vni onclick=setMethod(2); type=radio name=viet_method> VNI :: <input "+him_viqr_checked+" id=him_viqr onclick=setMethod(3); type=radio name=viet_method> VIQR :: <input "+him_viqr2_checked+" id=him_viqr2 onclick=setMethod(4); type=radio name=viet_method> VIQR* :: <input "+him_off_checked+" id=him_off onclick=setMethod(-1); type=radio name=viet_method> Off<br><img src="+styles_folder_path+"/vietnamese_symbol.gif></div>");
    }
    function get_hoteditor_data(){
        if (HTML_ON == "no"){
            alert ("Please uncheck the HTML checkbox");
            return false;
        }
        setCodeOutput();
        var bbcode_output=document.getElementById("hoteditor_bbcode_ouput_editor").value;//Output to BBCode
        
        //Make it work with MOD Hoteditor 4.0
        bbcode_output=bbcode_output.replace(/\{EDITOR=/gi,"[B]{[/B]EDITOR=");
        bbcode_output=bbcode_output.replace(/EDITOR\}/gi,"EDITOR[B]}[/B]");

        //Output BBCode to message textarea
        document.getElementById("message").value = bbcode_output;
    }
</script>
<!-- //EDITOR -->
</tr>
<tr>
<td class="trow1" valign="top"><strong>{$lang->compose_options}</strong></td>
<td class="trow1"><span class="smalltext">
<label><input type="checkbox" class="checkbox" name="options[signature]" value="1" tabindex="5" {$optionschecked['signature']} />{$lang->options_sig}</label><br />
<label><input type="checkbox" class="checkbox" name="options[disablesmilies]" value="1" tabindex="6" {$optionschecked['disablesmilies']} />{$lang->options_disable_smilies}</label><br />
<label><input type="checkbox" class="checkbox" name="options[savecopy]" value="1" tabindex="7" {$optionschecked['savecopy']} />{$lang->options_save_copy}</label><br />
<label><input type="checkbox" class="checkbox" name="options[readreceipt]" value="1" tabindex="8" {$optionschecked['readreceipt']} />{$lang->options_read_receipt}</label><br />
</span></td>
</tr>
</table>
<br />
<input type="hidden" name="action" value="do_send" />
<input type="hidden" name="pmid" value="{$pmid}" />
<input type="hidden" name="do" value="{$do}" />
<div style="text-align: center;">
<input onClick="get_hoteditor_data();" type="submit" class="button" name="submit" value="{$lang->send_message}" tabindex="9" accesskey="s" />
<input onClick="get_hoteditor_data();" type="submit" class="button" name="saveasdraft" value="{$lang->save_draft}" tabindex="10" />
<input onClick="get_hoteditor_data();" type="submit" class="button" name="preview" value="{$lang->preview}" tabindex="11" />
</div>
</td>
</tr>
</table>
</form>
{$footer}
<script type="text/javascript">
<!--
    if($('bcc_area') && $('bcc').value == "")
    {
        $('bcc_area').style.display = 'none';
    }

    function showBcc()
    {
        if($('bcc_area').style.display == 'none')
        {
            $('bcc_area').style.display = '';
        }
        else
        {
            $('bcc_area').style.display = 'none';
        }
    }
// -->
</script>
{$autocompletejs}
</body>
</html>



Mostrar tema --> showthread_quickreply
Código:
<br />
<form method="post" action="newreply.php?tid={$tid}&amp;processed=1" name="quick_reply_form" id="quick_reply_form">
    <input type="hidden" name="my_post_key" value="{$mybb->post_code}" />
    <input type="hidden" name="subject" value="RE: {$thread['subject']}" />
    <input type="hidden" name="action" value="do_newreply" />
    <input type="hidden" name="posthash" value="{$posthash}" id="posthash" />
    <input type="hidden" name="quoted_ids" value="" id="quoted_ids" />
    <input type="hidden" name="lastpid" id="lastpid" value="{$last_pid}" />
    <input type="hidden" name="from_page" value="{$page}" />
    <input type="hidden" name="tid" value="{$tid}" />
    <input type="hidden" name="method" value="quickreply" />

    <table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
        <thead>
            <tr>
                <td class="thead" colspan="2">
                    <div class="expcolimage"><img src="{$theme['imgdir']}/collapse{$collapsedimg['quickreply']}.gif" id="quickreply_img" class="expander" alt="[-]" title="[-]" /></div>
                    <div><strong>{$lang->quick_reply}</strong></div>
                </td>
            </tr>
        </thead>
        <tbody style="{$collapsed['quickreply_e']}" id="quickreply_e">
            <tr>
                <td class="trow1" valign="top" width="22%">
                    <strong>{$lang->message}</strong><br />
                    <span class="smalltext">{$lang->message_note}<br /><br />
                    <label><input type="checkbox" class="checkbox" name="postoptions[signature]" value="1" {$postoptionschecked['signature']} />&nbsp;<strong>{$lang->signature}</strong></label><br />
                    <label><input type="checkbox" class="checkbox" name="postoptions[disablesmilies]" value="1" />&nbsp;<strong>{$lang->disable_smilies}</strong></label>{$closeoption}</span>
                </td>
                <td class="trow1">
                    <div>
                        <!-- //EDITOR -->
        <textarea style="visibility:hidden;position:absolute;top:-20;left:-20;width:1px;height:1px" rows="8" cols="80" name="message" id="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");
            //For Vietnamese User. Edit file editor.js to enable vietnamese keyboard
            if(enable_vietnamese_keyboard==1){
                document.write("<script language=\"JavaScript\" type=\"text/javascript\" src=\"richedit/avim.js\"><\/script>");
                //var hoteditor_avim_method = hot_readCookie("hoteditor_avim_method");var him_auto_checked="";var him_telex_checked="";var him_vni_checked="";var him_viqr_checked="";var him_viqr2_checked="";var him_off_checked="";if(hoteditor_avim_method=="0"){him_auto_checked="checked";}else if(hoteditor_avim_method=="1"){him_telex_checked="checked";}else if(hoteditor_avim_method=="2"){him_vni_checked="checked";}else if(hoteditor_avim_method=="3"){him_viqr_checked="checked";}else if(hoteditor_avim_method=="4"){him_viqr2_checked="checked";}else if(hoteditor_avim_method=="-1"){him_off_checked="checked";}
                //document.write("<div style='width:100%;text-align:center;font-family:Verdana;font-size:11px;'><input "+him_auto_checked+" id=him_auto onclick=setMethod(0); type=radio name=viet_method> Auto :: <input "+him_telex_checked+" id=him_telex onclick=setMethod(1); type=radio name=viet_method> Telex :: <input "+him_vni_checked+" id=him_vni onclick=setMethod(2); type=radio name=viet_method> VNI :: <input "+him_viqr_checked+" id=him_viqr onclick=setMethod(3); type=radio name=viet_method> VIQR :: <input "+him_viqr2_checked+" id=him_viqr2 onclick=setMethod(4); type=radio name=viet_method> VIQR* :: <input "+him_off_checked+" id=him_off onclick=setMethod(-1); type=radio name=viet_method> Off<br><img src="+styles_folder_path+"/vietnamese_symbol.gif></div>");
            }
            function get_hoteditor_data(){
                if (HTML_ON == "no"){
                    alert ("Please uncheck the HTML checkbox");
                    return false;
                }
                setCodeOutput();
                var bbcode_output=document.getElementById("hoteditor_bbcode_ouput_editor").value;//Output to BBCode

                //Make it work with MOD Hoteditor 4.0
                bbcode_output=bbcode_output.replace(/\{EDITOR=/gi,"[B]{[/B]EDITOR=");
                bbcode_output=bbcode_output.replace(/EDITOR\}/gi,"EDITOR[B]}[/B]");

                document.getElementById("message").value = bbcode_output;
            }            
        </script>
        <!-- //EDITOR -->
                    </div>
                    <div class="editor_control_bar" style="width: 95%; padding: 4px; margin-top: 3px; display: none;" id="quickreply_multiquote">
                        <span class="smalltext">
                            {$lang->quickreply_multiquote_selected} <a href="./newreply.php?tid={$tid}&amp;load_all_quotes=1" onclick="return Thread.loadMultiQuoted();">{$lang->quickreply_multiquote_now}</a> {$lang->or} <a href="javascript:Thread.clearMultiQuoted();">{$lang->quickreply_multiquote_deselect}</a>.
                        </span>
                    </div>
                </td>
            </tr>
            {$captcha}
            <tr>
                <td colspan="2" align="center" class="tfoot"><input onClick="get_hoteditor_data(); FormatText('editor', 'delete_all', '');" type="submit" class="button" value="{$lang->post_reply}" tabindex="2" accesskey="s" id="quick_reply_submit" /> <input onClick="get_hoteditor_data();" type="submit" class="button" name="previewpost" value="{$lang->preview_post}" tabindex="3" /></td>
            </tr>
        </tbody>
    </table>
</form>




Panel del control del usuario --> usercp_editsig
Código:
<html>
<head>
<title>{$mybb->settings['bbname']} - {$lang->edit_sig}</title>
{$headerinclude}
</head>
<body>
{$header}
<form onSubmit="return get_hoteditor_data();" action="usercp.php" method="post">
<input type="hidden" name="my_post_key" value="{$mybb->post_code}" />
<table width="100%" border="0" align="center">
<tr>
{$usercpnav}
<td valign="top">
{$error}
{$signature}
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead" colspan="2"><strong>{$lang->edit_sig}</strong></td>
</tr>
<tr>
<td class="trow1" valign="top" width="40%"><span class="smalltext">{$lang->edit_sig_note}</span></td>
<td class="trow1" width="60%">
<!-- //EDITOR -->
<textarea style="visibility:hidden;position:absolute;top:-20;left:-20;width:1px;height:1px" rows="5" cols="55" id="signature" name="signature">{$sig}</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("signature").value;    
    Instantiate("max","editor", getdata , "100%", "200px");
    //For Vietnamese User. Edit file editor.js to enable vietnamese keyboard
    if(enable_vietnamese_keyboard==1){
        document.write("<script language=\"JavaScript\" type=\"text/javascript\" src=\"richedit/avim.js\"><\/script>");
        //var hoteditor_avim_method = hot_readCookie("hoteditor_avim_method");var him_auto_checked="";var him_telex_checked="";var him_vni_checked="";var him_viqr_checked="";var him_viqr2_checked="";var him_off_checked="";if(hoteditor_avim_method=="0"){him_auto_checked="checked";}else if(hoteditor_avim_method=="1"){him_telex_checked="checked";}else if(hoteditor_avim_method=="2"){him_vni_checked="checked";}else if(hoteditor_avim_method=="3"){him_viqr_checked="checked";}else if(hoteditor_avim_method=="4"){him_viqr2_checked="checked";}else if(hoteditor_avim_method=="-1"){him_off_checked="checked";}
        //document.write("<div style='width:100%;text-align:center;font-family:Verdana;font-size:11px;'><input "+him_auto_checked+" id=him_auto onclick=setMethod(0); type=radio name=viet_method> Auto :: <input "+him_telex_checked+" id=him_telex onclick=setMethod(1); type=radio name=viet_method> Telex :: <input "+him_vni_checked+" id=him_vni onclick=setMethod(2); type=radio name=viet_method> VNI :: <input "+him_viqr_checked+" id=him_viqr onclick=setMethod(3); type=radio name=viet_method> VIQR :: <input "+him_viqr2_checked+" id=him_viqr2 onclick=setMethod(4); type=radio name=viet_method> VIQR* :: <input "+him_off_checked+" id=him_off onclick=setMethod(-1); type=radio name=viet_method> Off<br><img src="+styles_folder_path+"/vietnamese_symbol.gif></div>");
    }
    function get_hoteditor_data(){
        if (HTML_ON == "no"){
            alert ("Please uncheck the HTML checkbox");
            return false;
        }
        setCodeOutput();
        var bbcode_output=document.getElementById("hoteditor_bbcode_ouput_editor").value;//Output to BBCode
        
        //Make it work with MOD Hoteditor 4.0
        bbcode_output=bbcode_output.replace(/\{EDITOR=/gi,"[B]{[/B]EDITOR=");
        bbcode_output=bbcode_output.replace(/EDITOR\}/gi,"EDITOR[B]}[/B]");

        //Output BBCode to message textarea
        document.getElementById("signature").value = bbcode_output;
    }
</script>
<!-- //EDITOR -->
</td>
</tr>
<tr>
<td class="trow2">
<span class="smalltext">{$lang->edit_sig_note2}</span>
</td>
<td class="trow2">
<span class="smalltext">
<label><input type="radio" class="radio" name="updateposts" value="enable" />&nbsp;{$lang->enable_sig_posts}</label><br />
<label><input type="radio" class="radio" name="updateposts" value="disable" />&nbsp;{$lang->disable_sig_posts}</label><br />
<label><input type="radio" class="radio" name="updateposts" value="0" checked="checked" />&nbsp;{$lang->leave_sig_settings}</label></span>
</td>
</tr>
</table>
<br />
<div align="center">
<input type="hidden" name="action" value="do_editsig" />
<input type="submit" class="button" name="submit" value="{$lang->update_sig}" />
<input type="submit" class="button" name="preview" value="{$lang->preview}" />
</div>
</td>
</tr>
</table>
</form>
{$footer}
</body>
</html>

XMLHTTP - plantillas --> xmlhttp_inline_post_editor
Código:
<br />
        <div style="clear: both;">
            <iframe name=hotframe_{$post['pid']} frameborder=0 width=100% height=490px src="hoteditor_quickedit.php?id={$post['pid']}" scrolling=no target="_top"></iframe>
            <div>
                <textarea style="visibility:hidden;position:absolute;top:-20;left:-20;width:1px;height:1px" id="quickedit_{$post['pid']}" />{$post['message']}</textarea>
            </div>            
        </div>


Saludos!!!

niny   1 Dec, 2010, 9:01 am
#12
ok!entonces nada esperare a que martin lo instale y nos diga que tal es.
Pd:nadie nace sabiendo,por eso creamos comunidades y sobre todo estas,para aprender
nentab   1 Dec, 2010, 9:18 am
#13
Borré los mensajes que no tenían que ver. Maxii, si se está hablando de un editor, se habla de un editor. No se salta a otro editor diferente que ni siquiera es de MyBB.

PD: No desvíen más el tema.
Última modificación: 1 Dec, 2010, 9:19 am por Cluster.
MartinSmith   1 Dec, 2010, 11:06 am
#14
Deberan esperar, ya que son muchos cambios, voy a instalar xampp y duplicar mi foro para editarlo en localhost, ya que si no sirve el editor deria muchos errores en mi foro...
andy   2 Dec, 2010, 6:17 am
#15
Acá está la beta 3 del plugin Wink
http://www.frinklabs.xe.cx/forums/showth...318#pid318
niny   2 Dec, 2010, 7:58 am
#16
Acabo de instalar el plug-in que a posteado andy....y e de decir que es muy bueno....le falla un poco el estilo y eso...pero esta bastante bien ademas creo que seria facil ponerle botones
MartinSmith   2 Dec, 2010, 8:33 am
#17
(2 Dec, 2010, 7:58 am)niny escribió: Acabo de instalar el plug-in que a posteado andy....y e de decir que es muy bueno....le falla un poco el estilo y eso...pero esta bastante bien ademas creo que seria facil ponerle botones

@niny Puedes pasar un screenshot por favor.
-________________________________________________________________________________-

http://www.youtube.com/watch?v=7SyUJNfDhyI

Video en el que muesto el editor.

Espero que sepan como colocar botones en el editor Undecided
Última modificación: 2 Dec, 2010, 5:41 pm por dualchu.
niny   3 Dec, 2010, 5:18 am
#18
aqui teneis la imagen!la iva a poner ayer pero no me dio tiempo..tengo el archivo del lenguaje traducido pero nose por que no me deja subirlo aqui...luego lo subo a mi server y os lo dejo por si a alguien le interesa.esty viendo el video de martin aver que tal queda...

[Imagen: 467capuddeditor.jpg]
nentab   3 Dec, 2010, 7:37 am
#19
He de decir que me parece muy bueno esa versión que instaló niny. Pero bueno, de momento como es beta seguiré esperando.
MartinSmith   3 Dec, 2010, 11:35 am
#20
Yo ya instale el Hot editor en mi foro, no en el localhost, en el real Big Grin

--------------------------------------------------------------------
(2 Dec, 2010, 7:58 am)niny escribió: Acabo de instalar el plug-in que a posteado andy....y e de decir que es muy bueno....le falla un poco el estilo y eso...pero esta bastante bien ademas creo que seria facil ponerle botones

(3 Dec, 2010, 5:18 am)niny escribió: aqui teneis la imagen!la iva a poner ayer pero no me dio tiempo..tengo el archivo del lenguaje traducido pero nose por que no me deja subirlo aqui...luego lo subo a mi server y os lo dejo por si a alguien le interesa.esty viendo el video de martin aver que tal queda...

[Imagen: 467capuddeditor.jpg]

Yo me registre en FrinkLabs pero aun asi no puedo descargar en editor, me dice que no tengo permisos, los puedes postear aqui por megaupload o algo asi?

Última modificación: 3 Dec, 2010, 3:57 pm por dualchu.
Páginas (4):    1 2 3 4   
  
Powered By MyBB, © 2002-2024 MyBB Group.
Made with by Curves UI.