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 06-19-2011 03:05 PM

For some reason vBulletin added P tags around the images and this P tag is causing issue with this hack. For now keep your images aligned to left while I try to fix this, if I can.

Sworm 06-19-2011 03:46 PM

I hope that you'll able to solve this issue.... this is the best resize for vb 4

Josjua 06-22-2011 03:11 PM

Quote:

Originally Posted by haidm (Post 2209549)
I have the problem when centered the images in 4.1.4 (see the attach), how can I fix this?

I have the same problem, fix please! thanks!

morgano 06-26-2011 07:59 PM

If you could show me how to call the Java part and tell it to align: left, center or right I'll be able to code the PHP part to find out if the image is encased in a P tag and to what alignment it's justified and then call the appropriate Java.

BUDIMAN 06-26-2011 08:35 PM

Quote:

Originally Posted by haidm (Post 2209549)
I have the problem when centered the images in 4.1.4 (see the attach), how can I fix this?

me too..waiting for update

Seven Skins 06-28-2011 04:29 PM

Update coming soon, Just need to optimize the code and then I will release it, may be tomorow.

morgano 06-29-2011 05:15 PM

Thanks, waiting eagerly as this is a real pain for the look of the site :)

Sworm 06-29-2011 05:32 PM

Is it ready? :D We have need of this great hack :)

Seven Skins 06-29-2011 08:08 PM

This has been updated.

AusPhotography 06-29-2011 10:24 PM

Can I suggest a fix to the .js file...

Added
Code:

        if(NcodeImageResizer.MAXWIDTH > 0 && this.img.width > NcodeImageResizer.MAXWIDTH) {
                this.img.height = (NcodeImageResizer.MAXWIDTH / this.img.width) * this.img.height;
                this.img.width = NcodeImageResizer.MAXWIDTH;
        } // keep proportions if both options set

Giving....
Code:

NcodeImageResizer.prototype.scale = function() {
        this.img.height = this.originalHeight;
        this.img.width = this.originalWidth;
       
        if(NcodeImageResizer.MAXWIDTH > 0 && this.img.width > NcodeImageResizer.MAXWIDTH) {
                this.img.height = (NcodeImageResizer.MAXWIDTH / this.img.width) * this.img.height;
                this.img.width = NcodeImageResizer.MAXWIDTH;
        }
       
        if(NcodeImageResizer.MAXHEIGHT > 0 && this.img.height > NcodeImageResizer.MAXHEIGHT) {
                this.img.width = (NcodeImageResizer.MAXHEIGHT / this.img.height) * this.img.width;
                this.img.height = NcodeImageResizer.MAXHEIGHT;
        }
        if(NcodeImageResizer.MAXWIDTH > 0 && this.img.width > NcodeImageResizer.MAXWIDTH) {
                this.img.height = (NcodeImageResizer.MAXWIDTH / this.img.width) * this.img.height;
                this.img.width = NcodeImageResizer.MAXWIDTH;
        } // keep proportions if both options set
       
        this.warning.width = this.img.width;
        this.warning.onclick = function() { return this.resize.unScale(); }
       
        if(this.img.width < 400) {
                this.setText(vbphrase['ncode_imageresizer_warning_small']);
        } else if(this.img.fileSize && this.img.fileSize > 0) {
                this.setText(vbphrase['ncode_imageresizer_warning_filesize'].replace('%1$s', this.originalWidth).replace('%2$s', this.originalHeight).replace('%3$s', Math.round(this.img.fileSize/1024)));
        } else {
                this.setText(vbphrase['ncode_imageresizer_warning_no_filesize'].replace('%1$s', this.originalWidth).replace('%2$s', this.originalHeight));
        }
       
        return false;
}


BUDIMAN 06-29-2011 11:18 PM

1 Attachment(s)
Quote:

Originally Posted by Seven Skins (Post 2214711)
This has been updated.



Doesn't work for me. Tested on custom & default style VB 4.1.4 https://vborg.vbsupport.ru/external/2011/06/1.gif

See here :

The Dawg 06-30-2011 12:19 AM

1 Attachment(s)
Installed. :up:

The yellow bar across the top is missing on all my skins. (including default)

haidm 06-30-2011 08:14 AM

Quote:

Originally Posted by The Dawg (Post 2214809)
Installed. :up:

The yellow bar across the top is missing on all my skins. (including default)

The same here.

axix20xx 06-30-2011 10:19 AM

Thanks.but Doesn't work for me too. Tested on custom & default style VB 4.1.4

The Dawg 06-30-2011 11:30 AM

Quote:

Originally Posted by axix20xx (Post 2214967)
Thanks.but Doesn't work for me too. Tested on custom & default style VB 4.1.4

Make sure you set the height & width in the settings for it to work. I am using it on 4.1.4 also.

Seven Skins 06-30-2011 12:56 PM

Quote:

Originally Posted by snoopytas (Post 2214771)
Can I suggest a fix to the .js file...

Thanks will test and add this to the code.


Quote:

Originally Posted by BUDIMAN (Post 2214793)
Doesn't work for me. Tested on custom & default style VB 4.1.4 https://vborg.vbsupport.ru/external/2011/06/1.gif

See here :

Quote:

Originally Posted by The Dawg (Post 2214809)
Installed. :up:

The yellow bar across the top is missing on all my skins. (including default)

It is working as designed seee the screen shot and read the hack info.

The Dawg 06-30-2011 01:50 PM

Quote:

Originally Posted by Seven Skins (Post 2215033)

It is working as designed seee the screen shot and read the hack info.

I see. How can I change the bar around the 'Click Here'? On my dark skin the text is not showing.

axix20xx 06-30-2011 02:33 PM

Quote:

Originally Posted by The Dawg (Post 2214979)
Make sure you set the height & width in the settings for it to work. I am using it on 4.1.4 also.

yes. i set but does not work in this mode or other options (new window & ...)

Seven Skins 06-30-2011 03:07 PM

Quote:

Originally Posted by The Dawg (Post 2215058)
I see. How can I change the bar around the 'Click Here'? On my dark skin the text is not showing.

Edit "ss_imageresizer" template and change the property like this "color: #ffffff;" this will make the text white.

Sworm 06-30-2011 03:11 PM

Quote:

Originally Posted by The Dawg (Post 2214979)
Make sure you set the height & width in the settings for it to work. I am using it on 4.1.4 also.


It working well for you?

BUDIMAN 06-30-2011 03:41 PM

Now it's working.

if you're upgrading to 1.4, just clear the cache & cookies after that

Sworm 06-30-2011 04:14 PM

In a next future it will possible to re-add the yellow bar?

The Dawg 06-30-2011 10:44 PM

Quote:

Originally Posted by Seven Skins (Post 2215090)
Edit "ss_imageresizer" template and change the property like this "color: #ffffff;" this will make the text white.

Thanks. It would be cool if you could bring the yellow bar back.

BadgerDog 06-30-2011 11:11 PM

Can we upgrade to the latest version, even if we're still using 4.1.3?

Regards
Doug
PayPal Donator for this mod....:up:

AusPhotography 07-01-2011 10:02 AM

Quote:

Originally Posted by BadgerDog (Post 2215260)
Can we upgrade to the latest version, even if we're still using 4.1.3?

Works on 4.1.3 for me

Lautaro 07-02-2011 04:55 AM

installed, it works well.

my suggestion:
add different image resize values for each forum area - posts, signatures, cms etc.. -

Sworm 07-02-2011 06:07 AM

If the text language is translated from english to another language with vbulletin translator, the hack stop to work.

Edit:
after install this mod, i have losed all the cunstomizations of my postbit_legacy'style :S.

Uninstalled, not work if translated from vb or from xml in other languages

Seven Skins 07-02-2011 11:19 AM

Should work with 4.1.3. but without yellow bar.

@Lautaro: I am working on JQury image resizer if I am successful it will have the option to choose different sizes for different parts of the forums.

Kaspersku 07-04-2011 01:00 AM

It has a serious error, if for two pairs of tag [IMG] [/ IMG] [IMG] [/ IMG] it will happen after the link demo
Why in this 1.4 version does not show up as a traditional 1.3

BadgerDog 07-05-2011 03:55 PM

Just for clarity ...

I'm currently running vBulletin 4.1.3 ...

Will the new Version: 1.4 still work for me, or do I have to stay with Version 1.3 of Image Resizer?

Thanks ... :)

Regards,
Doug

Sworm 07-05-2011 05:03 PM

If you're with 4.1.3 , the ncode 1.3 is better

MagicThemeParks 07-09-2011 05:21 PM

Is there an option to remove or recolor the yellow bar? Against dark skins it shows up too much.

EDIT: Found where to do the edits. Go to the "ss_imageresizer" template and make the changes there.

LifesGreatestGift 07-10-2011 05:10 PM

1.4 isn't showing the proper size of full sized image when it has resized it.

AusPhotography 07-12-2011 06:38 AM

Quote:

Originally Posted by MagicThemeParks (Post 2218577)
Is there an option to remove or recolor the yellow bar? Against dark skins it shows up too much.

EDIT: Found where to do the edits. Go to the "ss_imageresizer" template and make the changes there.

For those not sure what to change...

Code:

  span.ncode_imageresizer_warning {
  font-size: 11px;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  color: #000000;
  cursor: pointer;
  line-height: 200%;}

Becomes...
Code:

  span.ncode_imageresizer_warning {
  font-size: 11px;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  background: #FFFACD;
  color: #000000;
  border: 1px solid #EADB9D;
  margin-bottom: 3px;
  margin-top: 10px;
  cursor: pointer;
  line-height: 200%;}


hugh_ 07-13-2011 05:51 AM

Nice mod, thanks! Have you considered resizing Calendars, Albums and Social Groups too? :)

F1-Gears 07-13-2011 10:31 AM

Thanks. Installed and goes well now in my forum :up:

dej 07-21-2011 09:05 PM

On 4.1.3 - did not work for me.

I set signature size to 500 x 200 via the mod settings and uploaded a sig image.

Then, added a 700 x 400 sig image and the mod allowed it.

This was using the Default style with IMG tags.

fukdawrld 07-23-2011 12:38 AM

4.1.4 here...Works for me but only after you refresh page.

Thank you.

marianoblesa 07-25-2011 02:26 PM

Please, update to to rezise vbadvanced.

Thanks.

Seven Skins 07-29-2011 10:55 AM

Quote:

Originally Posted by dej (Post 2223356)
On 4.1.3 - did not work for me.

I set signature size to 500 x 200 via the mod settings and uploaded a sig image.

Then, added a 700 x 400 sig image and the mod allowed it.

This was using the Default style with IMG tags.

You need to upload the javascript to the correct folder for this to work.


All times are GMT. The time now is 07:25 AM.

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.01959 seconds
  • Memory Usage 1,828KB
  • 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
  • (4)bbcode_code_printable
  • (16)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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