[BETA] WYSIWYG - Rich Text Editor for posting HTML message

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
callit
Registered User
Posts: 6
Joined: Sat Mar 31, 2007 8:13 pm
Location: Switzerland

Re: [BETA] WYSIWYG - Rich Text Editor for posting HTML message

Post by callit »

Hi

I guess it would be too early to publish this in any translations section (and I am not a developper as well).
But anyhow, I'd like to share here my spanish translation langpack for HotEditor 4.2
The translation will work independently on any of the supported forums (phpBB2, phpBB3 and others).

You can download it here.

To install the translation: I couldn't find yet where I have to translate the "image-upload" popup window. If someone can tell me I'll do this too.

If someone is interested in a german translation I could do it as well, just tell me.

filmfr3ak
Registered User
Posts: 7
Joined: Fri Nov 02, 2007 3:49 am

HOTEDITOR MOD for PHPBB2... help?

Post by filmfr3ak »

Ok, I posted this in the thread for the hoteditor mod, but since that post was in the phpbb3 board they said to post it on the php2 board. So here I am asking again...

I installed the HOTEDITOR MOD...
which is available for both versions phpbb2 and 3...

It works FINE everywhere EXCEPT the profile page.
It will let you edit and save changes to you profile all except the SIGNATURE.
It says the changes have been saved but it does not save changes made to the signature. All other changes DO SAVE.

I am using phpBB 2.0.21
subsilver theme

Any help would be appreciated.

If this is AGAIN in the wrong forum, I apologize, I did not see a "support request forum" and SEARCHING for HOTEDITOR MOD only pulled it up in phpbb3 board.

THANK YOU

User avatar
A_Jelly_Doughnut
Former Team Member
Posts: 34457
Joined: Sat Jan 18, 2003 1:26 am
Location: Where the Rivers Run
Contact:

Re: HOTEDITOR MOD for PHPBB2... help?

Post by A_Jelly_Doughnut »

Your question would be most appropriate as a reply to this topic. I've taken the liberty of merging your message into the WYSIWYG Editor topic.
A Donut's Blog
"Bach's Prelude (Cello Suite No. 1) is driving Indiana country roads in Autumn" - Ann Kish

Fisch.666
Registered User
Posts: 219
Joined: Sat Jul 30, 2005 10:58 am

Re: [BETA] WYSIWYG - Rich Text Editor for posting HTML message

Post by Fisch.666 »

Hi!

Thanks for this Mod, works here without a problem at my forum. But i recognized a increase of the loading time (about 2-3 sec.) on my forum. Is this normal?

callit
Registered User
Posts: 6
Joined: Sat Mar 31, 2007 8:13 pm
Location: Switzerland

Re: HOTEDITOR MOD for PHPBB2... help?

Post by callit »

filmfr3ak wrote:It works FINE everywhere EXCEPT the profile page.
It will let you edit and save changes to you profile all except the SIGNATURE.
It says the changes have been saved but it does not save changes made to the signature. All other changes DO SAVE.
I have the same problem with my installation, I just didn't realize it until now because I never tried to use signatures, but some users will like to do so...

But with the Demo-Installation of ecardmax it works in signatures.... Might this be because we didn't yet buy the mod (...no, I won't buy it if it doesn't work totally flawlessly!)

Any suggestion or hint from someone who knows why we have this problem?

callit
Registered User
Posts: 6
Joined: Sat Mar 31, 2007 8:13 pm
Location: Switzerland

Re: [BETA] WYSIWYG - Rich Text Editor for posting HTML message

Post by callit »

Fisch.666 wrote:Is this normal?
Yes I think so. It's loading a little bit slower (1-2 seconds more) than without WYSIWYG-Editor. Just think of all those small graphics (20 or even more) which have to be loaded one by another...

filmfr3ak
Registered User
Posts: 7
Joined: Fri Nov 02, 2007 3:49 am

Re: [BETA] WYSIWYG - Rich Text Editor for posting HTML message

Post by filmfr3ak »

no one has any ideas?

The only code change on the profile is
change from

Code: Select all

	  <td class="row2"> 
		<textarea name="signature"style="width: 300px"  rows="6" cols="30" class="post">{SIGNATURE}</textarea>
	  </td>

to

Code: Select all

<td> 		
<!-- //EDITOR JAVASCRIPT CODE -->
<textarea style="visibility:hidden;position:absolute;top:-20;left:-20;width:1px;height:1px" name="signature" id="signature" rows="6" cols="30" class="post">{SIGNATURE}</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("min","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>");
	}
	//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(){
		setCodeOutput();
		var bbcode_output=document.getElementById("hoteditor_bbcode_ouput_editor").value;//Output to BBCode
		document.getElementById("signature").value = bbcode_output;
	}
</script>
<!-- //EDITOR -->	

User avatar
Jameel
Registered User
Posts: 59
Joined: Sun Oct 14, 2007 3:26 am

Re: [BETA] WYSIWYG - Rich Text Editor for posting HTML message

Post by Jameel »

heLp!!!!

the text editor wont show up in posting_body.tpl!!!!

im using template fi sub ice, heres the code

Code: Select all

<script language="javascript" type="text/javascript">
<!--
// bbCode control by
// subBlue design
// www.subBlue.com

// Startup variables
var imageTag = false;
var theSelection = false;

// Check for Browser & Platform for PC & IE specific bits
// More details from: http://www.mozilla.org/docs/web-developer/sniffer/browser_type.html
var clientPC = navigator.userAgent.toLowerCase(); // Get client info
var clientVer = parseInt(navigator.appVersion); // Get browser version

var is_ie = ((clientPC.indexOf("msie") != -1) && (clientPC.indexOf("opera") == -1));
var is_nav = ((clientPC.indexOf('mozilla')!=-1) && (clientPC.indexOf('spoofer')==-1)
                && (clientPC.indexOf('compatible') == -1) && (clientPC.indexOf('opera')==-1)
                && (clientPC.indexOf('webtv')==-1) && (clientPC.indexOf('hotjava')==-1));
var is_moz = 0;

var is_win = ((clientPC.indexOf("win")!=-1) || (clientPC.indexOf("16bit") != -1));
var is_mac = (clientPC.indexOf("mac")!=-1);

// Helpline messages
b_help = "{L_BBCODE_B_HELP}";
i_help = "{L_BBCODE_I_HELP}";
u_help = "{L_BBCODE_U_HELP}";
q_help = "{L_BBCODE_Q_HELP}";
c_help = "{L_BBCODE_C_HELP}";
l_help = "{L_BBCODE_L_HELP}";
o_help = "{L_BBCODE_O_HELP}";
p_help = "{L_BBCODE_P_HELP}";
w_help = "{L_BBCODE_W_HELP}";
a_help = "{L_BBCODE_A_HELP}";
s_help = "{L_BBCODE_S_HELP}";
f_help = "{L_BBCODE_F_HELP}";

n_help = "{L_BBCODE_N_HELP}";

<!-- BEGIN BBCODE_ROW -->
<!-- BEGIN BBCODE -->
{BBCODE_ROW.BBCODE.VALUE}_help = "{BBCODE_ROW.BBCODE.HELP}";
<!-- END BBCODE -->
<!-- END BBCODE_ROW --> 

x_help = "{L_BBCODE_X_HELP}"; // Align BBCode MOD

// Define the bbCode tags
bbcode = new Array();
bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','
','
  • ','
','
  • ','
','[img]','[/img]','','','[youtube]','[/youtube]','[mod="{EDITOR_NAME}"]','[/mod]');
imageTag = false;

// Shows the help messages in the helpline window
function helpline(help) {
document.post.helpbox.value = eval(help + "_help");
}


// Replacement for arrayname.length property
function getarraysize(thearray) {
for (i = 0; i < thearray.length; i++) {
if ((thearray == "undefined") || (thearray == "") || (thearray == null))
return i;
}
return thearray.length;
}

// Replacement for arrayname.push(value) not implemented in IE until version 5.5
// Appends element to the array
function arraypush(thearray,value) {
thearray[ getarraysize(thearray) ] = value;
}

// Replacement for arrayname.pop() not implemented in IE until version 5.5
// Removes and returns the last element of an array
function arraypop(thearray) {
thearraysize = getarraysize(thearray);
retval = thearray[thearraysize - 1];
delete thearray[thearraysize - 1];
return retval;
}


function checkForm() {
//EDITOR
get_hoteditor_data();

formErrors = false;

if (document.post.message.value.length < 2) {
formErrors = "{L_EMPTY_MESSAGE}";
}

if (formErrors) {
alert(formErrors);
return false;
} else {
bbstyle(-1);
//formObj.preview.disabled = true;
//formObj.submit.disabled = true;
return true;
}
}

function bbplace(text) {
var txtarea = document.post.message;
if (txtarea.createTextRange && txtarea.caretPos) {
var caretPos = txtarea.caretPos;
caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? caretPos.text + text + ' ' : caretPos.text + text;
txtarea.focus();
} else {
txtarea.value += text;
txtarea.focus();
}
}


function emoticon(text) {
var txtarea = document.post.message;
text = ' ' + text + ' ';
if (txtarea.createTextRange && txtarea.caretPos) {
var caretPos = txtarea.caretPos;
caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? caretPos.text + text + ' ' : caretPos.text + text;
txtarea.focus();
} else {
txtarea.value += text;
txtarea.focus();
}
}

function bbfontstyle(bbopen, bbclose) {
var txtarea = document.post.message;

if ((clientVer >= 4) && is_ie && is_win) {
theSelection = document.selection.createRange().text;
if (!theSelection) {
txtarea.value += bbopen + bbclose;
txtarea.focus();
return;
}
document.selection.createRange().text = bbopen + theSelection + bbclose;
txtarea.focus();
return;
}
else if (txtarea.selectionEnd && (txtarea.selectionEnd - txtarea.selectionStart > 0))
{
mozWrap(txtarea, bbopen, bbclose);
return;
}
else
{
txtarea.value += bbopen + bbclose;
txtarea.focus();
}
storeCaret(txtarea);
}


function bbstyle(bbnumber) {
var txtarea = document.post.message;

txtarea.focus();
donotinsert = false;
theSelection = false;
bblast = 0;

if (bbnumber == -1) { // Close all open tags & default button names
while (bbcode[0]) {
butnumber = arraypop(bbcode) - 1;
txtarea.value += bbtags[butnumber + 1];
buttext = eval('document.post.addbbcode' + butnumber + '.value');
eval('document.post.addbbcode' + butnumber + '.value ="' + buttext.substr(0,(buttext.length - 1)) + '"');
}
imageTag = false; // All tags are closed including image tags :D
txtarea.focus();
return;
}

if ((clientVer >= 4) && is_ie && is_win)
{
theSelection = document.selection.createRange().text; // Get text selection
if (theSelection) {
// Add tags around selection
document.selection.createRange().text = bbtags[bbnumber] + theSelection + bbtags[bbnumber+1];
txtarea.focus();
theSelection = '';
return;
}
}
else if (txtarea.selectionEnd && (txtarea.selectionEnd - txtarea.selectionStart > 0))
{
mozWrap(txtarea, bbtags[bbnumber], bbtags[bbnumber+1]);
return;
}

// Find last occurance of an open tag the same as the one just clicked
for (i = 0; i < bbcode.length; i++) {
if (bbcode == bbnumber+1) {
bblast = i;
donotinsert = true;
}
}

if (donotinsert) { // Close all open tags up to the one just clicked & default button names
while (bbcode[bblast]) {
butnumber = arraypop(bbcode) - 1;
bbplace(bbtags[butnumber + 1]);

buttext = eval('document.post.addbbcode' + butnumber + '.value');
eval('document.post.addbbcode' + butnumber + '.value ="' + buttext.substr(0,(buttext.length - 1)) + '"');
imageTag = false;
}
txtarea.focus();
return;
} else { // Open tags

if (imageTag && (bbnumber != 14)) { // Close image tag before adding another
bbplace(bbtags[15]);

lastValue = arraypop(bbcode) - 1; // Remove the close image tag from the list
document.post.addbbcode14.value = "Img"; // Return button back to normal state
imageTag = false;
}

// Open tag
bbplace(bbtags[bbnumber]);

if ((bbnumber == 14) && (imageTag == false)) imageTag = 1; // Check to stop additional tags after an unclosed image tag
arraypush(bbcode,bbnumber+1);
eval('document.post.addbbcode'+bbnumber+'.value += "*"');
txtarea.focus();
return;
}
storeCaret(txtarea);
}

// From http://www.massless.org/mozedit/
function mozWrap(txtarea, open, close)
{
var selLength = txtarea.textLength;
var selStart = txtarea.selectionStart;
var selEnd = txtarea.selectionEnd;
if (selEnd == 1 || selEnd == 2)
selEnd = selLength;

var s1 = (txtarea.value).substring(0,selStart);
var s2 = (txtarea.value).substring(selStart, selEnd)
var s3 = (txtarea.value).substring(selEnd, selLength);
txtarea.value = s1 + open + s2 + close + s3;
return;
}

// Insert at Claret position. Code from
// http://www.faqts.com/knowledge_base/vie ... 52/fid/130
function storeCaret(textEl) {
if (textEl.createTextRange) textEl.caretPos = document.selection.createRange().duplicate();
}

//-->
</script>
<form action="{S_POST_ACTION}" method="post" name="post" onsubmit="return checkForm(this)">
<table width="100%" cellspacing="2" cellpadding="2" border="0">
<tr>
<td class="maintitle">{L_POST_A}</td>
</tr>
<tr>
<td class="nav"><a href="{U_INDEX}">{L_INDEX}</a>
<!-- BEGIN switch_not_privmsg -->
&raquo; <a href="{U_VIEW_FORUM}">{FORUM_NAME}</a>
<!-- END switch_not_privmsg -->
&raquo; {L_POST_A}</td>
</tr>
</table>
{POST_PREVIEW_BOX}
{ERROR_BOX}
<table border="0" cellpadding="3" cellspacing="1" width="100%" class="forumline">
<tr>
<th colspan="2">{L_POST_A}</th>
</tr>
<!-- BEGIN switch_username_select -->
<tr>
<td align="right" class="row1"><span class="explaintitle">{L_USERNAME}:</span></td>
<td class="row2"><input type="text" class="post" tabindex="1" name="username" size="25" maxlength="25" value="{USERNAME}" />
</td>
</tr>
<!-- END switch_username_select -->
<!-- BEGIN switch_privmsg -->
<tr>
<td align="right" class="row1"><span class="explaintitle">{L_USERNAME}:</span></td>
<td class="row2"> <input type="text" class="post" name="username" maxlength="25" size="25" tabindex="1" value="{USERNAME}" />
&nbsp; <input type="submit" name="usersubmit" value="{L_FIND_USERNAME}" class="button" onclick="window.open('{U_SEARCH_USER}', '_phpbbsearch', 'HEIGHT=250,resizable=yes,WIDTH=400');return false;" />
</td>
</tr>
<!-- END switch_privmsg -->
<tr>
<td width="22%" align="right" class="row1"><span class="explaintitle">{L_SUBJECT}:</span></td>
<td class="row2" width="78%"><input type="text" name="subject" size="45" maxlength="60" style="width:500px" tabindex="2" class="post" value="{SUBJECT}" />
</td>
</tr>
<tr>
<td class="row1" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="1">
<tr>
<td align="right"><span class="explaintitle">{L_MESSAGE_BODY}:</span></td>
</tr>
<tr>
<td valign="middle" align="center"> <br />
<table width="100" border="0" cellspacing="0" cellpadding="5">
<tr align="center">
<td colspan="{S_SMILIES_COLSPAN}" class="gensmall"><b>{L_EMOTICONS}</b></td>
</tr>
<!-- BEGIN smilies_row -->
<tr align="center" valign="middle">
<!-- BEGIN smilies_col -->
<td><span style="CURSOR:hand;CURSOR:Pointer;" onmousedown="if(editor_type=='1'){WriteHTML('<img src={smilies_row.smilies_col.SMILEY_IMG}>','editor');}else{WriteTEXT('[IMG]{smilies_row.smilies_col.SMILEY_IMG}[/IMG]','editor');}"><img src="{smilies_row.smilies_col.SMILEY_IMG}" border="0" alt="{smilies_row.smilies_col.SMILEY_DESC}" title="{smilies_row.smilies_col.SMILEY_DESC}" /></span></td>
<!-- END smilies_col -->
</tr>
<!-- END smilies_row -->
<!-- BEGIN switch_smilies_extra -->
<tr align="center">
<td colspan="{S_SMILIES_COLSPAN}"><span class="nav"><a href="{U_MORE_SMILIES}" onclick="window.open('{U_MORE_SMILIES}', '_phpbbsmilies', 'HEIGHT=300,resizable=yes,scrollbars=yes,WIDTH=250');return false;" target="_phpbbsmilies" class="nav">{L_MORE_SMILIES}</a></span></td>
</tr>
<!-- END switch_smilies_extra -->
</table>
</td>
</tr>
</table>
</td>
<center><td class="row2" valign="top">
<table width="500" border="0" cellspacing="0" cellpadding="2">
<!-- //EDITOR - REMOVE ORIGINAL BBCODE BUTTONS -->
<tr>
<td colspan="9">
<!-- //EDITOR -->
<textarea style="visibility:hidden;position:absolute;top:-20;left:-20;width:1px;height:1px" id="message" name="message" rows="15" cols="35" wrap="virtual" tabindex="3" class="post" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);">{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>");
}
//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(){
setCodeOutput();
var bbcode_output=document.getElementById("hoteditor_bbcode_ouput_editor").value;//Output to BBCode
document.getElementById("message").value = bbcode_output;
}
</script>
<!-- //EDITOR -->
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="row1" valign="top"><span class="explaintitle">{L_OPTIONS}:</span><br />
<span class="gensmall">{HTML_STATUS}<br />
{BBCODE_STATUS}<br />
{SMILIES_STATUS}</span></td>
<td class="row2">
<table cellspacing="0" cellpadding="1" border="0">
<!-- BEGIN switch_html_checkbox -->
<tr>
<td>
<input type="checkbox" name="disable_html" {S_HTML_CHECKED} />
</td>
<td class="gensmall">{L_DISABLE_HTML}</td>
</tr>
<!-- END switch_html_checkbox -->
<!-- BEGIN switch_bbcode_checkbox -->
<tr>
<td>
<input type="checkbox" name="disable_bbcode" {S_BBCODE_CHECKED} />
</td>
<td class="gensmall">{L_DISABLE_BBCODE}</td>
</tr>
<!-- END switch_bbcode_checkbox -->
<!-- BEGIN switch_smilies_checkbox -->
<tr>
<td>
<input type="checkbox" name="disable_smilies" {S_SMILIES_CHECKED} />
</td>
<td class="gensmall">{L_DISABLE_SMILIES}</td>
</tr>
<!-- END switch_smilies_checkbox -->
<!-- BEGIN switch_signature_checkbox -->
<tr>
<td>
<input type="checkbox" name="attach_sig" {S_SIGNATURE_CHECKED} />
</td>
<td class="gensmall">{L_ATTACH_SIGNATURE}</td>
</tr>
<!-- END switch_signature_checkbox -->
<!-- BEGIN switch_notify_checkbox -->
<tr>
<td>
<input type="checkbox" name="notify" {S_NOTIFY_CHECKED} />
</td>
<td class="gensmall">{L_NOTIFY_ON_REPLY}</td>
</tr>
<!-- END switch_notify_checkbox -->
<!-- BEGIN switch_delete_checkbox -->
<tr>
<td>
<input type="checkbox" name="delete" />
</td>
<td class="gensmall">{L_DELETE_POST}</td>
</tr>
<!-- END switch_delete_checkbox -->
<!-- BEGIN switch_type_toggle -->
<tr>
<td></td>
<td><strong>{S_TYPE_TOGGLE}</strong></td>
</tr>
<!-- END switch_type_toggle -->
</table>
</td>
</tr>
{POLLBOX}
<tr>
<td class="cat" colspan="2" align="center" height="28">{S_HIDDEN_FORM_FIELDS}
<input type="submit" tabindex="5" name="preview" class="mainoption" value="{L_PREVIEW}" />
&nbsp;&nbsp;<input type="submit" accesskey="s" tabindex="6" name="post" class="mainoption" value="{L_SUBMIT}" />
</td>
</tr>
</table>
</form>
{TOPIC_REVIEW_BOX}
<table width="100%" cellspacing="2" cellpadding="2" border="0">
<tr>
<td class="nav"><a href="{U_INDEX}">{L_INDEX}</a>
<!-- BEGIN switch_not_privmsg -->
&raquo; <a href="{U_VIEW_FORUM}">{FORUM_NAME}</a>
<!-- END switch_not_privmsg -->
&raquo; {L_POST_A}</td>
</tr>
<tr>
<td><br />{JUMPBOX}</td>
</tr>
</table>[/code]

nothing shows up in the place where the edior should be :idea: :idea: :idea: :idea:
العربية

egyptghost
Registered User
Posts: 10
Joined: Mon Jul 04, 2005 8:38 pm

Re: [BETA] WYSIWYG - Rich Text Editor for posting HTML message

Post by egyptghost »

I want the same code system

how add PHP Syntax Highlighter BBCode in box and Html Syntax Highlighter BBCode Look at the example of image

Image

I want the same code system

i wait :cry:

egyptghost
Registered User
Posts: 10
Joined: Mon Jul 04, 2005 8:38 pm

Re: [BETA] WYSIWYG - Rich Text Editor for posting HTML message

Post by egyptghost »

welcome

i add hack PHP Syntax Highlighter

put found proplem

see pic

Image

http://img412.imageshack.us/my.php?imag ... 954rl9.jpg
:cry:

tfinry
Registered User
Posts: 32
Joined: Sat Jun 10, 2006 10:20 pm
Contact:

Re: [BETA] WYSIWYG - Rich Text Editor for posting HTML message

Post by tfinry »

any one upgraded to phpbb3 ?

callit
Registered User
Posts: 6
Joined: Sat Mar 31, 2007 8:13 pm
Location: Switzerland

Re: [BETA] WYSIWYG - Rich Text Editor for posting HTML message

Post by callit »

Hi

I guess it would be too early to publish this in any translations section (and I am not a developper as well).
But anyhow, I'd like to share here my german translation langpack for HotEditor 4.2
The translation will work independently on any of the supported forums (phpBB2, phpBB3 and others).

You can download it here.

To install the translation: I couldn't find yet where I have to translate the "image-upload" popup window. If someone can tell me I'll do this too.

E-nix
Registered User
Posts: 4
Joined: Sat May 17, 2008 8:58 pm

Re: [BETA] WYSIWYG - Rich Text Editor for posting HTML message

Post by E-nix »

Hello, I have installed HotEditor on a modified phpbb with another theme than subsilver. When editing and confirm a post, the texte it's not modified. And when there are a text with colours, the switch HTML/WYSIWYG delete the texte .. Any ideas ?

PS : I have BBCode Box reloaded installed

Sorry for my very bad english ...

User avatar
BizimPencere
Registered User
Posts: 396
Joined: Sat Aug 25, 2007 8:31 pm

Re: [BETA] WYSIWYG - Rich Text Editor for posting HTML message

Post by BizimPencere »

test user from demo forum?
www.phpbbturkiye.net | Turkish phpBB3 support and development

yusufyusufyusuf
Registered User
Posts: 4
Joined: Thu Apr 05, 2007 5:03 pm

Re: [BETA] WYSIWYG - Rich Text Editor for posting HTML message

Post by yusufyusufyusuf »

filmfr3ak wrote:Ok, I posted this in the thread for the hoteditor mod, but since that post was in the phpbb3 board they said to post it on the php2 board. So here I am asking again...

I installed the HOTEDITOR MOD...
which is available for both versions phpbb2 and 3...

It works FINE everywhere EXCEPT the profile page.
It will let you edit and save changes to you profile all except the SIGNATURE.
It says the changes have been saved but it does not save changes made to the signature. All other changes DO SAVE.

I am using phpBB 2.0.21
subsilver theme

Any help would be appreciated.

If this is AGAIN in the wrong forum, I apologize, I did not see a "support request forum" and SEARCHING for HOTEDITOR MOD only pulled it up in phpbb3 board.

THANK YOU
callit wrote:
filmfr3ak wrote:It works FINE everywhere EXCEPT the profile page.
It will let you edit and save changes to you profile all except the SIGNATURE.
It says the changes have been saved but it does not save changes made to the signature. All other changes DO SAVE.
I have the same problem with my installation, I just didn't realize it until now because I never tried to use signatures, but some users will like to do so...

But with the Demo-Installation of ecardmax it works in signatures.... Might this be because we didn't yet buy the mod (...no, I won't buy it if it doesn't work totally flawlessly!)

Any suggestion or hint from someone who knows why we have this problem?
filmfr3ak wrote:no one has any ideas?
The MOD Installation File is contain a missing part.

On Ecardmax's demo page it's working because it was installed successfully.

Now you must do this change in profile_add_body.tpl

Code: Select all

#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/profile_add_body.tpl

#
#-----[ FIND ]------------------------------------------
# ~ line number 128

<textarea name="signature" style="width: 300px" rows="6" cols="30" class="post">{SIGNATURE}</textarea>

#
#-----[ REPLACE WITH ]------------------------------------------
#

<!-- //EDITOR JAVASCRIPT CODE -->
<textarea style="visibility:hidden;position:absolute;top:-20;left:-20;width:1px;height:1px" name="signature" id="signature" rows="6" cols="30" class="post">{SIGNATURE}</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("min","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>");
	}
	//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(){
		setCodeOutput();
		var bbcode_output=document.getElementById("hoteditor_bbcode_ouput_editor").value;//Output to BBCode
		document.getElementById("signature").value = bbcode_output;
	}
</script>
<!-- //EDITOR -->
AND THEN again in the profile_add_body.tpl DO THIS >>

Code: Select all

#
#-----[ FIND ]------------------------------------------
#
<input type="submit"  name="submit" value="{L_SUBMIT}" class="mainoption" />

#
#-----[ REPLACE WITH ]------------------------------------------
#
# You added [onclick="get_hoteditor_data();"] near the input. 
<input type="submit"  onclick="get_hoteditor_data();" name="submit" value="{L_SUBMIT}" class="mainoption" />
It's all. Now it's working successfully.

I made this and i want to share with you.

If you thanks to me, i will glad.

Now i tell this for Turk People with Turkish.

Arkadaşlar eğer sizde hot editor modunu phpbb forumuna yükledikten sonra profil menüsü çalışmadıysa profile_add_body.tpl dosyasında yukarıda ingilizce olarak anlattığım ikinci değişikliği yapın emin olun çalışacaktır. Görüşmek üzere...

Post Reply

Return to “[2.0.x] MODs in Development”