[solucionado] Problema con nCode Image Resizer

Started by marko_andres, August 20, 2009, 12:15:51 AM

Previous topic - Next topic

marko_andres

Buenas a todos, se que ya parece el cuento de nunca acabar, pero si llego a postear alguna duda es porque acabe todas las posibilidades y aun asi no pude.

El asunto es que "nCode Image Resizer" no me reajusta el tamaño de las imagenes como debiera.

Se instalo sin problemas, es mas, revise:

- index.template.php
- Modifications.english.php
- ModSettings.php
- Subs.php
- y vi que el archivo "ncode_imageresizer.js" estuviese en "./Themes/default"

Todo Perfecto.

Lo traduje a Español con esta guia:

http://www.simplemachines.org/community/index.php?topic=240057.msg1548267#msg1548267


Ahora, para la parte de configuracion les adjunto las imagenes:






Lei tambien estos temas acerca de "nCode Image Resizer" pero ninguno realmente me sirvio

http://www.simplemachines.org/community/index.php?topic=312428.0

http://www.simplemachines.org/community/index.php?topic=314751.0

http://www.simplemachines.org/community/index.php?topic=298847.0

Espero que alguien me ayude, de antemano muchas gracias  :)

Version SMF: 2.0 RC3
Theme        : Inferno
Portal          : Simple Portal 2.3.2


Por un cambio de conciencia --> http://thezeitgeistmovement.com/

Arkangel

podrias poner un enlace de tu web que raro que no funcione segun lo que escribistes esta bien estas usando el theme default ?¿

marko_andres

gracias por responder Arkangel.

mi foro ahi --> www.chileunderground.cl/foro

Uso el theme DK-Theme y DarkDirge (esta por default)

Version SMF: 2.0 RC3
Theme        : Inferno
Portal          : Simple Portal 2.3.2


Por un cambio de conciencia --> http://thezeitgeistmovement.com/

Arkangel

bueno vi el codigo fuente y no encontre la linea que se tiene que modificar en el index.templante de tu theme el cual es :

<!-- nCode Image Resizer -->
<script type="text/javascript" src="', $settings['default_theme_url'], '/ncode_imageresizer.js"></script>
<style type="text/css">
<!--
table.ncode_imageresizer_warning, table.ncode_imageresizer_warning td
{
background-color: #fefee1; /* the bgcolor behind the text and image */
}
table.ncode_imageresizer_warning {
color: #000000; /* the font color */
border: 1px solid #CCCDCD; /* the border around the whole thing */
cursor: pointer;
}
table.ncode_imageresizer_warning td {
font-size: 10px;
vertical-align: middle;
text-decoration: none;
}

table.ncode_imageresizer_warning td.td1 {
padding: 5px;
}
-->
</style>';

// What is the mode?
if (isset($modSettings['ncode_imageresizer_mode']))
{
if ($modSettings['ncode_imageresizer_mode'] == 1)
$mode = 'enlarge';
elseif ($modSettings['ncode_imageresizer_mode'] == 2)
$mode = 'samewindow';
elseif ($modSettings['ncode_imageresizer_mode'] == 3)
$mode = 'newwindow';
else
$mode = 'none';
}
else
$mode = 'none';

echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
NcodeImageResizer.BBURL = "', $settings['images_url'], '";
NcodeImageResizer.MODE = "', $mode, '";
NcodeImageResizer.MAXWIDTH = "', empty($modSettings['ncode_imageresizer_max_width']) ? 0 : (int) $modSettings['ncode_imageresizer_max_width'], '";
NcodeImageResizer.MAXHEIGHT = "', empty($modSettings['ncode_imageresizer_max_height']) ? 0 : (int) $modSettings['ncode_imageresizer_max_height'], '";
vbphrase = new Array();
vbphrase[\'ncode_imageresizer_warning_small\'] = \'', $txt['ncode_imageresizer_warning_small'], '\';
vbphrase[\'ncode_imageresizer_warning_filesize\'] = \'', $txt['ncode_imageresizer_warning_filesize'], '\';
vbphrase[\'ncode_imageresizer_warning_no_filesize\'] = \'', $txt['ncode_imageresizer_warning_no_filesize'], '\';
vbphrase[\'ncode_imageresizer_warning_fullsize\'] = \'', $txt['ncode_imageresizer_warning_fullsize'], '\';
// ]]></script>
</head>


no encontre esa linea x ningun lado para agregarla es asi:

en tu index.templante.php de tu theme buskar </head>
reemplazar por el codigo anterior y listo.. resubir .. saludos

marko_andres

exelente, ahora funciona :P

pero me keda un problema, al ser Negro el Theme, no se visualizan las letras mira:



se pueden cambiar de color en ese Theme para que se pueda leer lo que dice??

muchas gracias  :D

Version SMF: 2.0 RC3
Theme        : Inferno
Portal          : Simple Portal 2.3.2


Por un cambio de conciencia --> http://thezeitgeistmovement.com/

WwW_®

modifica ésta parte...

table.ncode_imageresizer_warning td {
font-size: 10px;
vertical-align: middle;
text-decoration: none;
   }


color: #blablabla

table.ncode_imageresizer_warning td {
font-size: 10px;
color: #xxxxxx;
vertical-align: middle;
text-decoration: none;
   }

marko_andres


Version SMF: 2.0 RC3
Theme        : Inferno
Portal          : Simple Portal 2.3.2


Por un cambio de conciencia --> http://thezeitgeistmovement.com/

Arkangel

Quote from: marko_andres on August 21, 2009, 07:32:14 AM
eso en cada theme?

voi a probar ahora, muchas gracias.

ese codigo de letras esta dentro del codigo que pusistes en tu index templante no tienes que modificar en todos lados.. saludos

marko_andres

muchas gracias a todos los que me ayudaron.

Doi el Tema por Solucionado.

Version SMF: 2.0 RC3
Theme        : Inferno
Portal          : Simple Portal 2.3.2


Por un cambio de conciencia --> http://thezeitgeistmovement.com/

Advertisement: