Página 1 de 1

Almsamim WYSIWYG + supernova = bug nos smilies

Enviado: 01 Set 2011, 19:35
por FilipeGaio
URL do Fórum: http://www.linuxtotal.org

Pessoal... no style supernova quando vou clicar num smilie a página é levada ao topo e o smilie não é adicionado... entretanto, quando uso o template Absolution o problema não acontece...

Alguma sugestão para resolver isto?

PS: Eu sei que a MOD está abandonada, mas como no absolution funciona, não creio que seja algum erro da própria mod e sim problema no style... como resolver isto?

Re: Almsamim WYSIWYG + supernova = bug nos smilies

Enviado: 01 Set 2011, 20:20
por _Vinny_
Poderia disponibilizar alguma conta de testes para podermos ver no seu forum?

Re: Almsamim WYSIWYG + supernova = bug nos smilies

Enviado: 01 Set 2011, 20:42
por FilipeGaio
usuário: linuxtotal
senha: linuxtotal

Creio que possa ter sido alguma modificação minha no template (para o mesmo ficar full width...)

clicando no icone de uma tomada circulado por 1 quadrado azul desativa-se a previsão do texto e o smile é inserido corretamente... o problema é quando vou inseri-lo direto

Re: Almsamim WYSIWYG + supernova = bug nos smilies

Enviado: 01 Set 2011, 21:02
por _Vinny_
Poste aqui os arquivos:
  • template/posting_smilies.html
  • template/editor.js
Ambos na template do estilo.

Re: Almsamim WYSIWYG + supernova = bug nos smilies

Enviado: 01 Set 2011, 23:23
por FilipeGaio
editor:

Código: Selecionar todos

/**

* bbCode control by subBlue design [ http://www.subBlue.com ]

* Includes unixsafe colour palette selector by SHS`

*/



// Startup variables

var imageTag = false;

var theSelection = false;



var bbcodeEnabled = true;

// 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_win = ((clientPC.indexOf('win') != -1) || (clientPC.indexOf('16bit') != -1));

var baseHeight;



/**

* Shows the help messages in the helpline window

*/

function helpline(help)

{

	document.forms[form_name].helpbox.value = help_line[help];

}



/**

* Fix a bug involving the TextRange object. From

* http://www.frostjedi.com/terra/scripts/demo/caretBug.html

*/ 

function initInsertions() 

{

	var doc;



	if (document.forms[form_name])

	{

		doc = document;

	}

	else 

	{

		doc = opener.document;

	}



	var textarea = doc.forms[form_name].elements[text_name];



	if (is_ie && typeof(baseHeight) != 'number')

	{

		textarea.focus();

		baseHeight = doc.selection.createRange().duplicate().boundingHeight;



		if (!document.forms[form_name])

		{

			document.body.focus();

		}

	}

}



/**

* bbstyle

*/

function bbstyle(bbnumber)

{	

	if (bbnumber != -1)

	{

		bbfontstyle(bbtags[bbnumber], bbtags[bbnumber+1]);

	} 

	else 

	{

		insert_text('[*]');

		document.forms[form_name].elements[text_name].focus();

	}

}



/**

* Apply bbcodes

*/

function bbfontstyle(bbopen, bbclose)

{

	theSelection = false;



	var textarea = document.forms[form_name].elements[text_name];



	textarea.focus();



	if ((clientVer >= 4) && is_ie && is_win)

	{

		// Get text selection

		theSelection = document.selection.createRange().text;



		if (theSelection)

		{

			// Add tags around selection

			document.selection.createRange().text = bbopen + theSelection + bbclose;

			document.forms[form_name].elements[text_name].focus();

			theSelection = '';

			return;

		}

	}

	else if (document.forms[form_name].elements[text_name].selectionEnd && (document.forms[form_name].elements[text_name].selectionEnd - document.forms[form_name].elements[text_name].selectionStart > 0))

	{

		mozWrap(document.forms[form_name].elements[text_name], bbopen, bbclose);

		document.forms[form_name].elements[text_name].focus();

		theSelection = '';

		return;

	}

	

	//The new position for the cursor after adding the bbcode

	var caret_pos = getCaretPosition(textarea).start;

	var new_pos = caret_pos + bbopen.length;		



	// Open tag

	insert_text(bbopen + bbclose);



	// Center the cursor when we don't have a selection

	// Gecko and proper browsers

	if (!isNaN(textarea.selectionStart))

	{

		textarea.selectionStart = new_pos;

		textarea.selectionEnd = new_pos;

	}	

	// IE

	else if (document.selection)

	{

		var range = textarea.createTextRange(); 

		range.move("character", new_pos); 

		range.select();

		storeCaret(textarea);

	}



	textarea.focus();

	return;

}



/**

* Insert text at position

*/

function insert_text(text, spaces, popup)

{

	var textarea;

	

	if (!popup) 

	{

		textarea = document.forms[form_name].elements[text_name];

	} 

	else 

	{

		textarea = opener.document.forms[form_name].elements[text_name];

	}

	if (spaces) 

	{

		text = ' ' + text + ' ';

	}

	

	if (!isNaN(textarea.selectionStart))

	{

		var sel_start = textarea.selectionStart;

		var sel_end = textarea.selectionEnd;



		mozWrap(textarea, text, '');

		textarea.selectionStart = sel_start + text.length;

		textarea.selectionEnd = sel_end + text.length;

	}

	else if (textarea.createTextRange && textarea.caretPos)

	{

		if (baseHeight != textarea.caretPos.boundingHeight) 

		{

			textarea.focus();

			storeCaret(textarea);

		}



		var caret_pos = textarea.caretPos;

		caret_pos.text = caret_pos.text.charAt(caret_pos.text.length - 1) == ' ' ? caret_pos.text + text + ' ' : caret_pos.text + text;

	}

	else

	{

		textarea.value = textarea.value + text;

	}

	if (!popup) 

	{

		textarea.focus();

	}

}



/**

* Add inline attachment at position

*/

function attach_inline(index, filename)

{

	insert_text('[attachment=' + index + ']' + filename + '[/attachment]');

	document.forms[form_name].elements[text_name].focus();

}



/**

* Add quote text to message

*/

function addquote(post_id, username, l_wrote)

{

	var message_name = 'message_' + post_id;

	var theSelection = '';

	var divarea = false;



	if (l_wrote === undefined)

	{

		// Backwards compatibility

		l_wrote = 'wrote';

	}



	if (document.all)

	{

		divarea = document.all[message_name];

	}

	else

	{

		divarea = document.getElementById(message_name);

	}



	// Get text selection - not only the post content :(

	if (window.getSelection)

	{

		theSelection = window.getSelection().toString();

	}

	else if (document.getSelection)

	{

		theSelection = document.getSelection();

	}

	else if (document.selection)

	{

		theSelection = document.selection.createRange().text;

	}



	if (theSelection == '' || typeof theSelection == 'undefined' || theSelection == null)

	{

		if (divarea.innerHTML)

		{

			theSelection = divarea.innerHTML.replace(/<br>/ig, '\n');

			theSelection = theSelection.replace(/<br\/>/ig, '\n');

			theSelection = theSelection.replace(/&lt\;/ig, '<');

			theSelection = theSelection.replace(/&gt\;/ig, '>');

			theSelection = theSelection.replace(/&amp\;/ig, '&');

			theSelection = theSelection.replace(/&nbsp\;/ig, ' ');

		}

		else if (document.all)

		{

			theSelection = divarea.innerText;

		}

		else if (divarea.textContent)

		{

			theSelection = divarea.textContent;

		}

		else if (divarea.firstChild.nodeValue)

		{

			theSelection = divarea.firstChild.nodeValue;

		}

	}



	if (theSelection)

	{

		if (bbcodeEnabled)

		{

			insert_text('[quote="' + username + '"]' + theSelection + '[/quote]');

		}

		else

		{

			insert_text(username + ' ' + l_wrote + ':' + '\n');

			var lines = split_lines(theSelection);

			for (i = 0; i < lines.length; i++)

			{

				insert_text('> ' + lines[i] + '\n');

			}

		}

	}



	return;

}



function split_lines(text)

{

	var lines = text.split('\n');

	var splitLines = new Array();

	var j = 0;

	for(i = 0; i < lines.length; i++)

	{

		if (lines[i].length <= 80)

		{

			splitLines[j] = lines[i];

			j++;

		}

		else

		{

			var line = lines[i];

			do

			{

				var splitAt = line.indexOf(' ', 80);

				

				if (splitAt == -1)

				{

					splitLines[j] = line;

					j++;

				}

				else

				{

					splitLines[j] = line.substring(0, splitAt);

					line = line.substring(splitAt);

					j++;

				}

			}

			while(splitAt != -1);

		}

	}

	return splitLines;

}

/**

* From http://www.massless.org/mozedit/

*/

function mozWrap(txtarea, open, close)

{

	var selLength = (typeof(txtarea.textLength) == 'undefined') ? txtarea.value.length : txtarea.textLength;

	var selStart = txtarea.selectionStart;

	var selEnd = txtarea.selectionEnd;

	var scrollTop = txtarea.scrollTop;



	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;

	txtarea.selectionStart = selStart + open.length;

	txtarea.selectionEnd = selEnd + open.length;

	txtarea.focus();

	txtarea.scrollTop = scrollTop;



	return;

}



/**

* Insert at Caret position. Code from

* http://www.faqts.com/knowledge_base/view.phtml/aid/1052/fid/130

*/

function storeCaret(textEl)

{

	if (textEl.createTextRange)

	{

		textEl.caretPos = document.selection.createRange().duplicate();

	}

}



/**

* Color pallette

*/

function colorPalette(dir, width, height)

{

	var r = 0, g = 0, b = 0;

	var numberList = new Array(6);

	var color = '';



	numberList[0] = '00';

	numberList[1] = '40';

	numberList[2] = '80';

	numberList[3] = 'BF';

	numberList[4] = 'FF';



	document.writeln('<table cellspacing="1" cellpadding="0" border="0">');



	for (r = 0; r < 5; r++)

	{

		if (dir == 'h')

		{

			document.writeln('<tr>');

		}



		for (g = 0; g < 5; g++)

		{

			if (dir == 'v')

			{

				document.writeln('<tr>');

			}

			

			for (b = 0; b < 5; b++)

			{

				color = String(numberList[r]) + String(numberList[g]) + String(numberList[b]);

				document.write('<td bgcolor="#' + color + '" style="width: ' + width + 'px; height: ' + height + 'px;">');

				document.write('<a href="#" onclick="bbfontstyle(\'[color=#' + color + ']\', \'[/color]\'); return false;"><img src="images/spacer.gif" width="' + width + '" height="' + height + '" alt="#' + color + '" title="#' + color + '" /></a>');

				document.writeln('</td>');

			}



			if (dir == 'v')

			{

				document.writeln('</tr>');

			}

		}



		if (dir == 'h')

		{

			document.writeln('</tr>');

		}

	}

	document.writeln('</table>');

}





/**

* Caret Position object

*/

function caretPosition()

{

	var start = null;

	var end = null;

}





/**

* Get the caret position in an textarea

*/

function getCaretPosition(txtarea)

{

	var caretPos = new caretPosition();

	

	// simple Gecko/Opera way

	if(txtarea.selectionStart || txtarea.selectionStart == 0)

	{

		caretPos.start = txtarea.selectionStart;

		caretPos.end = txtarea.selectionEnd;

	}

	// dirty and slow IE way

	else if(document.selection)

	{

	

		// get current selection

		var range = document.selection.createRange();



		// a new selection of the whole textarea

		var range_all = document.body.createTextRange();

		range_all.moveToElementText(txtarea);

		

		// calculate selection start point by moving beginning of range_all to beginning of range

		var sel_start;

		for (sel_start = 0; range_all.compareEndPoints('StartToStart', range) < 0; sel_start++)

		{		

			range_all.moveStart('character', 1);

		}

	

		txtarea.sel_start = sel_start;

	

		// we ignore the end value for IE, this is already dirty enough and we don't need it

		caretPos.start = txtarea.sel_start;

		caretPos.end = txtarea.sel_start;			

	}



	return caretPos;

}
posting smilies:

Código: Selecionar todos

<!-- INCLUDE simple_header.html -->

<script type="text/javascript">
// <![CDATA[
	var form_name = 'postform';
	var text_name = 'message';
// ]]>
</script>
<script type="text/javascript" src="{T_TEMPLATE_PATH}/editor.js"></script>

<h2>{L_SMILIES}</h2>
<div class="panel">
	<div class="inner"><span class="corners-top"><span></span></span>
		<!-- BEGIN smiley --> 
			<!-- IF S_WYSIWYG_SHOW --><a href="#" onclick="opener.AddSmileyIcon('{SITE_FULL_URL}{smiley.SMILEY_IMG}','{smiley.SMILEY_CODE}'); return false;"><!-- ELSE --><a href="#" onclick="insert_text('{smiley.A_SMILEY_CODE}', true, true); return false;"><!-- ENDIF --><img src="{smiley.SMILEY_IMG}" width="{smiley.SMILEY_WIDTH}" height="{smiley.SMILEY_HEIGHT}" alt="{smiley.SMILEY_CODE}" title="{smiley.SMILEY_DESC}" /></a> 
		<!-- END smiley	-->
	
	<span class="corners-bottom"><span></span></span></div>
</div>
<div>{PAGINATION}</div>
<a  href="#" onclick="window.close(); return false;">{L_CLOSE_WINDOW}</a>

<!-- INCLUDE simple_footer.html -->

Re: Almsamim WYSIWYG + supernova = bug nos smilies

Enviado: 02 Set 2011, 00:52
por _Vinny_
Em posting_smilies.html, localize:

Código: Selecionar todos

<!-- IF S_WYSIWYG_SHOW --><a href="#" onclick="opener.AddSmileyIcon('{SITE_FULL_URL}{smiley.SMILEY_IMG}','{smiley.SMILEY_CODE}'); return false;"><!-- ELSE --><a href="#" onclick="insert_text('{smiley.A_SMILEY_CODE}', true, true); return false;"><!-- ENDIF -->
Substitua por:

Código: Selecionar todos

<a href="#" onclick="insert_text('{smiley.A_SMILEY_CODE}', true, true); return false;">
Atualize o template do estilo.

Para fazer uma comparação, poste aqui o arquivo posting_smilies.html do Absolution.

Re: Almsamim WYSIWYG + supernova = bug nos smilies

Enviado: 02 Set 2011, 08:11
por FilipeGaio
continua com o mesmo problema...

segue o posting smilies do absolution...

PS: testei numa instalação limpa do phpbb só com essa mod e funcionou no supernova... copiei a pasta supernova limpa desse fórum para o fórum padrão e não funcionou...

Será que pode ser algum arquivo .php?

Segue o posting smilies do absolution:

Código: Selecionar todos

<!-- INCLUDE simple_header.html -->

<script type="text/javascript">
// <![CDATA[
	var form_name = 'postform';
	var text_name = 'message';
// ]]>
</script>
<script type="text/javascript" src="{T_TEMPLATE_PATH}/editor.js"></script>

<h2>{L_SMILIES}</h2>
<div class="panel">
	<div class="inner"><span class="corners-top"><span></span></span>
		<!-- BEGIN smiley --> 
			<!-- IF S_WYSIWYG_SHOW --><a href="#" onclick="initInsertions(); insert_text('{smiley.A_SMILEY_CODE}', true, true);opener.AddSmileyIcon('{SITE_FULL_URL}{smiley.SMILEY_IMG}','{smiley.SMILEY_CODE}'); return false;"><!-- ELSE --><a href="#" onclick="initInsertions(); insert_text('{smiley.A_SMILEY_CODE}', true, true); return false;"><!-- ENDIF --><img src="{smiley.SMILEY_IMG}" width="{smiley.SMILEY_WIDTH}" height="{smiley.SMILEY_HEIGHT}" alt="{smiley.SMILEY_CODE}" title="{smiley.SMILEY_DESC}" /></a> 
		<!-- END smiley	-->
	
	<span class="corners-bottom"><span></span></span></div>
</div>
<div>{PAGINATION}</div>
<a  href="#" onclick="window.close(); return false;">{L_CLOSE_WINDOW}</a>

<!-- INCLUDE simple_footer.html -->

Re: Almsamim WYSIWYG + supernova = bug nos smilies

Enviado: 05 Set 2011, 01:09
por _Vinny_
Poste aqui também o arquivo posting_editor da template do estilo.

Re: Almsamim WYSIWYG + supernova = bug nos smilies

Enviado: 05 Set 2011, 10:04
por FilipeGaio
Supernova:

Código: Selecionar todos

<script type="text/javascript">
// <![CDATA[
	onload_functions.push('apply_onkeypress_event()');
// ]]>
</script>

<fieldset class="fields1">
	<!-- IF ERROR --><p class="error">{ERROR}</p><!-- ENDIF -->

	<!-- IF S_PRIVMSGS and not S_SHOW_DRAFTS -->

		<div class="column1">
		<!-- IF S_ALLOW_MASS_PM -->
			<!-- IF .to_recipient -->
				<dl>
					<dt><label>{L_TO}:</label></dt>
					<dd>
						<!-- BEGIN to_recipient -->
							<!-- IF not to_recipient.S_FIRST_ROW and to_recipient.S_ROW_COUNT mod 2 eq 0 --></dd><dd><!-- ENDIF -->
							<!-- IF to_recipient.IS_GROUP --><a href="{to_recipient.U_VIEW}"><strong>{to_recipient.NAME}</strong></a>&nbsp;<!-- ELSE -->{to_recipient.NAME_FULL}&nbsp;<!-- ENDIF -->
							<!-- IF not S_EDIT_POST --><input type="submit" name="remove_{to_recipient.TYPE}[{to_recipient.UG_ID}]" value="x" class="button2" />&nbsp;<!-- ENDIF -->
						<!-- END to_recipient -->
					</dd>
				</dl>
			<!-- ENDIF -->
			<!-- IF .bcc_recipient -->
				<dl>
					<dt><label>{L_BCC}:</label></dt>
					<dd>
						<!-- BEGIN bcc_recipient -->
							<!-- IF not bcc_recipient.S_FIRST_ROW and bcc_recipient.S_ROW_COUNT mod 2 eq 0 --></dd><dd><!-- ENDIF -->
							<!-- IF bcc_recipient.IS_GROUP --><a href="{bcc_recipient.U_VIEW}"><strong>{bcc_recipient.NAME}</strong></a><!-- ELSE -->{bcc_recipient.NAME_FULL}&nbsp;<!-- ENDIF -->
							<!-- IF not S_EDIT_POST --><input type="submit" name="remove_{bcc_recipient.TYPE}[{bcc_recipient.UG_ID}]" value="x" class="button2" />&nbsp;<!-- ENDIF -->
						<!-- END bcc_recipient -->
					</dd>
				</dl>
			<!-- ENDIF -->
			<!-- IF not S_EDIT_POST -->
			<dl class="pmlist">
				<dt><textarea id="username_list" name="username_list" class="inputbox" cols="50" rows="2"></textarea></dt>
				<dd><span><a href="{U_FIND_USERNAME}" onclick="find_username(this.href); return false;">{L_FIND_USERNAME}</a></span></dd>
				<dd><input type="submit" name="add_to" value="{L_ADD}" class="button2" /></dd>
				<dd><input type="submit" name="add_bcc" value="{L_ADD_BCC}" class="button2" /></dd>
			</dl>
			<!-- ENDIF -->
		<!-- ELSE -->
			<dl>
				<dt><label for="username_list">{L_TO}:</label><!-- IF not S_EDIT_POST --><br /><span><a href="{U_FIND_USERNAME}" onclick="find_username(this.href); return false">{L_FIND_USERNAME}</a></span><!-- ENDIF --></dt>
				<!-- IF .to_recipient -->
					<dd>
						<!-- BEGIN to_recipient -->
							<!-- IF not to_recipient.S_FIRST_ROW and to_recipient.S_ROW_COUNT mod 2 eq 0 --></dd><dd><!-- ENDIF -->
							<!-- IF to_recipient.IS_GROUP --><a href="{to_recipient.U_VIEW}"><strong>{to_recipient.NAME}</strong></a><!-- ELSE -->{to_recipient.NAME_FULL}&nbsp;<!-- ENDIF -->
							<!-- IF not S_EDIT_POST --><input type="submit" name="remove_{to_recipient.TYPE}[{to_recipient.UG_ID}]" value="x" class="button2" />&nbsp;<!-- ENDIF -->
						<!-- END to_recipient -->
					</dd>
				<!-- ENDIF -->

				<!-- IF not S_EDIT_POST -->
				<dd><input class="inputbox" type="text" name="username_list" id="username_list" size="20" value="" /> <input type="submit" name="add_to" value="{L_ADD}" class="button2" /></dd>
				<!-- ENDIF -->
			</dl>
		<!-- ENDIF -->

		</div>

		<!-- IF S_GROUP_OPTIONS -->
			<div class="column2">
				<dl>
					<dd><label for="group_list">{L_USERGROUPS}:</label> <select name="group_list[]" id="group_list" multiple="multiple" size="4" class="inputbox">{S_GROUP_OPTIONS}</select></dd>
				</dl>
			</div>
		<!-- ENDIF -->

		<div class="clear"></div>

	<!-- ENDIF -->

	<!-- IF S_DELETE_ALLOWED -->
	<dl>
		<dt><label for="delete">{L_DELETE_POST}:</label></dt>
		<dd><label for="delete"><input type="checkbox" name="delete" id="delete" /> {L_DELETE_POST_WARN}</label></dd>
	</dl>
	<!-- ENDIF -->

	<!-- IF S_SHOW_TOPIC_ICONS or S_SHOW_PM_ICONS -->
	<dl>
		<dt><label for="icon">{L_ICON}:</label></dt>
		<dd>
			<label for="icon"><input type="radio" name="icon" id="icon" value="0" checked="checked" /> <!-- IF S_SHOW_TOPIC_ICONS -->{L_NO_TOPIC_ICON}<!-- ELSE -->{L_NO_PM_ICON}<!-- ENDIF --></label>
			<!-- BEGIN topic_icon --><label for="icon-{topic_icon.ICON_ID}"><input type="radio" name="icon" id="icon-{topic_icon.ICON_ID}" value="{topic_icon.ICON_ID}" {topic_icon.S_ICON_CHECKED} /><img src="{topic_icon.ICON_IMG}" width="{topic_icon.ICON_WIDTH}" height="{topic_icon.ICON_HEIGHT}" alt="" title="" /></label> <!-- END topic_icon -->
		</dd>
	</dl>
	<!-- ENDIF -->

	<!-- IF not S_PRIVMSGS and S_DISPLAY_USERNAME -->
	<dl style="clear: left;">
		<dt><label for="username">{L_USERNAME}:</label></dt>
		<dd><input type="text" tabindex="1" name="username" id="username" size="25" value="{USERNAME}" class="inputbox autowidth" /></dd>
	</dl>
	<!-- ENDIF -->

	<!-- IF S_POST_ACTION or S_PRIVMSGS or S_EDIT_DRAFT -->
	<dl style="clear: left;">
		<dt><label for="subject">{L_SUBJECT}:</label></dt>
		<dd><input type="text" name="subject" id="subject" size="45" maxlength="<!-- IF S_NEW_MESSAGE -->60<!-- ELSE -->64<!-- ENDIF -->" tabindex="2" value="{SUBJECT}{DRAFT_SUBJECT}" class="inputbox autowidth" /></dd>
	</dl>
	<!-- IF CAPTCHA_TEMPLATE and S_CONFIRM_CODE -->
		<!-- DEFINE $CAPTCHA_TAB_INDEX = 3 -->
		<!-- INCLUDE {CAPTCHA_TEMPLATE} -->
	<!-- ENDIF -->
	<!-- ENDIF -->

	<!-- INCLUDE wysiwyg.html -->
</fieldset>

<!-- IF $EXTRA_POSTING_OPTIONS eq 1 -->

	<!-- IF not S_SHOW_DRAFTS -->
		<span class="corners-bottom"><span></span></span></div>
	</div>
	<!-- ENDIF -->

	<!-- IF S_HAS_ATTACHMENTS -->
		<div class="panel bg2">
			<div class="inner"><span class="corners-top"><span></span></span>
			<h3>{L_POSTED_ATTACHMENTS}</h3>

			<fieldset class="fields2">

			<!-- BEGIN attach_row -->
			<dl>

				<dt><label for="comment_list_{attach_row.ASSOC_INDEX}">{L_FILE_COMMENT}:</label></dt>
				<dd><textarea name="comment_list[{attach_row.ASSOC_INDEX}]" id="comment_list_{attach_row.ASSOC_INDEX}" rows="1" cols="35" class="inputbox">{attach_row.FILE_COMMENT}</textarea></dd>
				<dd><a href="{attach_row.U_VIEW_ATTACHMENT}" class="{S_CONTENT_FLOW_END}">{attach_row.FILENAME}</a></dd>
				<dd style="margin-top: 5px;">
					<!-- IF S_INLINE_ATTACHMENT_OPTIONS --><input type="button" value="{L_PLACE_INLINE}" <!-- IF S_WYSIWYG_SHOW -->onclick="comm._HTML('[attachment={attach_row.ASSOC_INDEX}]', '[/attachment]','{attach_row.A_FILENAME}');"<!-- ELSE -->onclick="attach_inline({attach_row.ASSOC_INDEX}, '{attach_row.A_FILENAME}');"<!-- ENDIF --> class="button2" />&nbsp; <!-- ENDIF -->
					<input type="submit" name="delete_file[{attach_row.ASSOC_INDEX}]" value="{L_DELETE_FILE}" class="button2" />
				</dd>
			</dl>
			{attach_row.S_HIDDEN}
				<!-- IF not attach_row.S_LAST_ROW --><hr class="dashed" /><!-- ENDIF -->
			<!-- END attach_row -->

			</fieldset>

			<span class="corners-bottom"><span></span></span></div>
		</div>
	<!-- ENDIF -->

	<!-- IF not S_SHOW_DRAFTS and not $SIG_EDIT eq 1 -->
	<div class="panel bg2">
		<div class="inner"><span class="corners-top"><span></span></span>
		<fieldset class="submit-buttons">
			{S_HIDDEN_ADDRESS_FIELD}
			{S_HIDDEN_FIELDS}
			<!-- IF S_HAS_DRAFTS --><input type="submit" accesskey="d" tabindex="8" name="load" value="{L_LOAD_DRAFT}" class="button2" onclick="load_draft = true;" />&nbsp; <!-- ENDIF -->
			<!-- IF S_SAVE_ALLOWED --><input type="submit" accesskey="k" tabindex="7" name="save" value="{L_SAVE_DRAFT}" class="button2" />&nbsp; <!-- ENDIF -->
			<input type="submit" tabindex="5" name="preview" value="{L_PREVIEW}" class="button1"<!-- IF not S_PRIVMSGS --> onclick="document.getElementById('postform').action += '#preview';"<!-- ENDIF --> />&nbsp;
			<input type="submit" accesskey="s" tabindex="6" name="post" value="{L_SUBMIT}" class="button1 default-submit-action" />&nbsp;

		</fieldset>

		<span class="corners-bottom"><span></span></span></div>
	</div>
	<!-- ENDIF -->

	<!-- IF not S_PRIVMSGS and not S_SHOW_DRAFTS and not $SIG_EDIT eq 1 -->
		<div id="tabs">
			<ul>
				<li id="options-panel-tab" class="activetab"><a href="#tabs" onclick="subPanels('options-panel'); return false;"><span>{L_OPTIONS}</span></a></li>
				<!-- IF S_SHOW_ATTACH_BOX --><li id="attach-panel-tab"><a href="#tabs" onclick="subPanels('attach-panel'); return false;"><span>{L_ADD_ATTACHMENT}</span></a></li><!-- ENDIF -->
				<!-- IF S_SHOW_POLL_BOX || S_POLL_DELETE --><li id="poll-panel-tab"><a href="#tabs" onclick="subPanels('poll-panel'); return false;"><span>{L_ADD_POLL}</span></a></li><!-- ENDIF -->
			</ul>
		</div>
	<!-- ENDIF -->

	<!-- IF not S_SHOW_DRAFTS and not $SIG_EDIT eq 1 -->
	<div class="panel bg3" id="options-panel">
		<div class="inner"><span class="corners-top"><span></span></span>

		<fieldset class="fields1">
			<!-- IF S_BBCODE_ALLOWED -->
				<div><label for="disable_bbcode"><input type="checkbox" name="disable_bbcode" id="disable_bbcode"{S_BBCODE_CHECKED} /> {L_DISABLE_BBCODE}</label></div>
			<!-- ENDIF -->
			<!-- IF S_SMILIES_ALLOWED -->
				<div><label for="disable_smilies"><input type="checkbox" name="disable_smilies" id="disable_smilies"{S_SMILIES_CHECKED} /> {L_DISABLE_SMILIES}</label></div>
			<!-- ENDIF -->
			<!-- IF S_LINKS_ALLOWED -->
				<div><label for="disable_magic_url"><input type="checkbox" name="disable_magic_url" id="disable_magic_url"{S_MAGIC_URL_CHECKED} /> {L_DISABLE_MAGIC_URL}</label></div>
			<!-- ENDIF -->
			<!-- IF S_SIG_ALLOWED -->
				<div><label for="attach_sig"><input type="checkbox" name="attach_sig" id="attach_sig"{S_SIGNATURE_CHECKED} /> {L_ATTACH_SIG}</label></div>
			<!-- ENDIF -->
			<!-- IF S_NOTIFY_ALLOWED -->
				<div><label for="notify"><input type="checkbox" name="notify" id="notify"{S_NOTIFY_CHECKED} /> {L_NOTIFY_REPLY}</label></div>
			<!-- ENDIF -->
			<!-- IF S_LOCK_TOPIC_ALLOWED -->
				<div><label for="lock_topic"><input type="checkbox" name="lock_topic" id="lock_topic"{S_LOCK_TOPIC_CHECKED} /> {L_LOCK_TOPIC}</label></div>
			<!-- ENDIF -->
			<!-- IF S_LOCK_POST_ALLOWED -->
				<div><label for="lock_post"><input type="checkbox" name="lock_post" id="lock_post"{S_LOCK_POST_CHECKED} /> {L_LOCK_POST} [{L_LOCK_POST_EXPLAIN}]</label></div>
			<!-- ENDIF -->

			<!-- IF S_TYPE_TOGGLE or S_TOPIC_TYPE_ANNOUNCE or S_TOPIC_TYPE_STICKY -->
			<hr class="dashed" />
			<!-- ENDIF -->

			<!-- IF S_TYPE_TOGGLE -->
			<dl>
				<dt><label for="topic_type-0"><!-- IF S_EDIT_POST -->{L_CHANGE_TOPIC_TO}<!-- ELSE -->{L_POST_TOPIC_AS}<!-- ENDIF -->:</label></dt>
				<dd><!-- BEGIN topic_type --><label for="topic_type-{topic_type.VALUE}"><input type="radio" name="topic_type" id="topic_type-{topic_type.VALUE}" value="{topic_type.VALUE}"{topic_type.S_CHECKED} />{topic_type.L_TOPIC_TYPE}</label> <!-- END topic_type --></dd>
			</dl>
			<!-- ENDIF -->

			<!-- IF S_TOPIC_TYPE_ANNOUNCE or S_TOPIC_TYPE_STICKY -->
			<dl>
				<dt><label for="topic_time_limit">{L_STICK_TOPIC_FOR}:</label></dt>
				<dd><label for="topic_time_limit"><input type="text" name="topic_time_limit" id="topic_time_limit" size="3" maxlength="3" value="{TOPIC_TIME_LIMIT}" class="inputbox autowidth" /> {L_DAYS}</label></dd>
				<dd>{L_STICK_TOPIC_FOR_EXPLAIN}</dd>
			</dl>
			<!-- ENDIF -->

			<!-- IF S_EDIT_REASON -->
			<dl>
				<dt><label for="edit_reason">{L_EDIT_REASON}:</label></dt>
				<dd><input type="text" name="edit_reason" id="edit_reason" value="{EDIT_REASON}" class="inputbox" /></dd>
			</dl>
			<!-- ENDIF -->
		</fieldset>
		<!-- ENDIF -->

<!-- ENDIF -->
Absolution

Código: Selecionar todos

<script type="text/javascript">
// <![CDATA[
	onload_functions.push('apply_onkeypress_event()');
// ]]>
</script>

<fieldset class="fields1">
	<!-- IF ERROR --><p class="error">{ERROR}</p><!-- ENDIF -->

	<!-- IF S_PRIVMSGS and not S_SHOW_DRAFTS -->

		<div class="column1">
		<!-- IF S_ALLOW_MASS_PM -->
			<!-- IF .to_recipient -->
				<dl>
					<dt><label>{L_TO}:</label></dt>
					<dd>
						<!-- BEGIN to_recipient -->
							<!-- IF not to_recipient.S_FIRST_ROW and to_recipient.S_ROW_COUNT mod 2 eq 0 --></dd><dd><!-- ENDIF -->
							<!-- IF to_recipient.IS_GROUP --><a href="{to_recipient.U_VIEW}"><strong>{to_recipient.NAME}</strong></a>&nbsp;<!-- ELSE -->{to_recipient.NAME_FULL}&nbsp;<!-- ENDIF -->
							<!-- IF not S_EDIT_POST --><input type="submit" name="remove_{to_recipient.TYPE}[{to_recipient.UG_ID}]" value="x" class="button2" />&nbsp;<!-- ENDIF -->
						<!-- END to_recipient -->
					</dd>
				</dl>
			<!-- ENDIF -->
			<!-- IF .bcc_recipient -->
				<dl>
					<dt><label>{L_BCC}:</label></dt>
					<dd>
						<!-- BEGIN bcc_recipient -->
							<!-- IF not bcc_recipient.S_FIRST_ROW and bcc_recipient.S_ROW_COUNT mod 2 eq 0 --></dd><dd><!-- ENDIF -->
							<!-- IF bcc_recipient.IS_GROUP --><a href="{bcc_recipient.U_VIEW}"><strong>{bcc_recipient.NAME}</strong></a><!-- ELSE -->{bcc_recipient.NAME_FULL}&nbsp;<!-- ENDIF -->
							<!-- IF not S_EDIT_POST --><input type="submit" name="remove_{bcc_recipient.TYPE}[{bcc_recipient.UG_ID}]" value="x" class="button2" />&nbsp;<!-- ENDIF -->
						<!-- END bcc_recipient -->
					</dd>
				</dl>
			<!-- ENDIF -->
			<!-- IF not S_EDIT_POST -->
			<dl class="pmlist">
				<dt><textarea id="username_list" name="username_list" class="inputbox" cols="50" rows="2"></textarea></dt>
				<dd><span><a href="{U_FIND_USERNAME}" onclick="find_username(this.href); return false;">{L_FIND_USERNAME}</a></span></dd>
				<dd><input type="submit" name="add_to" value="{L_ADD}" class="button2" /></dd>
				<dd><input type="submit" name="add_bcc" value="{L_ADD_BCC}" class="button2" /></dd>
			</dl>
			<!-- ENDIF -->
		<!-- ELSE -->
			<dl>
				<dt><label for="username_list">{L_TO}:</label><!-- IF not S_EDIT_POST --><br /><span><a href="{U_FIND_USERNAME}" onclick="find_username(this.href); return false">{L_FIND_USERNAME}</a></span><!-- ENDIF --></dt>
				<!-- IF .to_recipient -->
					<dd>
						<!-- BEGIN to_recipient -->
							<!-- IF not to_recipient.S_FIRST_ROW and to_recipient.S_ROW_COUNT mod 2 eq 0 --></dd><dd><!-- ENDIF -->
							<!-- IF to_recipient.IS_GROUP --><a href="{to_recipient.U_VIEW}"><strong>{to_recipient.NAME}</strong></a><!-- ELSE -->{to_recipient.NAME_FULL}&nbsp;<!-- ENDIF -->
							<!-- IF not S_EDIT_POST --><input type="submit" name="remove_{to_recipient.TYPE}[{to_recipient.UG_ID}]" value="x" class="button2" />&nbsp;<!-- ENDIF -->
						<!-- END to_recipient -->
					</dd>
				<!-- ENDIF -->

				<!-- IF not S_EDIT_POST -->
				<dd><input class="inputbox" type="text" name="username_list" id="username_list" size="20" value="" /> <input type="submit" name="add_to" value="{L_ADD}" class="button2" /></dd>
				<!-- ENDIF -->
			</dl>
		<!-- ENDIF -->

		</div>

		<!-- IF S_GROUP_OPTIONS -->
			<div class="column2">
				<dl>
					<dd><label for="group_list">{L_USERGROUPS}:</label> <select name="group_list[]" id="group_list" multiple="multiple" size="4" class="inputbox">{S_GROUP_OPTIONS}</select></dd>
				</dl>
			</div>
		<!-- ENDIF -->

		<div class="clear"></div>

	<!-- ENDIF -->

	<!-- IF S_DELETE_ALLOWED -->
	<dl>
		<dt><label for="delete">{L_DELETE_POST}:</label></dt>
		<dd><label for="delete"><input type="checkbox" name="delete" id="delete" /> {L_DELETE_POST_WARN}</label></dd>
	</dl>
	<!-- ENDIF -->

	<!-- IF S_SHOW_TOPIC_ICONS or S_SHOW_PM_ICONS -->
	<dl>
		<dt><label for="icon"><span style="color: #333333;">{L_ICON}:</span></label></dt>
		<dd>
			<label for="icon"><input type="radio" name="icon" id="icon" value="0" checked="checked" /> <!-- IF S_SHOW_TOPIC_ICONS -->{L_NO_TOPIC_ICON}<!-- ELSE --><span style="color: #036;">{L_NO_PM_ICON}</span><!-- ENDIF --></label>
			<!-- BEGIN topic_icon --><label for="icon-{topic_icon.ICON_ID}"><input type="radio" name="icon" id="icon-{topic_icon.ICON_ID}" value="{topic_icon.ICON_ID}" {topic_icon.S_ICON_CHECKED} /><img src="{topic_icon.ICON_IMG}" width="{topic_icon.ICON_WIDTH}" height="{topic_icon.ICON_HEIGHT}" alt="" title="" /></label> <!-- END topic_icon -->
		</dd>
	</dl>
	<!-- ENDIF -->

	<!-- IF not S_PRIVMSGS and S_DISPLAY_USERNAME -->
	<dl style="clear: left;">
		<dt><label for="username">{L_USERNAME}:</label></dt>
		<dd><input type="text" tabindex="1" name="username" id="username" size="25" value="{USERNAME}" class="inputbox autowidth" /></dd>
	</dl>
	<!-- ENDIF -->

	<!-- IF S_POST_ACTION or S_PRIVMSGS or S_EDIT_DRAFT -->
	<dl style="clear: left;">
		<dt><label for="subject"><span style="color: #333333;">{L_SUBJECT}:</span></label></dt>
		<dd><input type="text" name="subject" id="subject" size="45" maxlength="<!-- IF S_NEW_MESSAGE -->120<!-- ELSE -->64<!-- ENDIF -->" tabindex="2" value="{SUBJECT}{DRAFT_SUBJECT}" class="inputbox autowidth" /></dd>
	</dl>
	<!-- IF CAPTCHA_TEMPLATE and S_CONFIRM_CODE -->
		<!-- DEFINE $CAPTCHA_TAB_INDEX = 3 -->
		<!-- INCLUDE {CAPTCHA_TEMPLATE} -->
	<!-- ENDIF -->
	<!-- ENDIF -->

	<!-- INCLUDE wysiwyg.html -->
</fieldset>

<!-- IF $EXTRA_POSTING_OPTIONS eq 1 -->

	<!-- IF not S_SHOW_DRAFTS -->
		<span class="corners-bottom"><span></span></span></div>
	</div>
	<!-- ENDIF -->

	<!-- IF S_HAS_ATTACHMENTS -->
		<div class="panel bg2">
			<div class="inner"><span class="corners-top"><span></span></span>
			<h3>{L_POSTED_ATTACHMENTS}</h3>

			<fieldset class="fields2">

			<!-- BEGIN attach_row -->
			<dl>

				<dt><label for="comment_list_{attach_row.ASSOC_INDEX}">{L_FILE_COMMENT}:</label></dt>
				<dd><textarea name="comment_list[{attach_row.ASSOC_INDEX}]" id="comment_list_{attach_row.ASSOC_INDEX}" rows="1" cols="35" class="inputbox">{attach_row.FILE_COMMENT}</textarea></dd>
				<dd><a href="{attach_row.U_VIEW_ATTACHMENT}" class="{S_CONTENT_FLOW_END}">{attach_row.FILENAME}</a></dd>
				<dd style="margin-top: 5px;">
					<!-- IF S_INLINE_ATTACHMENT_OPTIONS --><input type="button" value="{L_PLACE_INLINE}" <!-- IF S_WYSIWYG_SHOW -->onclick="comm._HTML('[attachment={attach_row.ASSOC_INDEX}]', '[/attachment]','{attach_row.A_FILENAME}');"<!-- ELSE -->onclick="attach_inline({attach_row.ASSOC_INDEX}, '{attach_row.A_FILENAME}');"<!-- ENDIF --> class="button2" />&nbsp; <!-- ENDIF -->
					<input type="submit" name="delete_file[{attach_row.ASSOC_INDEX}]" value="{L_DELETE_FILE}" class="button2" />
				</dd>
			</dl>
			{attach_row.S_HIDDEN}
				<!-- IF not attach_row.S_LAST_ROW --><hr class="dashed" /><!-- ENDIF -->
			<!-- END attach_row -->

			</fieldset>

			<span class="corners-bottom"><span></span></span></div>
		</div>
	<!-- ENDIF -->

	<!-- IF not S_SHOW_DRAFTS and not $SIG_EDIT eq 1 -->
	<div class="panel bg2">
		<div class="inner"><span class="corners-top"><span></span></span>
		<fieldset class="submit-buttons">
			{S_HIDDEN_ADDRESS_FIELD}
			{S_HIDDEN_FIELDS}
			<!-- IF S_HAS_DRAFTS --><input type="submit" accesskey="d" tabindex="8" name="load" value="{L_LOAD}" class="button2" onclick="load_draft = true;" />&nbsp; <!-- ENDIF -->
			<!-- IF S_SAVE_ALLOWED --><input type="submit" accesskey="k" tabindex="7" name="save" value="{L_SAVE}" class="button2" />&nbsp; <!-- ENDIF -->
			<input type="submit" tabindex="5" name="preview" value="{L_PREVIEW}" class="button1"<!-- IF not S_PRIVMSGS --> onclick="document.getElementById('postform').action += '#preview';"<!-- ENDIF --> />&nbsp;
			<input type="submit" accesskey="s" tabindex="6" name="post" value="{L_SUBMIT}" class="button1 default-submit-action" />&nbsp;

		</fieldset>

		<span class="corners-bottom"><span></span></span></div>
	</div>
	<!-- ENDIF -->

	<!-- IF not S_PRIVMSGS and not S_SHOW_DRAFTS and not $SIG_EDIT eq 1 -->
		<div id="tabs">
			<ul>
				<li id="options-panel-tab" class="activetab"><a href="#tabs" onclick="subPanels('options-panel'); return false;"><span>{L_OPTIONS}</span></a></li>
				<!-- IF S_SHOW_ATTACH_BOX --><li id="attach-panel-tab"><a href="#tabs" onclick="subPanels('attach-panel'); return false;"><span>{L_ADD_ATTACHMENT}</span></a></li><!-- ENDIF -->
				<!-- IF S_SHOW_POLL_BOX || S_POLL_DELETE --><li id="poll-panel-tab"><a href="#tabs" onclick="subPanels('poll-panel'); return false;"><span>{L_ADD_POLL}</span></a></li><!-- ENDIF -->
			</ul>
		</div>
	<!-- ENDIF -->

	<!-- IF not S_SHOW_DRAFTS and not $SIG_EDIT eq 1 -->
	<div class="panel bg3" id="options-panel">
		<div class="inner"><span class="corners-top"><span></span></span>

		<fieldset class="fields1">
			<!-- IF S_BBCODE_ALLOWED -->
				<div><label for="disable_bbcode"><input type="checkbox" name="disable_bbcode" id="disable_bbcode"{S_BBCODE_CHECKED} /> {L_DISABLE_BBCODE}</label></div>
			<!-- ENDIF -->
			<!-- IF S_SMILIES_ALLOWED -->
				<div><label for="disable_smilies"><input type="checkbox" name="disable_smilies" id="disable_smilies"{S_SMILIES_CHECKED} /> {L_DISABLE_SMILIES}</label></div>
			<!-- ENDIF -->
			<!-- IF S_LINKS_ALLOWED -->
				<div><label for="disable_magic_url"><input type="checkbox" name="disable_magic_url" id="disable_magic_url"{S_MAGIC_URL_CHECKED} /> {L_DISABLE_MAGIC_URL}</label></div>
			<!-- ENDIF -->
			<!-- IF S_SIG_ALLOWED -->
				<div><label for="attach_sig"><input type="checkbox" name="attach_sig" id="attach_sig"{S_SIGNATURE_CHECKED} /> {L_ATTACH_SIG}</label></div>
			<!-- ENDIF -->
			<!-- IF S_NOTIFY_ALLOWED -->
				<div><label for="notify"><input type="checkbox" name="notify" id="notify"{S_NOTIFY_CHECKED} /> {L_NOTIFY_REPLY}</label></div>
			<!-- ENDIF -->
			<!-- IF S_LOCK_TOPIC_ALLOWED -->
				<div><label for="lock_topic"><input type="checkbox" name="lock_topic" id="lock_topic"{S_LOCK_TOPIC_CHECKED} /> {L_LOCK_TOPIC}</label></div>
			<!-- ENDIF -->
			<!-- IF S_LOCK_POST_ALLOWED -->
				<div><label for="lock_post"><input type="checkbox" name="lock_post" id="lock_post"{S_LOCK_POST_CHECKED} /> {L_LOCK_POST} [{L_LOCK_POST_EXPLAIN}]</label></div>
			<!-- ENDIF -->

			<!-- IF S_TYPE_TOGGLE or S_TOPIC_TYPE_ANNOUNCE or S_TOPIC_TYPE_STICKY -->
			<hr class="dashed" />
			<!-- ENDIF -->

			<!-- IF S_TYPE_TOGGLE -->
			<dl>
				<dt><label for="topic_type-0"><!-- IF S_EDIT_POST -->{L_CHANGE_TOPIC_TO}<!-- ELSE -->{L_POST_TOPIC_AS}<!-- ENDIF -->:</label></dt>
				<dd><!-- BEGIN topic_type --><label for="topic_type-{topic_type.VALUE}"><input type="radio" name="topic_type" id="topic_type-{topic_type.VALUE}" value="{topic_type.VALUE}"{topic_type.S_CHECKED} />{topic_type.L_TOPIC_TYPE}</label> <!-- END topic_type --></dd>
			</dl>
			<!-- ENDIF -->

			<!-- IF S_TOPIC_TYPE_ANNOUNCE or S_TOPIC_TYPE_STICKY -->
			<dl>
				<dt><label for="topic_time_limit">{L_STICK_TOPIC_FOR}:</label></dt>
				<dd><label for="topic_time_limit"><input type="text" name="topic_time_limit" id="topic_time_limit" size="3" maxlength="3" value="{TOPIC_TIME_LIMIT}" class="inputbox autowidth" /> {L_DAYS}</label></dd>
				<dd>{L_STICK_TOPIC_FOR_EXPLAIN}</dd>
			</dl>
			<!-- ENDIF -->

			<!-- IF S_EDIT_REASON -->
			<dl>
				<dt><label for="edit_reason">{L_EDIT_REASON}:</label></dt>
				<dd><input type="text" name="edit_reason" id="edit_reason" value="{EDIT_REASON}" class="inputbox" /></dd>
			</dl>
			<!-- ENDIF -->
		</fieldset>
		<!-- ENDIF -->

<!-- ENDIF -->

Re: Almsamim WYSIWYG + supernova = bug nos smilies

Enviado: 10 Set 2011, 03:24
por FilipeGaio
up... alguem tem alguma sugestão a mais ai?