vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - Image Resizer - Using nCode Script (https://vborg.vbsupport.ru/showthread.php?t=237650)

Seven Skins 02-06-2013 03:11 PM

I visted the site which is in your profile here and saw there are many javascripts running on your webpage it may be that one of them are causing conflict or bowser cache issue or html errors. Can you please send a link to the page where large image is posted. If not here then use the contact us form at my site.

BadgerDog 02-06-2013 04:40 PM

I think you might be right, but I don't remember adding or changing any JS code that would cause this to stop working, when it's been running fine for so many years ... :)

http://www.milsurps.com/showthread.php?t=42580

Thanks for checking...

Regards,
Doug

Seven Skins 02-06-2013 05:25 PM

After removing the line below from your webapge this hack seems to work properly.

HTML Code:

<script type="text/javascript" src="http://s.skimresources.com/js/16645X736133.skimlinks.js"></script>
.

BadgerDog 02-06-2013 06:14 PM

Quote:

Originally Posted by Seven Skins (Post 2402436)
After removing the line below from your webapge this hack seems to work properly.

HTML Code:

<script type="text/javascript" src="http://s.skimresources.com/js/16645X736133.skimlinks.js"></script>
.

That's interesting... :confused:

That's the Skimlinks service installed by vBulletin as an optionally revenue producing associate brand. I think it's been there for some time, but I'll check with vBulletin and SkimLinks to see why their JS has started acting up, affecting the Image Resizer ..

Thanks for looking into it partner... :up:

Regards,
Doug

Follw up: As a test, I removed the code and tested Resizer again. Yes, sometimes it worked, but other times it wouldn't present the second option to reduce the pic to smaller size. It always enlarges the pic, but it's after that it won't reduce it.

So, you think going to 1.6 of the code won't help with whatever conflict is happening?

Seven Skins 02-06-2013 06:55 PM

In 1.6 javascipt is almost the same so it may conflict.

In the head tag I see this: <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
This line making the IE browser go to quirks mode and may be causing this error.
Try removing the above code and see what happens.

PS. Clear cookies and temp file before testing.

.

BadgerDog 02-06-2013 07:18 PM

Quote:

Originally Posted by Seven Skins (Post 2402460)
In 1.6 javascipt is almost the same so it may conflict.

In the head tag I see this: <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
This line making the IE browser go to quirks mode and may be causing this error.
Try removing the above code and see what happens.

PS. Clear cookies and temp file before testing.

.

I see what you're referring to in headerinclude template, but that is vBulletin code that's always been there?

Quote:

<vb:if condition="$show['member']"><vb:else /><meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /></vb:if>
Should I really delete it?

I'm using FireFox 18.0.1 and I've tested the problem on IE10, and also Safari. It exists there as well, so you think removing this will help? I'll try it if you want me to...

Thanks for your help .. :)

Regards,
Doug

Seven Skins 02-06-2013 08:25 PM

Remove it and test the site ... you can always add the code back again.

As far as I know the code you posted is not default vbulletin code.

BadgerDog 02-07-2013 10:07 PM

Quote:

Originally Posted by Seven Skins (Post 2402474)
Remove it and test the site ... you can always add the code back again.

As far as I know the code you posted is not default vbulletin code.

Removed it and tested... still doesn't restore to small size, but always enlarges ...

Put code back since it didn't make any difference..

Regards,
Doug

tourajabbasi 02-11-2013 05:52 PM

doesnt work on 4.2 ... at least didnt work on mine

Seven Skins 02-11-2013 06:19 PM

Live demo: http://www.atoztalk.com/threads/2790...unrise-TV-show

Send the link to your site if need more help.

Alan_SP 02-12-2013 05:29 PM

Quote:

Originally Posted by tourajabbasi (Post 2403555)
doesnt work on 4.2 ... at least didnt work on mine

Works for me...

santor 02-12-2013 09:23 PM

nice hack but with backlink terrible..

tourajabbasi 02-13-2013 07:38 AM

Quote:

Originally Posted by Seven Skins (Post 2403569)
Live demo: http://www.atoztalk.com/threads/2790...unrise-TV-show

Send the link to your site if need more help.

www.petisland.ir

Demo (didn't work)
http://www.petisland.ir/thread711.html#post1289

Seven Skins 02-13-2013 05:51 PM

Quote:

Originally Posted by tourajabbasi (Post 2403937)

One of your script is altering the url of the image and because of that this hack is not working.

Normal image url sholud be: <img src="249.jpg" border="0" alt="" />

But on your website image url is: <img src="249.jpg" border="0" alt="Image Resizer" title="Image Resizer" />

Seven Skins 02-13-2013 05:53 PM

Quote:

Originally Posted by santor (Post 2403862)
nice hack but with backlink terrible..

It clearly says in the hack info that this hack will add a link to my site.
If you want the hack without backlink you can buy this from my website.

Thanks

tourajabbasi 02-14-2013 02:12 AM

1 Attachment(s)
Thanks.... It's working now... it has a conflict between your plugin and Add Alt Text to Linked Images GOLD VB4 by BOP5

how can I make them working together? because adding "Alt" is very useful for SEO.

I attached you the plugin ... can you take a look ?

Please

Seven Skins 02-14-2013 08:48 PM

I don't think we can combine these two hacks together. I will see if I can find some other script which can do what you want, but no promises.

BadgerDog 02-14-2013 08:59 PM

Quote:

Originally Posted by Seven Skins (Post 2403569)
Live demo: http://www.atoztalk.com/threads/2790...unrise-TV-show

Send the link to your site if need more help.

Sent an email... thank you ...:)

Regards,
Doug

Mikhael_ 02-16-2013 10:37 AM

I would like to set the "Default Maximum Width" less then 400

Is it possibile? in case I can do that?

Thanks a lot for any answer .. great mod! ;)

tourajabbasi 02-17-2013 07:03 AM

Quote:

Originally Posted by Seven Skins (Post 2404319)
I don't think we can combine these two hacks together. I will see if I can find some other script which can do what you want, but no promises.

Please Do... because that hack is very important to me.... thank you in advance....

Seven Skins 02-19-2013 02:43 PM

Quote:

Originally Posted by Mikhael_ (Post 2404591)
I would like to set the "Default Maximum Width" less then 400

Is it possibile? in case I can do that?

Thanks a lot for any answer .. great mod! ;)

Close your forums.
Enable debug mode.
And edit this setting: ss_ncir_maxwidth and remove return $data >= 400; from validation code.

deltahawk5 02-26-2013 05:55 PM

Any way to get this working with something like lytebox or highslide? I would love the addition.

deltahawk5 03-04-2013 05:07 AM

Quote:

Originally Posted by deltahawk5 (Post 2406522)
Any way to get this working with something like lytebox or highslide? I would love the addition.

bump

Seven Skins 03-04-2013 09:51 AM

Quote:

Originally Posted by deltahawk5 (Post 2406522)
Any way to get this working with something like lytebox or highslide? I would love the addition.

No. it is not possible.

Dwarden 03-19-2013 01:56 PM

would be possible add check for length (byte size of file) of the pictures ?
(sometimes some people have tendency post way too large (100s MB) pictures)

Alan_SP 03-19-2013 02:24 PM

And do what with this info?

This mod resizes pictures visually, not actually. If you know that image is 100MB, it still needs to be downloaded completely before this mod could do anything about it.

Please, try to understand what this mod actually does. So, it would be possible that this mod blacks image so big, but user already downloaded it down, spending his bandwidth in the process.

Managing such big images is job for moderators.

Dwarden 03-20-2013 02:01 AM

I was just asking if it's possible, I guess I would need to figure other automated solution (on forum side ofcourse)

Alan_SP 03-20-2013 09:46 PM

AFAIK, there's none. But, in case you found out one (it's never good to say anyone that something is impossible, because, he may found out way to solve even impossible problems :)), please notify me also. :)

cliff p. 03-26-2013 09:20 AM

Mod has been working fine without issue, however I do have a request from my userbase...

They'd like that when the image is clicked to enlarge, that it actually enlarges to actual size, and isn't limited by the window size. For instance, there are some images for testing that are 5xxx pixels wide (photo-stitched), however when clicked to enlarge only show as 15xx pixels wide. The plug-in reports the correct image size, however.

Thanks.

sadiq6210 03-26-2013 09:48 AM

Quote:

Originally Posted by cliff p. (Post 2412348)
Mod has been working fine without issue, however I do have a request from my userbase...

They'd like that when the image is clicked to enlarge, that it actually enlarges to actual size, and isn't limited by the window size. For instance, there are some images for testing that are 5xxx pixels wide (photo-stitched), however when clicked to enlarge only show as 15xx pixels wide. The plug-in reports the correct image size, however.

Thanks.

You can set the option to (open in new window) so when the image is clicked to enlarge it will be opened in new window with full size.

Seven Skins 03-26-2013 11:25 AM

Quote:

Originally Posted by cliff p. (Post 2412348)
Mod has been working fine without issue, however I do have a request from my userbase...

They'd like that when the image is clicked to enlarge, that it actually enlarges to actual size, and isn't limited by the window size. For instance, there are some images for testing that are 5xxx pixels wide (photo-stitched), however when clicked to enlarge only show as 15xx pixels wide. The plug-in reports the correct image size, however.

Thanks.

That is due to the code/design of vbulletin, they changed this long time ago.

Quote:

Originally Posted by sadiq6210 (Post 2412349)
You can set the option to (open in new window) so when the image is clicked to enlarge it will be opened in new window with full size.

As Sadiq says this is the best option.

Dwarden 03-28-2013 09:43 AM

Quote:

Originally Posted by Alan_SP (Post 2411275)
AFAIK, there's none. But, in case you found out one (it's never good to say anyone that something is impossible, because, he may found out way to solve even impossible problems :)), please notify me also. :)

there is this one
Maximum Embedded Image (File) Size Restriction by BOP5
https://vborg.vbsupport.ru/showthread.php?t=281601

it does work quite often, yet not always

Alan_SP 03-28-2013 07:16 PM

Thanks for your info. Good to know.

ugur73 04-20-2013 08:05 PM

How to fixed this validation error?
Code:

Line 597, Column 96: there is no attribute "onload"

?/04/140.jpg" border="0" alt="" onload="NcodeImageResizer.createOn(this);" /><b?



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.


edgeless 05-06-2013 03:40 PM

Hello,

The resizer works on v4.2.0 but for some reason the images shown within a new window do not render in their original sizes. If the actual image is larger then the in-post display setting value (currently set to 500px) then the new window image is the same size as the re-sized in-post image, or in some cases smaller. That is, with a setting of 500px, the images larger than 500px do not seem to display in the new window above that size. But the re-sizer works great for keeping the images at or below a particular size within the posts - it's just that no one can click the bar to see an image in its actual size. Any ideas as to why?

Seven Skins 05-07-2013 08:26 AM

There may be a conflict with other javascripts on your site.
If you give me the link to the thread then may be I can help you.

You can this hack working fine here: http://www.atoztalk.com/threads/2483...D-Wallpapers-I

Cybeth 05-23-2013 01:06 AM

vB 4.2.1 problems with Quick reply.

fassy4u 05-23-2013 06:10 AM

i just watching for change the attach folder location :(

Nano_ 06-06-2013 02:48 AM

Edit: It's my fault. Nothing related to plugin.

Thanks djbaxter. :)

djbaxter 06-06-2013 03:01 AM

Quote:

Originally Posted by Nano_ (Post 2426047)
Google marks one of my sites as Pishing 'cause your plugin:

I disabled the plugin for now.

The problem is the image on your site, not the plugin. Look again at that warning message. Where is that image posted? Delete it.


All times are GMT. The time now is 06:46 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01919 seconds
  • Memory Usage 1,840KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (2)bbcode_html_printable
  • (18)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete