News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

nCode Image Resizer

Started by vbgamer45, May 18, 2008, 01:43:55 PM

Previous topic - Next topic

problemwt2.0

Quote from: NIBOGO on April 01, 2009, 07:14:03 PM
You set the maximun height and width, If any image is bigger than that parameters will be resized but not the other images

tried nt working  :(

Features and Options/General/Max width/hight of posted pictures


i set it b not working please help me  :-[


problemwt2.0

Quote from: NIBOGO on April 02, 2009, 03:41:46 PM
Did you edit your Theme??

The mod only works on SMF Theme Default, you have to make the manual edit for your theme

well i'm using this theme on custom theme bro :P any other suggestion ?

-!¦[·ÃNÐ¥·]¦!-

Quote from: NIBOGO on April 01, 2009, 05:39:27 PM
Quote from: -!¦[·ÃNÐ¥·]¦!- on April 01, 2009, 01:59:08 PM
I have a problem, I installed everything perfectly, I reviewed the files manually, translated it into Spanish, copied ncode_imageresizer.js  to / Themes / default and configured it in Themes and Design, but not working, what happens?

Thanks!  ;)

Do you have to enable this mod in the admin panel and set the maximun width and height

I edit manually my own theme and copy ncode_imageresizer.js there, also in the admin panel, I selected 'Enlarge in same document' and 650width, but it doesn't work  :(
URL del foro: http://www.pupdd.com.ar/foro/
Theme usado: Mercury by  Bloc
Versión: SMF 1.1.11


-!¦[·ÃNÐ¥·]¦!-

Thanks for your help! But, how do I do that? Here is Subs.php

URL del foro: http://www.pupdd.com.ar/foro/
Theme usado: Mercury by  Bloc
Versión: SMF 1.1.11

hhy89

Max width of posted pictures (0 = disable)     
Max height of posted pictures (0 = disable)

will be 0
Seo4Smf 2.0 - Full Top10 Stats(full top10) - Aligned and Bilateral Child Boards(2li 3lü alt bölümler)
http://www.smfmod.com
http://destek.smfmod.com

-!¦[·ÃNÐ¥·]¦!-

URL del foro: http://www.pupdd.com.ar/foro/
Theme usado: Mercury by  Bloc
Versión: SMF 1.1.11

hhy89

Seo4Smf 2.0 - Full Top10 Stats(full top10) - Aligned and Bilateral Child Boards(2li 3lü alt bölümler)
http://www.smfmod.com
http://destek.smfmod.com

d0brin

I have a problem with this mod, when i post an image it is resized yes but nowhare i can see a button that on lick it will show me the full image size i think on hte discription of the mod was mentioned that it includes a button to restore the original size on click right?

Nibogo

Quote from: d0brin on April 21, 2009, 03:42:54 PM
I have a problem with this mod, when i post an image it is resized yes but nowhare i can see a button that on lick it will show me the full image size i think on hte discription of the mod was mentioned that it includes a button to restore the original size on click right?

Nop, you have a bar in the top of the image to restore the original size of the image if you select the option in the admin panel


hhy89

subs.php
array(
'tag' => 'img',
'type' => 'unparsed_content',
'parameters' => array(
'alt' => array('optional' => true),
'width' => array('optional' => true, 'value' => ' width="$1"', 'match' => '(\d+)'),
'height' => array('optional' => true, 'value' => ' height="$1"', 'match' => '(\d+)'),
),
'content' => '<img src="$1" alt="{alt}"{width}{height} border="0" onload="NcodeImageResizer.createOn(this);" class="bbc_img" />',
'validate' => create_function('&$tag, &$data, $disabled', '$data = strtr($data, array(\'<br />\' => \'\'));'),
'disabled_content' => '($1)',
),

replace
array(
'tag' => 'img',
'type' => 'unparsed_content',
'parameters' => array(
'alt' => array('optional' => true),
'width' => array('optional' => true, 'value' => ' width="$1"', 'match' => '(\d+)'),
'height' => array('optional' => true, 'value' => ' height="$1"', 'match' => '(\d+)'),
),
'content' => '<img src="$1" alt="{alt}"{width}{height} class="bbc_img" />',
'validate' => create_function('&$tag, &$data, $disabled', '$data = strtr($data, array(\'<br />\' => \'\'));'),
'disabled_content' => '($1)',
),

u do it but now it works only [ img] [ /img]
not work [ img width=xx height=xx] [ /img]
Seo4Smf 2.0 - Full Top10 Stats(full top10) - Aligned and Bilateral Child Boards(2li 3lü alt bölümler)
http://www.smfmod.com
http://destek.smfmod.com

claudio_o

#133
Not working here. :(
I'm using SMF 1.1.8 + TP with SMF default theme.
It says everything is installed successfully and I also manually checked all the modified files.

Themes/default/index.template.php has the nCode script section before the </head> tag so it's ok.
Sources/Subs.php also has the correct code I think.
Sources/ModSettings.php also ok. :(

Under Features and Options - Basic Features, Max width and Max height are 0 like suggested before.
What could be the problem?

EDIT
Ok, I found what's the problem (???).
If I translate Modifications.english.php nCode doesn't work. :-\

Here's my translated file Modifications.italian-utf8.php, what's wrong with it?
<?php
// Version: 1.1; Modifications

// --- Begin added code - Advanced Visual Verification ---
$txt['ncode_imageresizer_warning_small'] = 'Clicca su questa barra per vedere l\'immagine ingrandita.';
$txt['ncode_imageresizer_warning_filesize'] = 'L\'immagine &egrave; stata ridimensionata. Clicca su questa barra per ingrandirla. L\'immagine originale &egrave; grande %1$sx%2$s e pesa %3$sKB.';
$txt['ncode_imageresizer_warning_no_filesize'] = 'L\'immagine &egrave; stata ridimensionata. Clicca su questa barra per ingrandirla. L\'immagine originale &egrave; grande %1$sx%2$s.';
$txt['ncode_imageresizer_warning_fullsize'] = 'Clicca su questa barra per vedere l\'immagine ridimensionata.';
$txt['ncode_imageresizer_mode'] = 'Modalit&agrave; ridimensionamento';
$txt['ncode_imageresizer_original'] = 'Mantieni le dimensioni originali';
$txt['ncode_imageresizer_enlarge_same'] = 'Apri nella stessa pagina';
$txt['ncode_imageresizer_open_same'] = 'Apri nella stessa finestra';
$txt['ncode_imageresizer_open_new'] = 'Apri in una nuova finestra';
$txt['ncode_imageresizer_max_width'] = 'Larghezza massima';
$txt['ncode_imageresizer_max_height'] = 'Altezza massima<br /><span class="smalltext">Lascia vuoto per nessun limite.</span>';
// --- End added code ---

?>


EDIT 2
If I remove all the backslash (\') in my translation it starts to work again...

Ashdaw

Thank you for making this MOD available. I had issues with it but have sorted them out. I use a custom theme and it took me 15 mins to figure out what I had to do. I am not so well at the moment and all the words on screen have a little haze for me due to the flu :(

I did figure it out though and I am so pleased with the end result. :)
You are more than welcome to visit my site.
Greycastle

islam2hamy

Thank you , very good mod ,

Arabic translation :

// --- Begin added code - Advanced Visual Verification ---
$txt['ncode_imageresizer_warning_small'] = 'إضغط هنا لمشاهدة الصورة بحجمها الطبيعى.';
$txt['ncode_imageresizer_warning_filesize'] = 'هذه الصورة تم إعداة تحجيمها. إضغط على هذا الشريط لمشاهدتها بحجمها الاصلى. الحجم الاصلى للصورة هو %1$sx%2$s و حجم الملف هو %3$sKB.';
$txt['ncode_imageresizer_warning_no_filesize'] = 'هذه الصورة تم إعداة تحجيمها. إضغط على هذا الشريط لمشاهدتها بحجمها الاصلى. الحجم الاصلى للصورة هو %1$sx%2$s.';
$txt['ncode_imageresizer_warning_fullsize'] = 'إغط هنا لتصغير الصورة.';
$txt['ncode_imageresizer_mode'] = 'مود إعدادة تحجيم الصور';
$txt['ncode_imageresizer_original'] = 'الاحتفاظ بالحجم الطبيعى';
$txt['ncode_imageresizer_enlarge_same'] = 'تكبير فى نفس الصفحة';
$txt['ncode_imageresizer_open_same'] = 'فتح فى نفس النافذة';
$txt['ncode_imageresizer_open_new'] = 'فتح فى نافذة جديدة';
$txt['ncode_imageresizer_max_width'] = 'أقصى عرض';
$txt['ncode_imageresizer_max_height'] = 'أقصى إرتفاع<br /><span class="smalltext">اتركها فارغة اذا لم تكن تريد حد أقصى للارتفاع.</span>';
// --- End added code ---


please before put the translation in the file be sure that the file encode is UTF-8

Arabic Translator - Web Designer
My Mods / My Themes  //  GfxLand






Mack450

How do I make this work? Everything seems to be in order except for the index.template.php
www.atvsector.com

Powered by SMF


JackWise

Hi,

Congratulations for this nice mode.  ;)

One question,

How can I make the alert box smaller ?

JW

Advertisement: