Página 1 de 1

Abvance bbcode 3.0.8 Redimensionar imagenes

Publicado: 13 Sep 2010, 05:46
por Makoto
bueno tenia el mod 3.0.7 instalado y el redimenzionar funcionaba perfectamente
al actualizar a la ver 3.0.8 no redimensiona las img u-u

cada vez que modifico los valores para las img al poner enviar vuelve a estar en 0

Imagen

Re: Abvance bbcode 3.0.8 Redimensionar imagenes

Publicado: 13 Sep 2010, 05:49
por leviatan21
Makoto escribió:bueno tenia el mod 3.0.7 instalado y el redimenzionar funcionaba perfectamente
al actualizar a la ver 3.0.8 no redimensiona las img u-u

cada vez que modifico los valores para las img al poner enviar vuelve a estar en 0

Imagen
Makoto :

Ya estoy enterado de este y otros BUGs, estamos trabajando en ellos, cuando estén solucionados y probados serán publicados en Titania -> FAQ

Si me acuerdo te aviso :mrgreen:

Re: Abvance bbcode 3.0.8 Redimensionar imagenes

Publicado: 13 Sep 2010, 06:19
por Makoto
ok creia que era por mi mala edicion u_u uff

bueno si no te acuerdas , creo que si te puedes acordar publicarlo en la seccion de descargas

pd. no funciona los emoticones en la respuesta rapida

Re: Abvance bbcode 3.0.8 Redimensionar imagenes

Publicado: 13 Sep 2010, 18:33
por leviatan21
Makoto escribió:bueno si no te acuerdas , creo que si te puedes acordar publicarlo en la seccion de descargas
Si bien no lo libero como un parche oficial, te pido que pruebes haciendo esto :

Abrir :
raíz/includes/acp/acp_abbcodes.php

Buscar :

Código: Seleccionar todo

		$config['ABBC3_MAX_IMG_WIDTH']		= (isset($config['ABBC3_MAX_IMG_WIDTH']))	? $config['ABBC3_MAX_IMG_WIDTH']	: ($config['img_max_width'])		? $config['img_max_width']			: 500;
		$config['ABBC3_MAX_IMG_HEIGHT']		= (isset($config['ABBC3_MAX_IMG_HEIGHT']))	? $config['ABBC3_MAX_IMG_HEIGHT']	: ($config['img_max_height'])		? $config['img_max_height']			: 0;
		$config['ABBC3_RESIZE_SIGNATURE']	= (isset($config['ABBC3_RESIZE_SIGNATURE']))? $config['ABBC3_RESIZE_SIGNATURE']	: 0;
		$config['ABBC3_MAX_SIG_WIDTH']		= (isset($config['ABBC3_MAX_SIG_WIDTH']))	? $config['ABBC3_MAX_SIG_WIDTH']	: ($config['max_sig_img_width'])	? $config['max_sig_img_width']		: 200;
		$config['ABBC3_MAX_SIG_HEIGHT']		= (isset($config['ABBC3_MAX_SIG_HEIGHT']))	? $config['ABBC3_MAX_SIG_HEIGHT']	: 0;
		$config['ABBC3_MAX_THUM_WIDTH']		= (isset($config['ABBC3_MAX_THUM_WIDTH']))	? $config['ABBC3_MAX_THUM_WIDTH']	: ($config['img_max_thumb_width'])	? $config['img_max_thumb_width']/2	: 200;
Reemplazar por :

Código: Seleccionar todo

		$config['ABBC3_MAX_IMG_WIDTH']		= (isset($config['ABBC3_MAX_IMG_WIDTH']))	? $config['ABBC3_MAX_IMG_WIDTH']	: ($config['img_max_width']			? $config['img_max_width']			: 500);
		$config['ABBC3_MAX_IMG_HEIGHT']		= (isset($config['ABBC3_MAX_IMG_HEIGHT']))	? $config['ABBC3_MAX_IMG_HEIGHT']	: ($config['img_max_height']		? $config['img_max_height']			: 0);
		$config['ABBC3_RESIZE_SIGNATURE']	= (isset($config['ABBC3_RESIZE_SIGNATURE']))? $config['ABBC3_RESIZE_SIGNATURE']	: 0;
		$config['ABBC3_MAX_SIG_WIDTH']		= (isset($config['ABBC3_MAX_SIG_WIDTH']))	? $config['ABBC3_MAX_SIG_WIDTH']	: ($config['max_sig_img_width']		? $config['max_sig_img_width']		: 200);
		$config['ABBC3_MAX_SIG_HEIGHT']		= (isset($config['ABBC3_MAX_SIG_HEIGHT']))	? $config['ABBC3_MAX_SIG_HEIGHT']	: 0;
		$config['ABBC3_MAX_THUM_WIDTH']		= (isset($config['ABBC3_MAX_THUM_WIDTH']))	? $config['ABBC3_MAX_THUM_WIDTH']	: ($config['img_max_thumb_width']	? $config['img_max_thumb_width']/2	: 200);

Re: Abvance bbcode 3.0.8 Redimensionar imagenes

Publicado: 14 Sep 2010, 04:52
por Makoto
con lo de la configuraciion del ACP ya se arreglo pero
en si no redimensiona las img en los mensajes del foro

edito: si redimensiona pero solo para los invitados, cuando uso una cuenta mi cuenta de administrador veoel mensaje con la img grande sin redimensionar

edito2: el problema es en IE por que en mozilla si se redimensiona

edito3:

cuenta de test
foro: http://www.colegio.hello-peru.net/foro/
cuenta: Prueba
contrasela: 1234567

Re: Abvance bbcode 3.0.8 Redimensionar imagenes

Publicado: 14 Sep 2010, 05:09
por leviatan21
Necesito ver y probar, por favor coloca uno o más enlaces a mensajes con imagenes grandes

Re: Abvance bbcode 3.0.8 Redimensionar imagenes

Publicado: 14 Sep 2010, 05:37
por Makoto

Código: Seleccionar todo

http://www.colegio.hello-peru.net/foro/noticias-novedades/imagen-grande-1-t12.html
http://www.colegio.hello-peru.net/foro/noticias-novedades/imagen-grande-2-t13.html

Re: Abvance bbcode 3.0.8 Redimensionar imagenes

Publicado: 14 Sep 2010, 06:06
por leviatan21
El problema es la respuesta rápida que tienes instalada.
Lo tienes configurado para que aparezca oculto y cuando lo hace detiene a todos los proceso de carga restantes.

Para solucionarlo, necesito decargarme ese MOD, indicame cual es y donde puedo bajarlo

Re: Abvance bbcode 3.0.8 Redimensionar imagenes

Publicado: 14 Sep 2010, 06:24
por Makoto
bueno el mod es el prime quick reply
http://www.absoluteanime.com/admin/mods.htm#quick_reply

con una previa modificacion para que sea utilizado con un boton

este es mi prime_quick_reply.html mas la modificacion de mitch q esta en guias "agregar boton a la respuesta rapida

Código: Seleccionar todo

<!-- IF QUICK_REPLY_ALLOWED -->
<script type="text/javascript">
// <![CDATA[
	var LA_TOO_FEW_CHARS	= "{LA_QUICK_REPLY_TOO_FEW_CHARS}";
	var LA_SHOW_OPTIONS		= "{LA_QUICK_REPLY_SHOW_OPTIONS}";
	var LA_HIDE_OPTIONS		= "{LA_QUICK_REPLY_HIDE_OPTIONS}";
	var LA_SHOW_QUICK_REPLY	= "{LA_QUICK_REPLY_SHOW}";
	var LA_HIDE_QUICK_REPLY	= "{LA_QUICK_REPLY_HIDE}";
	var QUICK_REPLY_COOKIE	= "{QUICK_REPLY_COOKIE_NAME}";
	<!-- IF QUICK_REPLY_POST_IDS -->
	var prime_post_ids		= [{QUICK_REPLY_POST_IDS}]; 
	<!-- IF PRIME_MULTI_QUOTE -->
	var LA_NONE_SELECTED	= "{LA_QUICK_REPLY_NO_QUOTES_SELECTED}";
	var LA_QUOTE_SELECTED	= "{LA_QUICK_REPLY_QUOTE_SELECTED}";
	<!-- ENDIF -->
	<!-- ENDIF -->

	// For editor.js
	var	form_name = 'postform';
	var	text_name = 'message';
// ]]>
</script>
<script type="text/javascript" src="{T_TEMPLATE_PATH}/editor.js" ></script>
<script type="text/javascript" src="{T_TEMPLATE_PATH}/prime_quick_reply.js" ></script>
<script type="text/javascript">
<!--
/**
 * Toggle the visibility of the qr box
 */
function toggle_quick_reply()
{
	if (document.getElementById('quick_reply'))
	{
		if (document.getElementById('quick_reply').style.display == 'none')
		{
			document.getElementById('quick_reply').style.display = 'block';
		}
		else
		{
			document.getElementById('quick_reply').style.display = 'none';
		}
	}
}

<!-- IF S_QR_RESIZE -->
/**
 * Resize a textbox
 * Original function by Disturbed One (http://www.hvmdesign.com/)
 */
function textbox_resize(pix)
{
	var box			= document.getElementById('message');
	var new_height	= (parseInt(box.style.height) ? parseInt(box.style.height) : 300) + pix;

	if (new_height > 0)
	{
		box.style.height = new_height + 'px';
	}

	return false;
}
<!-- ENDIF -->

if (<!-- IF S_QR_HIDE_BOX -->0<!-- ELSE -->1<!-- ENDIF -->)
{
	if (document.addEventListener)
	{
		document.addEventListener('DOMContentLoaded', toggle_quick_reply, false);
	}
	else
	{
		window.onload = function()
		{
			toggle_quick_reply();
		}
	}
}
//-->
</script>

<div id="quick_reply" style="width:100%;">
	<div class="panel" id="postingbox" style="padding-bottom:0;">
		<div class="inner"><span class="corners-top"><span></span></span>
		<h3><a name="toggle_quick_reply_options" id="toggle_quick_reply_options" class="down" style="float:right;clear:right;cursor:pointer;font-weight:normal;text-transform:none;<!-- IF not QUICK_REPLY_SHOW_FORM -->display:none;<!-- ENDIF -->" onclick="prime_quick_reply_toggle(this);"><!-- IF QUICK_REPLY_SHOW_OPTIONS -->{L_QUICK_REPLY_HIDE_OPTIONS}<!-- ELSE -->{L_QUICK_REPLY_SHOW_OPTIONS}<!-- ENDIF --></a><span style="color:#000;">{L_QUICKREPLY}</span></h3>
		<form name="postform" id="postform" method="post" action="{QUICK_REPLY_POST_ACTION}" onsubmit="return prime_quick_reply_check(this);"<!-- IF not QUICK_REPLY_SHOW_FORM --> style="display:none;"<!-- ENDIF -->>
		{S_FORM_TOKEN}
		<div class="postprofile" id="quick_reply_options" style="<!-- IF not QUICK_REPLY_SHOW_OPTIONS -->display:none;<!-- ENDIF -->margin-top:0;margin-bottom:0;float:right;">
			<dl>
				<!-- IF S_SUBJECT_ALLOWED --><dd><label style="white-space:normal;" for="toggle_quick_reply_subject"><input type="checkbox" name="toggle_quick_reply_subject" id="toggle_quick_reply_subject" style="height:1.5em;" onclick="prime_quick_reply_toggle(this);"<!-- IF QUICK_REPLY_SHOW_SUBJECT --> checked="checked"<!-- ENDIF --> /> {L_QUICK_REPLY_DISPLAY_SUBJECT}</label></dd><!-- ENDIF -->
				<!-- IF S_BBCODES_ALLOWED --><dd><label style="white-space:normal;" for="toggle_quick_reply_bbcodes"><input type="checkbox" name="toggle_quick_reply_bbcodes" id="toggle_quick_reply_bbcodes" style="height:1.5em;" onclick="prime_quick_reply_toggle(this);"<!-- IF QUICK_REPLY_SHOW_BBCODES --> checked="checked"<!-- ENDIF --> /> {L_QUICK_REPLY_DISPLAY_BBOCDES}</label></dd><!-- ENDIF -->
				<!-- IF S_SMILIES_ALLOWED --><dd><label style="white-space:normal;" for="toggle_quick_reply_smilies"><input type="checkbox" name="toggle_quick_reply_smilies" id="toggle_quick_reply_smilies" style="height:1.5em;" onclick="prime_quick_reply_toggle(this);"<!-- IF QUICK_REPLY_SHOW_SMILIES --> checked="checked"<!-- ENDIF --> /> {L_QUICK_REPLY_DISPLAY_SMILIES}</label></dd><!-- ENDIF -->
			<!-- IF QUICK_REPLY_POST_IDS and PRIME_MULTI_QUOTE -->
				<!-- IF S_QUOTE_ALLOWED --><dd><label style="white-space:normal;" for="quote_selected"><input type="checkbox" name="quote_selected" id="quote_selected" style="height:1.5em;" onclick="prime_quick_reply_quotes(this);" /> <span id="prime_quick_reply_none_selected">{L_QUICK_REPLY_QUOTE_SELECTED}</span></label></dd><!-- ENDIF -->
			<!-- ENDIF -->
				<!-- IF S_QUOTE_ALLOWED --><dd><label style="white-space:normal;" for="quote_last_msg"><input type="checkbox" name="quote_last_msg" id="quote_last_msg" style="height:1.5em;" onclick="prime_quick_reply_quotes(this);" /> {L_QUICK_REPLY_QUOTE_LAST_POST}</label></dd><!-- ENDIF -->
				<dd><hr /></dd>
				<!-- IF S_NOTIFY_ALLOWED --><dd><label style="white-space:normal;" for="notify"><input type="checkbox" name="notify" id="notify" style="height:1.5em;"{S_NOTIFY_CHECKED} /> {L_QUICK_REPLY_NOTIFY_REPLY}</label></dd><!-- ENDIF -->
				<!-- IF S_BBCODES_ALLOWED --><dd><label style="white-space:normal;" for="disable_bbcode"><input type="checkbox" name="disable_bbcode" id="disable_bbcode" style="height:1.5em;"{S_BBCODES_CHECKED} /> {L_QUICK_REPLY_DISABLE_BBCODE}</label></dd><!-- ENDIF -->
				<!-- IF S_SMILIES_ALLOWED --><dd><label style="white-space:normal;" for="disable_smilies"><input type="checkbox" name="disable_smilies" id="disable_smilies" style="height:1.5em;"{S_SMILIES_CHECKED} /> {L_QUICK_REPLY_DISABLE_SMILIES}</label></dd><!-- ENDIF -->
				<!-- IF S_LINKS_ALLOWED --><dd><label style="white-space:normal;" for="disable_magic_url"><input type="checkbox" name="disable_magic_url" id="disable_magic_url" style="height:1.5em;"{S_MAGIC_URL_CHECKED} /> {L_QUICK_REPLY_DISABLE_MAGIC_URL}</label></dd><!-- ENDIF -->
				<!-- IF S_SIG_ALLOWED --><dd><label style="white-space:normal;" for="attach_sig"><input type="checkbox" name="attach_sig" id="attach_sig" style="height:1.5em;"{S_SIGNATURE_CHECKED} /> {L_QUICK_REPLY_ATTACH_SIG}</label></dd><!-- ENDIF -->
				<!-- IF S_LOCK_TOPIC_ALLOWED --><dd><label style="white-space:normal;" for="lock_topic"><input type="checkbox" name="lock_topic" id="lock_topic" style="height:1.5em;"{S_LOCK_TOPIC_CHECKED} /> {L_LOCK_TOPIC}</label></dd><!-- ENDIF -->
			</dl>
		</div>
		<fieldset class="fields1" style="margin-bottom:0.5em;">
			<!-- IF not S_USER_LOGGED_IN --><div><label for="username" style="float:left;width:64px;line-height:1.3;position:relative;bottom:-2px;">{L_USERNAME}:</label><input type="text" tabindex="2" name="username" id="username" size="25" maxlength="30" class="inputbox" /></div><!-- ENDIF -->
			<!-- IF S_SUBJECT_ALLOWED --><div<!-- IF not QUICK_REPLY_SHOW_SUBJECT --> style="display:none;"<!-- ENDIF --> id="quick_reply_subject"><label for="subject" style="float:left;width:64px;line-height:1.3;position:relative;bottom:-2px;">{L_SUBJECT}:</label><input type="text" name="subject" id="subject" size="45" maxlength="64" tabindex="2" value="{QUICK_REPLY_SUBJECT}" class="inputbox" /></div><!-- ELSE --><input type="hidden" name="subject" id="subject" value="{QUICK_REPLY_SUBJECT}" /><!-- ENDIF -->
			<!-- IF S_BBCODES_ALLOWED --><div<!-- IF not QUICK_REPLY_SHOW_BBCODES --> style="display:none;"<!-- ENDIF --> id="quick_reply_bbcodes"><!-- INCLUDE posting_buttons.html --></div><!-- ENDIF -->
			<!-- IF S_SMILIES_ALLOWED --><div<!-- IF not QUICK_REPLY_SHOW_SMILIES --> style="display:none;"<!-- ENDIF --> id="quick_reply_smilies"><!-- 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 --><!-- IF S_SHOW_SMILEY_LINK --><a href="{U_MORE_SMILIES}" onclick="window.open('{U_MORE_SMILIES}', '_phpbbsmilies', 'HEIGHT=350,resizable=yes,scrollbars=yes,WIDTH=300'); return false;">{L_QUICK_REPLY_MORE_SMILIES}</a><!-- ENDIF --></div><!-- ENDIF -->
			<div id="quick_reply_message" style="clear:both;text-align:center;">
				<textarea name="message" id="message" rows="9" cols="76" tabindex="3" onchange="prime_quick_reply_quotes(this);" onselect="storeCaret(this); prime_quick_reply_quotes(this);" onclick="storeCaret(this); prime_quick_reply_quotes(this);" onkeyup="storeCaret(this); prime_quick_reply_quotes(this);" class="inputbox" style="width:98%;height:160px;"></textarea>
			</div>
			<!-- IF not S_USER_LOGGED_IN -->
				<!-- IF CAPTCHA_TEMPLATE and S_CONFIRM_CODE -->
					<!-- DEFINE $CAPTCHA_TAB_INDEX = 3 -->
					<!-- INCLUDE {CAPTCHA_TEMPLATE} -->
				<!-- ENDIF -->
			<!-- ENDIF -->
			<fieldset class="submit-buttons" style="margin-bottom:0;">
				{QUICK_REPLY_HIDDEN_FIELDS}
				<input type="submit" name="preview" tabindex="6" value="{L_PREVIEW}" class="button1" onclick="document.getElementById('postform').action += '#preview';" />&nbsp;
				<input type="submit" name="post" tabindex="5" value="{L_SUBMIT}" class="button1" accesskey="s" />
			</fieldset>
		</fieldset>
		</form>
		<div style="clear:both;height:1px;overflow:hidden;"></div>
		<span class="corners-bottom"><span></span></span></div>
	</div>
	<div style="clear:both;height:1px;overflow:hidden;"></div>
</div>
<!-- ENDIF -->

Re: Abvance bbcode 3.0.8 Redimensionar imagenes  Tema Solucionado

Publicado: 14 Sep 2010, 06:34
por leviatan21
En ese archivo :

Buscar :

Código: Seleccionar todo

if (<!-- IF S_QR_HIDE_BOX -->0<!-- ELSE -->1<!-- ENDIF -->)
{
   if (document.addEventListener)
   {
      document.addEventListener('DOMContentLoaded', toggle_quick_reply, false);
   }
   else
   {
      window.onload = function()
      {
         toggle_quick_reply();
      }
   }
}
Reemplazar por :

Código: Seleccionar todo

if (<!-- IF S_QR_HIDE_BOX -->0<!-- ELSE -->1<!-- ENDIF -->)
{
	onload_functions.push('toggle_quick_reply()');
}
Guardar los cambios, subir el archivo al servidor via FTP, y desde el ACP actualizar la Plantilla, y es muy probable que tengas que actualizar el navegador pulsando f5 dos veces en una página donde aparezca la respuesta rápida

Re: Abvance bbcode 3.0.8 Redimensionar imagenes

Publicado: 14 Sep 2010, 06:40
por Makoto
gracias se soluciono

Re: Abvance bbcode 3.0.8 Redimensionar imagenes

Publicado: 14 Sep 2010, 06:49
por leviatan21
Makoto escribió:gracias se soluciono
Genial !