Página 1 de 1

Modificacion en posiciones de Emoticonos

Publicado: 26 Sep 2008, 21:47
por KH_KoRn
Versión de phpBB: 3.0.2
Tipo de phpBB: phpBB estandar, (tambien llamado Vanilla) phpBB2 o phpBB3
MODs Instalados: Si
Tu conocimiento: Conocimiento básico
Enlace del Foro: http://www.dytclan.com.ar

¿Qué recuerdas haber hecho en el foro antes de aparecer este error?


¿Qué has realizado para intentar resolver el problema?


Descripción y Mensaje
Hi, queria saber como puedo modificar eso, como veran la parte emoticonos se ve muy larga, me gustaria que haya un Scroll asi se ven todos los emoticonos ( Yase que existe la opcion de no mostrar emoticonos en el mensaje )

http://img215.imageshack.us/img215/8716 ... 11e143.jpg" onclick="window.open(this.href);return false;

Gracias ^^

Re: Modificacion en posiciones de Emoticonos

Publicado: 26 Sep 2008, 22:03
por KH_KoRn
No se ve la imagen, y no puedo editar.

Aca la imagen http://img516.imageshack.us/my.php?image=asdfzw8.png" onclick="window.open(this.href);return false;

Re: Modificacion en posiciones de Emoticonos

Publicado: 04 Oct 2008, 00:31
por KH_KoRn
:cry: no es que tenga apuro pero nadie aun me ayudo.... por favor necesito arreglar esto

Re: Modificacion en posiciones de Emoticonos

Publicado: 04 Oct 2008, 04:16
por mitch
Hace 10 minutos te iba a responder que no sabía (pues hace días busque y no encontré nada)... pero ocupé 5 minutos mas, pensé en algo, y logré esto...
Para plantillas basasdas en prosilver (la tuya).

En /styles/prosilver/template/posting_editor.html

Buscar:

Código: Seleccionar todo

		<!-- IF S_SMILIES_ALLOWED and .smiley -->
			<strong>{L_SMILIES}</strong><br />
			<!-- BEGIN smiley -->
				<a href="#" onclick="insert_text('{smiley.A_SMILEY_CODE}', true); return false;"><img src="{smiley.SMILEY_IMG}" width="{smiley.SMILEY_WIDTH}" height="{smiley.SMILEY_HEIGHT}" alt="{smiley.SMILEY_CODE}" title="{smiley.SMILEY_DESC}" /></a>
			<!-- END smiley -->
		<!-- ENDIF -->
		<!-- IF S_SHOW_SMILEY_LINK and S_SMILIES_ALLOWED-->
			<br /><a href="{U_MORE_SMILIES}" onclick="popup(this.href, 300, 350, '_phpbbsmilies'); return false;">{L_MORE_SMILIES}</a>
		<!-- ENDIF -->
Reemplazar por:

Código: Seleccionar todo

<!-- IF S_SMILIES_ALLOWED and .smiley -->
<iframe src="posting.php?mode=smilies" height="400"  width="200" name="emotiframe" frameborder=no></iframe>
<!-- ENDIF -->
(acá puedes cambiar el alto de 400 y el ancho de 200 por los valores que desees).

En /styles/prosilver/template/posting_smilies.html

Buscar:

Código: Seleccionar todo

			<a href="#" onclick="insert_text('{smiley.A_SMILEY_CODE}', true, true); return false;"><img src="{smiley.SMILEY_IMG}" width="{smiley.SMILEY_WIDTH}" height="{smiley.SMILEY_HEIGHT}" alt="{smiley.SMILEY_CODE}" title="{smiley.SMILEY_DESC}" /></a>


Reemplazar por:

Código: Seleccionar todo

			<a href="#" onclick="insert_text2('{smiley.A_SMILEY_CODE}'); return false;"><img src="{smiley.SMILEY_IMG}" width="{smiley.SMILEY_WIDTH}" height="{smiley.SMILEY_HEIGHT}" alt="{smiley.SMILEY_CODE}" title="{smiley.SMILEY_DESC}" /></a>


Buscar y borrar:

Código: Seleccionar todo

<a  href="#" onclick="window.close(); return false;">{L_CLOSE_WINDOW}</a>
En /styles/prosilver/template/editor.js

Buscar:

Código: Seleccionar todo

/**
* Add inline attachment at position
*/
Agregar ANTES:

Código: Seleccionar todo

/**
* Insertar emoticon con iframe (por mitch)
*/
function insert_text2(text)
{
	var textarea;
		textarea = parent.document.forms[form_name].elements[text_name];

		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;
	}
}
Limpiar caché, y en el foro presionar CONTROL+F5 (para limpiar el cache del navegador).

Aprovecho de dejar tambien algo para plantillas basadas en subsilver2

En /styles/subsilver2/template/posting_body.html

Buscar:

Código: Seleccionar todo

				<!-- BEGIN smiley -->
					<a href="#" onclick="insert_text('{smiley.A_SMILEY_CODE}', true); return false;" style="line-height: 20px;"><img src="{smiley.SMILEY_IMG}" width="{smiley.SMILEY_WIDTH}" height="{smiley.SMILEY_HEIGHT}" alt="{smiley.SMILEY_CODE}" title="{smiley.SMILEY_DESC}" hspace="2" vspace="2" /></a>
				<!-- END smiley -->
Reemplazar por:

Código: Seleccionar todo

<iframe src="posting.php?mode=smilies" height="400"  width="200" name="emotiframe" frameborder=no AllowTransparency></iframe>
(acá puedes cambiar el alto de 400 y el ancho de 200 por los valores que desees).

Buscar y borrar:

Código: Seleccionar todo

		<!-- IF S_SHOW_SMILEY_LINK -->
			<tr>
				<td align="center"><a class="nav" href="{U_MORE_SMILIES}" onclick="popup(this.href, 300, 350, '_phpbbsmilies'); return false;">{L_MORE_SMILIES}</a></td>
			</tr>
		<!-- ENDIF -->
En /styles/subsilver2/template/posting_smilies.html

Borrar todo su contenido, y dejar este:

Código: Seleccionar todo

<!-- INCLUDE simple_header2.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>
<!-- BEGIN smiley --> <a href="#" onclick="insert_text2('{smiley.A_SMILEY_CODE}'); return false;"><img src="{smiley.SMILEY_IMG}" width="{smiley.SMILEY_WIDTH}" height="{smiley.SMILEY_HEIGHT}" alt="{smiley.SMILEY_CODE}" title="{smiley.SMILEY_DESC}" hspace="2" vspace="2" /></a> <!-- END smiley -->
<!-- INCLUDE simple_footer.html -->
Crear un archivo en esta carpeta (template), llamado simple_header2.html, con este contenido:

Código: Seleccionar todo

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="{S_CONTENT_DIRECTION}" lang="{S_USER_LANG}" xml:lang="{S_USER_LANG}">
<head>
<meta http-equiv="content-type" content="text/html; charset={S_CONTENT_ENCODING}" />
<meta http-equiv="content-language" content="{S_USER_LANG}" />
<meta http-equiv="content-style-type" content="text/css" />
<meta http-equiv="imagetoolbar" content="no" />
<meta name="resource-type" content="document" />
<meta name="distribution" content="global" />
<meta name="copyright" content="2000, 2002, 2005, 2007 phpBB Group" />
<meta name="keywords" content="" />
<meta name="description" content="" />
{META}
<title>{SITENAME} &bull; <!-- IF S_IN_MCP -->{L_MCP} &bull; <!-- ELSEIF S_IN_UCP -->{L_UCP} &bull; <!-- ENDIF -->{PAGE_TITLE}</title>
<link rel="stylesheet" href="{T_STYLESHEET_LINK}" type="text/css" />
</head>
<body style="background-color: transparent;">
<a name="top"></a>
<div>

En /styles/subsilver2/template/editor.js

Buscar:

Código: Seleccionar todo

/**
* Add inline attachment at position
*/
Agregar ANTES:

Código: Seleccionar todo

/**
* Insertar emoticon con iframe (por mitch)
*/
function insert_text2(text)
{
	var textarea;
		textarea = parent.document.forms[form_name].elements[text_name];

		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;
	}
}
Limpiar caché, y en el foro presionar CONTROL+F5 (para limpiar el cache del navegador).

Re: Modificacion en posiciones de Emoticonos

Publicado: 04 Oct 2008, 21:52
por kilateszone
Gracias MITCH

Re: Modificacion en posiciones de Emoticonos

Publicado: 04 Oct 2008, 22:59
por KH_KoRn
Muchas gracias, pero eso pasa cuando hago una Respuesta normal, pero con Respuesta rapida no se hacen los cambios

Re: Modificacion en posiciones de Emoticonos

Publicado: 04 Oct 2008, 23:14
por KH_KoRn
Gracias ya pude. Solamente hay que abrir el archivo posting_qr_body.html y hacer las modificaciones de posting_editor.html como puso Mitch

Muchas Gracias Mitch ^^

Re: Modificacion en posiciones de Emoticonos

Publicado: 05 Oct 2008, 03:09
por karbiko
KH_KoRn, puedes subir una imagen de cómo te ha quedado y ver el cambio, plis

Re: Modificacion en posiciones de Emoticonos

Publicado: 05 Oct 2008, 13:11
por luffysombrerodepaja
Hola, a mí me gustaría hacer lo mismo, pero resulta que yo uso el theme RCGrey y no están esas líneas. ¿Qué puedo hacer?

Re: Modificacion en posiciones de Emoticonos

Publicado: 05 Oct 2008, 14:47
por luffysombrerodepaja
Solucionado XP Olviden elpost... aunque ahora tengo otro problema, pero para ese habro otro post. Gracias.

Re: Modificacion en posiciones de Emoticonos

Publicado: 29 Oct 2008, 10:05
por Darkman
Hola, he hecho las modificaciones de mitch, pero me queda algo raro.

Podéis verlo en la foto

¿qué podría hacer?

Saludos y gracias
smilies.png
smilies.png (80.29 KiB) Visto 2497 veces

Re: Modificacion en posiciones de Emoticonos

Publicado: 29 Oct 2008, 15:03
por BENDER
Eso por hacerle caso a mitch......jajajajja :jaja:

Naaa..mentira.....pero tu estilo no es prosilver!!! :shock:

Si no es......los cambios son diferentes.... :ops