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

amlucent

#200
Quote from: Rohan_ on September 09, 2009, 01:57:33 AM
i checked the topic u provided .. i see the image is resizing .. everything seems fine

I edited the post and it seems that the user used the html code from the gallery instead of IMG tags.. so I fixed it.  There is no way that it could auto resize html images could it?

andrewjs18

This isn't working for me.

I'm running 2.0 RC 1.2

I set my max width & height in:

admin>features and options>general (800X600)

&

admin>features and options>layout (enlarge in same document 800X600)

please advise

Rohan_

Quote from: andrewjs18 on September 10, 2009, 11:17:56 PM
This isn't working for me.

I'm running 2.0 RC 1.2

I set my max width & height in:

admin>features and options>general (800X600)

&

admin>features and options>layout (enlarge in same document 800X600)

please advise
are you using a custom theme ? if yes them made the changes of index.template file to your theme's file manually :)
Proud To Be An Indian

ElectricSquid

#203
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 W3.org validator 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="http://redneckfabrication.com" target="_blank"><img src="http://redneckfabrication.com/images/RFmetal2.png" 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?

[PT]Snake

not working on my custom theme

a) for some reason my smf is resizing images already, even tho i have no image limits, is this normal?

b) after instaling (and modifying my index.template), there is no bar over the user images. I even tested creating a new post, still nothing.

any feedback?



Sabre™

Copy the .js file to your custom theme.
See if that helps.
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


mentar

Quote from: MissyNL on May 19, 2009, 03:27:38 PM
Hi.. love this mod!! here is the dutch translation:

// --- Begin added code - Advanced Visual Verification ---
$txt['ncode_imageresizer_warning_small'] = 'Klik deze titelbar om de volledige afbeeld te bekijken.';
$txt['ncode_imageresizer_warning_filesize'] = 'Deze afbeelding is verkleint. Klik de titelbar om de volledige afbeelding te zien. De originele afbeelding heeft een formaat van %1$sx%2$s and groote %3$sKB.';
$txt['ncode_imageresizer_warning_no_filesize'] = 'Deze afbeelding is verkleint. Klik de titelbar om de volledige afbeelding te zien. De originele afbeelding heeft een formaat van %1$sx%2$s.';
$txt['ncode_imageresizer_warning_fullsize'] = 'Klik deze titelbar om de kleine afbeelding te bekijken.';
$txt['ncode_imageresizer_mode'] = 'Resize Mode';
$txt['ncode_imageresizer_original'] = 'Behoud orignele grootte';
$txt['ncode_imageresizer_enlarge_same'] = 'Vergroot in het zelfde document';
$txt['ncode_imageresizer_open_same'] = 'Open in de zelfde venster';
$txt['ncode_imageresizer_open_new'] = 'Open in een nieuwe window';
$txt['ncode_imageresizer_max_width'] = 'Maximum breedte';
$txt['ncode_imageresizer_max_height'] = 'Maximum hoogte<br /><span class="smalltext">Laat leeg voor geen maximum hoogte.</span>';
// --- End added code ---

Heya, I don't want to be rude or anything, but the spelling is not really great...below the correct translation:


// --- Begin added code - Advanced Visual Verification ---
$txt['ncode_imageresizer_warning_small'] = 'Klik hier om het volledige formaat te zien.';
$txt['ncode_imageresizer_warning_filesize'] = 'Deze afbeelding is verkleind. Klik hier om het volledige formaat te zien. Het formaat van het origineel is %1$sx%2$s en is %3$sKB.';
$txt['ncode_imageresizer_warning_no_filesize'] = 'Deze afbeelding is verkleind. Klik hier om het volledige formaat te zien. Het formaat van het origineel is %1$sx%2$s.';
$txt['ncode_imageresizer_warning_fullsize'] = 'Klik hier om de kleinere afbeelding te zien.';
$txt['ncode_imageresizer_mode'] = 'Schalingsmodus';
$txt['ncode_imageresizer_original'] = 'Behoud originele grootte';
$txt['ncode_imageresizer_enlarge_same'] = 'Vergroot in hetzelfde venster';
$txt['ncode_imageresizer_open_same'] = 'Open in hetzelfde venster';
$txt['ncode_imageresizer_open_new'] = 'Open in nieuw venster';
$txt['ncode_imageresizer_max_width'] = 'Maximum breedte';
$txt['ncode_imageresizer_max_height'] = 'Maximum hoogte<br /><span class="smalltext">Laat leeg voor geen maximum.</span>';
// --- End added code ---


..Als je de zorgen van morgen vergelijkt met die van gisteren, valt het vandaag achteraf gezien eigenlijk nog wel mee..

[PT]Snake

Quote from: Sabre™ on October 14, 2009, 12:50:42 PM
Copy the .js file to your custom theme.
See if that helps.
still nothing. images are getting resized and all, but no link to open in new window.



mprayii

I was getting a lot of errors when installing this mod, finally after several uninstall / re-installs I think what fixed it was modding the template file of my theme PRIOR to installing the package - I have no idea why this worked, but it did. No errors in the logs.

However it seems that my default langauge folder/file doesnt get picked up in this mod - I must have to edit one of the files to point it correctly, I guess if I was told which file points to this and where in the file it does so I would be able to fix it.

Here is an example:

http://newenglandjeepz.org/forum/technical-discussion/extreme-hardkore-appliance-tech/msg74062/#new

Look at the picture and notice the "information" bar at the top of the pic, this is what I need to fix.

Thanks!

gbsothere

Have you tried placing an exact copy of Modifications.english.php (including this mod's edits) in your Theme's language folder (as well as in default's language folder)?
My apologies, but I am taking a break from accepting PM requests for support.  If I am not currently assisting you, please do not ask as long as this notice is posted.  Thank you.

I Don't Want To Grow Old Alone


It has been proven that Steely Dan reduces the occurrence of road rage, according to an independent study.



A reminder about admin / ftp passwords etc.

mprayii

#210
That would make sense, since I did created the language file in my theme and only added the nCode mode to it and it worked for the images, but messed everything else up (so I backtracked and deleted it).

the only thing about doing it that way is if I am no longer the admin for this board, It kind of leaves a gray area for anyone taking my place. Would rather just change the pointing link within the mod. If it can be done.

Astro1

Any idea on 2.0 RC2 compatibility? When?

صلاح الدين

we waiting this mod to work with rc2...it not working with IE 5 or 6 ...  :'( [/]

Pentaxian

Hi NIBOGO,

Could you please let us know if this mod will be available in 2.0 RC2 in the near future? As I administrate an photography forum this is a very important mod for me. I really love it and I am waiting to go to RC2 as soon as this mod is available.

So, your work is really appreciated.

Kindest,
Pentaxian

drhamza

Quote from: Pentaxian on November 12, 2009, 11:08:20 AM
Hi NIBOGO,

Could you please let us know if this mod will be available in 2.0 RC2 in the near future? As I administrate an photography forum this is a very important mod for me. I really love it and I am waiting to go to RC2 as soon as this mod is available.

So, your work is really appreciated.

Kindest,
Pentaxian


Pentaxian

Well, first things first! All the best with finishing your school!

drhamza


meko me


LG965

please update your mod for smf version 1.1.11

thanks guy!

Advertisement: