Customizing SMF > Modifications and Packages

nCode Image Resizer [Now Supporting SMF 2.0 RC3 & 1.1.11]

(1/108) > >>

vbgamer45:
Link to mod

nCode Image Resizer 1.3 developed by live627, developed previously by NIBOGO, and originally created by m3talc0re

o nCode Image Resizer for posted images.
o The user can then click on a bar above the image to see the full image in either the same window, a new window or inside the forum itself (the normal "enlarge" method)
o You can set the max width and height.
o Simple edit for custom themes

Frequently asked Questions

There is no yellow bar! How do I fix that?

It works with default theme on 1.1.11 but no bar on custom themes.

The code snippet below should be appended to style.css on each custom theme you plan to use:


--- Code: ---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;
}

--- End code ---

TigerTails:
Great stuff, I've been needing something like this for a while.

Unfortunately I use a custom theme, and don't know how to make it work in this one!

Any help appreciated.

lonrot:
Okay, it works!

To enable this mod you must do this:

1) At > Features and Options > Basic Features > Leave 0 for Max width and Max height
2) At >" " > Layout and Options> Edit Resize Mode and width and lenght.
For example I placed 615 in the width field only.

The bad thing is that if you used image resize before, all the old posts would be already resized.
This mod only works for new posts.

Joomlamz:
translate Portuguese and brazilian

thank you


--- Code: ---<edit file>
$languagedir/Modifications.portuguese.php
</edit file>

<search for>
?>
</search for>

<add before>
// --- Begin added code - Advanced Visual Verification ---
$txt['ncode_imageresizer_warning_small'] = 'Clique para ver a barra esta imagem completa.';
$txt['ncode_imageresizer_warning_filesize'] = 'Esta imagem foi redimensionada. Clique para ver a barra esta imagem completa. A imagem original é calibrada% sx% 1 $ 2 $ s% 3 $ e pesa SKB.';
$txt['ncode_imageresizer_warning_no_filesize'] = 'Esta imagem foi redimensionada. Clique para ver a barra esta imagem completa. A imagem original é calibrada% sx% 1 $ 2 $ s.';
$txt['ncode_imageresizer_warning_fullsize'] = 'Clique para ver a barra esta pequena imagem.';
$txt['ncode_imageresizer_mode'] = 'Modo Reajustar';
$txt['ncode_imageresizer_original'] = 'Manter tamanho original';
$txt['ncode_imageresizer_enlarge_same'] = 'Aumentar no mesmo documento';
$txt['ncode_imageresizer_open_same'] = 'Abrir na mesma janela';
$txt['ncode_imageresizer_open_new'] = 'Abrir em uma nova janela';
$txt['ncode_imageresizer_max_width'] = 'Largura máxima';
$txt['ncode_imageresizer_max_height'] = 'Altura máxima<br /><span class="smalltext">Deixe em branco para não altura max.</span>';
// --- End added code ---

</add before>

<edit file>
$languagedir/Modifications.brazilian.php
</edit file>

<search for>
?>
</search for>

<add before>
// --- Begin added code - Advanced Visual Verification ---
$txt['ncode_imageresizer_warning_small'] = 'Clique para ver a barra esta imagem completa.';
$txt['ncode_imageresizer_warning_filesize'] = 'Esta imagem foi redimensionada. Clique para ver a barra esta imagem completa. A imagem original é calibrada% sx% 1 $ 2 $ s% 3 $ e pesa SKB.';
$txt['ncode_imageresizer_warning_no_filesize'] = 'Esta imagem foi redimensionada. Clique para ver a barra esta imagem completa. A imagem original é calibrada% sx% 1 $ 2 $ s.';
$txt['ncode_imageresizer_warning_fullsize'] = 'Clique para ver a barra esta pequena imagem.';
$txt['ncode_imageresizer_mode'] = 'Modo Reajustar';
$txt['ncode_imageresizer_original'] = 'Manter tamanho original';
$txt['ncode_imageresizer_enlarge_same'] = 'Aumentar no mesmo documento';
$txt['ncode_imageresizer_open_same'] = 'Abrir na mesma janela';
$txt['ncode_imageresizer_open_new'] = 'Abrir em uma nova janela';
$txt['ncode_imageresizer_max_width'] = 'Largura máxima';
$txt['ncode_imageresizer_max_height'] = 'Altura máxima<br /><span class="smalltext">Deixe em branco para não altura max.</span>';
// --- End added code ---

</add before>
--- End code ---

Arveles:
Translate to Turkish:

--- Code: ---<edit file>
$languagedir/Modifications.turkish.php
</edit file>

<search for>
?>
</search for>

<add before>
// --- Begin added code - Advanced Visual Verification ---
$txt['ncode_imageresizer_warning_small'] = 'Resmin gerçek boyutunu görmek için bu çubuğa tıklayın.';
$txt['ncode_imageresizer_warning_filesize'] = 'Bu resim yeniden boyutlandırıldı. Resmin gerçek boyutunu görmek için bu çubuğa tıklayın. Resimin orjinal ölçüleri %1$sx%2$s ve boyutu %3$sKB.';
$txt['ncode_imageresizer_warning_no_filesize'] = 'Bu resim yeniden boyutlandırıldı. Resmin gerçek boyutunu görmek için bu çubuğa tıklayın. Resimin orjinal ölçüleri %1$sx%2$s.';
$txt['ncode_imageresizer_warning_fullsize'] = 'Resmin küçük boyutunu görmek için bu çubuğa tıklayın.';
$txt['ncode_imageresizer_mode'] = 'Yeniden Boyutlandırma Modu';
$txt['ncode_imageresizer_original'] = 'Orjinal ölçüleri koru';
$txt['ncode_imageresizer_enlarge_same'] = 'Aynı sayfada genişlet';
$txt['ncode_imageresizer_open_same'] = 'Aynı pencerede aç';
$txt['ncode_imageresizer_open_new'] = 'Yeni pencerede aç';
$txt['ncode_imageresizer_max_width'] = 'Maksimum genişlik';
$txt['ncode_imageresizer_max_height'] = 'Maksimum yükseklik<br /><span class="smalltext">Yüksekliğe sınır koymamak için boş bırakın.</span>';
// --- End added code ---

</add before>
--- End code ---

thanks..

Navigation

[0] Message Index

[#] Next page

Go to full version