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

infyquest



uffepuffe

#243
This mod is great and it solves a big issue for us. I do however have one big problem with it, it works fine for the deault theme but not att al for our "Oxygene" theme. I have moved the "ncode_imageresizer.js" to the ./Themes/oxygene/ aswell as edited the ./Themes/oxygene/index.template.php according to the instructions but I still don't get it to work with that template. The images just show up large size without the bar at the top like before I installed the mod.

There is no "Modifications.english.php" file for this theme to be edited...

Oh, and we're running 1.1.8!

Any suggestions?

U

nassatellite

this is for 2.0 RC2 için ne zaman güncelleyeceksiniz?

Pentaxian

Quote from: NIBOGO on December 08, 2009, 09:00:12 PM
Quote from: infyquest on December 08, 2009, 03:51:30 PM
this is for 2.0 RC2
the attachment...

Remove the package I don't give you the permission to distribute a new version

Are you waiting until people want to pay you for (a new version of) this mod?

Spoogs

People are busy and do have lives outside of smf... give the author sometime to get to it. Keep in mind he doesnt have to update if he doesnt feel like it and comments like that wont make him want to get to it any faster.

Nibogo

Quote from: Pentaxian on December 11, 2009, 03:49:46 PM

Are you waiting until people want to pay you for (a new version of) this mod?

No, I just want to keep the credits for create this mod so a official 2.0 RC2 will come when I have time to do it ;)

Quote from: Spoogs on December 11, 2009, 03:53:36 PM
People are busy and do have lives outside of smf... give the author sometime to get to it. Keep in mind he doesnt have to update if he doesnt feel like it and comments like that wont make him want to get to it any faster.

Thanks Spoogs, Nice explanation :)

dr.wills

http://movies-on-mediafire.com

Never dying collection of high definition mediafire movies link

nassatellite

ne zaman 2.0.RC2 için yayınlayacaksınız?

uffepuffe

Quote from: uffepuffe on December 11, 2009, 03:36:07 AM
This mod is great and it solves a big issue for us. I do however have one big problem with it, it works fine for the deault theme but not att al for our "Oxygene" theme. I have moved the "ncode_imageresizer.js" to the ./Themes/oxygene/ aswell as edited the ./Themes/oxygene/index.template.php according to the instructions but I still don't get it to work with that template. The images just show up large size without the bar at the top like before I installed the mod.

There is no "Modifications.english.php" file for this theme to be edited...

Oh, and we're running 1.1.8!

Any suggestions?

U

*bump*

wildebeast

Folks, somewhere a few posts ago, the mod author explained that he is finishing his schooling and will get to the updates when he has time - his schooling is a lot more important - give him time and have patience.

gbsothere

Quote from: uffepuffe on December 14, 2009, 08:57:04 AM
Quote from: uffepuffe on December 11, 2009, 03:36:07 AM
This mod is great and it solves a big issue for us. I do however have one big problem with it, it works fine for the deault theme but not att al for our "Oxygene" theme. I have moved the "ncode_imageresizer.js" to the ./Themes/oxygene/ aswell as edited the ./Themes/oxygene/index.template.php according to the instructions but I still don't get it to work with that template. The images just show up large size without the bar at the top like before I installed the mod.

There is no "Modifications.english.php" file for this theme to be edited...

Oh, and we're running 1.1.8!

Any suggestions?

U

*bump*


Just a thought: try moving a copy of the Modifications.english.php that is on your server (Themes/default/languages) into your custom theme's language folder, as well (Themes/oxygene/languages).  Worth a try.

And, as always, make sure that the language setting in your forum matches the extension of the language file you're using (if you're using utf8, for example).
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.

Cap. Price

#253
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 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?

AND?

any solution?, thankz.


SOLVED! :)

¡Gort! ¡Klaatu barada nikto!

eflanim

2.0 RC2 ne zaman yayınlanacak? Bekliyoruz :)

amlucent

Quote from: NIBOGO on December 08, 2009, 09:00:12 PM
Quote from: infyquest on December 08, 2009, 03:51:30 PM
this is for 2.0 RC2
the attachment...

Remove the package I don't give you the permission to distribute a new version

Can he release instructions on how to manually alter your existing package to work with RC2 opposed to redistributing the package?

motomaniacs

helo this mod also effect to my forum signature
how can this mod working without bugging the signature?

Arkino

#257
Bug time at SMF 1.1.11

./Sources/Subs.php

Find:
'content' => '<img src="$1" alt="" border="0" />',

But now at the new version is:
'content' => '<div class="codeheader">' . $txt['smf238'] . ':</div><div class="code">' . ($context['browser']['is_gecko'] ? '<pre style="margin-top: 0; display: inline;">$1</pre>' : '$1') . '</div>',

How should I to do for put this line at Subs if the line is diferent?
onload="NcodeImageResizer.createOn(this);" />',

Greetings

ffingers

actually that is the wrong lines...to fix it 1.1.11 (i have a lot of mods...dunno if an unmodded site has this issue...) but find this

array(
'tag' => 'img',
'type' => 'unparsed_content',
'content' => '<img src="$1" alt="{alt}"{width}{height} border="0" />',
'validate' => create_function('&$tag, &$data, $disabled', '
$data = strtr($data, array(\'<br />\' => \'\'));
if (strpos($data, \'http://\') !== 0 && strpos($data, \'https://\') !== 0)
$data = \'http://\' . $data;
'),
'disabled_content' => '($1)',
),


and replace it with this

array(
'tag' => 'img',
'type' => 'unparsed_content',
'content' => '<img src="$1" alt="{alt}"{width}{height} border="0" onload="NcodeImageResizer.createOn(this);"/>',
'validate' => create_function('&$tag, &$data, $disabled', '
$data = strtr($data, array(\'<br />\' => \'\'));
if (strpos($data, \'http://\') !== 0 && strpos($data, \'https://\') !== 0)
$data = \'http://\' . $data;
'),
'disabled_content' => '($1)',
),





ʟink

Those of you asking for this to be updated for RC2 - I just installed this on my RC2 forum and it worked fine; you just need to emulate "SMF 2.0" in the package manager to install.
Obedire est vivere, Vivere est obedire


Advertisement: