MyBB Community Forums

Full Version: is there any way to make hoteditor works with mybb 1.4
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
(2008-08-14, 07:52 PM)GG-Xtreme Wrote: [ -> ]I am attempting to register on your site, please activate the user "GG-Xtreme".
Ok, well looking at the signature page, the line breaks in the editor section of the template are missing (in other words, everything is on one line causing comments to break the rest of the code), and I imagine this is causing the problems with the newthread.php as well. Try pasting the template modifications from the text file using a different text editor than notepad, such as Wordpad, or make sure View>Word wrap is turned off when viewing the file. Once the templates have been fixed up, it should work properly.
Update: http://community.mybboard.net/thread-35860.html

i followed the instructions and double check the templete edit , but still same problem can't find a text area to write ,

your account is activated , you can try it your self ,

i have created a test account


login : test
Password : 123456
Don't give up yet, whatever you did when you 'checked' the templates again, you fixed the signature edit page! All I know is that the template looks mangled in the page source for newthread.php and possible others. For example, the editor code in the newthread page should look like this:
<!-- //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 -->
Yours is incomplete:
<!-- //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"></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 hi
<!-- end: newthread -->
I'd also suggest you make sure you have the latest code release of MyBB 1.4 (try re-downloading the zip file and re-upload all the files except for inc/settings.php and inc/config.php and make sure that all the files and directories are CHMOD'ed properly.
ok let me do this then i will report to you

thanks for help Smile
Hope it's not too late to tell you to backup everything first Wink but you said about giving me Admin CP access, that would help too.
yes i backedup every thing 2 hours ago , Smile
Okay, your template modification page looks different then mine, so I think you may have a different 1.4 code version. Try what I said above, and I'll take another look at the template page.
Pages: 1 2 3