News:

Wondering if this will always be free?  See why free is better.

Main Menu

nCode Image Resizer

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

Previous topic - Next topic

Jessica.

Quote from: jaisi on June 23, 2011, 01:15:23 PM
Please make this mod to 2.0 Gold  Also..... please

I have 2.0 Gold and had installed this mod without problems
Testing Zone - SMF 2.0.7, default Curve
School & Chat - phpBB3, over 170 mods installed, official live forum

I use the latest version of Chrome

phpBB: Forum = a section; Board = whole site
SMF: Forum = whole site; Board = a section

jaisi

could you share with us.....

Jessica.

all I did was emulate to the version 2.0 RC3 and I was able to install it. go to advanced at the bottom of Browse packages to do that

if 2.0 RC3 won't work try a different one until [Install Mod] appears :S
Testing Zone - SMF 2.0.7, default Curve
School & Chat - phpBB3, over 170 mods installed, official live forum

I use the latest version of Chrome

phpBB: Forum = a section; Board = whole site
SMF: Forum = whole site; Board = a section

jaisi

Its not working in 2.0 version please help me how to install this mod in 2.0 version

Jessica.

Testing Zone - SMF 2.0.7, default Curve
School & Chat - phpBB3, over 170 mods installed, official live forum

I use the latest version of Chrome

phpBB: Forum = a section; Board = whole site
SMF: Forum = whole site; Board = a section

Alpay


Barakk

I can install mod version 1.3.1 just fine in 2.0 RTM, but for some reason it doesn't do anything. Emulating "SMF 2.0 RC3" doesn't let me install the mod at all.
Configuration/Settings/Layout/"Max width/height of posted pictures" is set just fine.

Am I missing something obvious like an Enable button?

jaisi

Great its work Thanks for infirming

Dean313

Quote from: HunterP on March 25, 2011, 02:26:41 PM
Quote from: jaisi on March 25, 2011, 01:33:26 PM
same here doesn't work R5 could you please attaehed that pakage

I changed it, but it still wont work, any idea why?

MissyNL

Are you going to update it for 2.0 gold?
Sorry for my poor English, but i think it's probably better then your Dutch :)

luuuciano

Firebug shows an error:
NcodeImageResizer is not defined
index.php?action=unread;all;start=0()index....start=0 (línea 53)
[Interrumpir en este error] NcodeImageResizer.BBURL = "http://domain.com/Themes/default/images";
No me agradan los foros que no te dejan borrar TU PROPIO usuario, como por ejemplo smfsimple.com.
E incluso te mandan emails no solicitados, de los cuales, quizá, no puedas escapar porque NO te dejan posibilidad a deshabilitarlos (a menos que NO te tengan en su lista negra).

Help12345


HunterP

Quote from: Help12345 on September 26, 2011, 04:18:31 PM
work in smf 2.0.1 ?

If it does in 2.0, it works in 2.01.

If not, you should emulate version 2.0 in "Advanced" (in the Package Manager)

spikespiegel

I have nCode Image Resizer installed but it's not working. I already checked for the modified files, but they all have the correct code.

Here, the image that is not being resized:
http://forum.mghospedagem.com/sonhos-e-aspiracoes/teste-123/msg371/#msg371

Você que tem um site, seja um blog, fórum, portal, etc., faça parte da nossa Rede social de webmasters. Aqui você poderá divulgar seu site gratuitamente e também poderá conhecer outras pessoas.

Você também poderá baixar Templates para blogger gratuitamente.

spikespiegel

#494
Just as I expected, as the code was modified correctly during installation, nothing was wrong at all.


I suggest the developer to reconsider making usage instructions. Cause this mod isn't a good thing to work with if you don't know where to go after installing it.


Here, the instrunctions.


1 - After installing it, go to admin > features and options > general

NOTE: GENERALLLLLLLLLLL, don't do like many people here that are saying that you must click on layout tab, it's not layout tab, it's general tab.


2 - Find the part where you can adjust the width and height. Don't forget to configure the re-size option from the drop down box. Just remembering you that you can configure everything at the same page, admin > features and options > general


3 - You may have noticed some anger tone in my text. Well, after getting 2 days in a row, sleeping bad (only 4 hours), just to solve an issue of a single mod, and by the way, uninstalling it, installing other ones, seeing things don't work up,  then getting back to the same mod to re-install it, test it, edit the code, it's really frustrating. SERIOUSLY.

Você que tem um site, seja um blog, fórum, portal, etc., faça parte da nossa Rede social de webmasters. Aqui você poderá divulgar seu site gratuitamente e também poderá conhecer outras pessoas.

Você também poderá baixar Templates para blogger gratuitamente.

AMWebby

Quote from: InstilledBee on May 24, 2011, 04:03:41 AM
This mod seems to have problems on 1.1.13, the code edit on index.template.php is buggy.

The code edit:


echo '<!-- nCode Image Resizer -->
<script type="text/javascript" src="', $settings['default_theme_url'], '/ncode_imageresizer.js"></script>';

// What is the mode?
$mode = 'none';
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';
}

echo '
<script language="JavaScript" type="text/javascript"><!-- // -->
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>


is missing a semicolon on the preceeding line.

Anyways I don't know if the issue has been brought up already, or the problem only happened to me, but would like to let the mod author know regardless. :)
Is it missing a semi colon or an apostrophe followed by a semi colon?

This seems to be my problem installing this as it installs fine with the exception that I have to manually add the subs.php line but then it gives me an error loading index.template.php and the only way I can get out of that is to revert to the earlier version of index.template.php

I ask because I'm not a wizard coder and noticed that the preceding </script>'; was written like that, not </script>;

luuuciano

AMWebby, attach the whole file
No me agradan los foros que no te dejan borrar TU PROPIO usuario, como por ejemplo smfsimple.com.
E incluso te mandan emails no solicitados, de los cuales, quizá, no puedas escapar porque NO te dejan posibilidad a deshabilitarlos (a menos que NO te tengan en su lista negra).

remingtone

Quote from: budun on April 11, 2010, 11:43:31 AM
Quote from: ElectricSquid on September 13, 2009, 10:30:30 PM
I've been going thorough my site validating the XHTML and eliminating errors.
Thats when i found an error that nCode Image Resizer is creating.
The short version is that the attribute "onload" is invalid for XHTML 1.0 Transitional.

Here's what the hxxp:validator.w3.org [nonactive] says about this error...
Doctype:   XHTML 1.0 Transitional

Quote

Validation Output: 1 Error

there is no attribute X
You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).

This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.

How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.

Line 683, column 173: Attribute "onload" exists, but can not be used for this element.
...etal2.png" alt="" border="0" onload="NcodeImageResizer.createOn(this);" /></a>


The above quoted error is from a div tag located in a users sig, below is the full tag. But this same error happens on every pic that nCode resizes on the page. For some reason "onload" is not a correct attribute to use with XHTML 1.0 Transitional, which SMF uses.

    <div class="signature"><a href="hxxp:redneckfabrication.com [nonactive]" target="_blank"><img src="hxxp:redneckfabrication.com/images/RFmetal2.png [nonactive]" alt="" border="0" onload="NcodeImageResizer.createOn(this);" /></a></div>

So what do I use instead of onload?
How do we get around this and get correct with XHTML 1.0 Transitional?

Any solutions on this?
any ideas?

Cordwainer

#498
Hey, I have this problem. Any help?

EDIT: Wow, it seems like my problem is the exact opposite of many people in this thread. I want to get rid of the bar :P

Cordwainer


Advertisement: