vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Show Thread Enhancements - Image resizer (https://vborg.vbsupport.ru/showthread.php?t=118048)

Sadie Frost 02-19-2007 01:54 AM

I'm having an issue by which this doesn't seem to work with the defaults in the admincp set - if I don't set a width and height in my User Edit Options, it does not resize the image (but if I do, image resizes fine). Also, even with the resize signature option set to no in the admincp, it still is resizing signatures.

Anyone have any ideas? Thanks :)

Spleasure 02-19-2007 04:30 PM

Quote:

Originally Posted by Sadie Frost (Post 1185703)
I'm having an issue by which this doesn't seem to work with the defaults in the admincp set - if I don't set a width and height in my User Edit Options, it does not resize the image (but if I do, image resizes fine). Also, even with the resize signature option set to no in the admincp, it still is resizing signatures.

Anyone have any ideas? Thanks :)

What is the resize mode user option in the user control panel set to? It overrides the default.

Quote:

Originally Posted by Tralala (Post 1185586)
FWIW, I registered on that forum, checked the link, and refreshed the page about 10 times experimenting. The horizontal scroll bar was there while loading, but goes away when the page is done loading, just as the javascript has kicked in and shrunken the large image. The horizontal scroll bar appeared again when I clicked the yellow toolbar to expand the image, and disappeared when I toggled it back to small. In short, it worked exactly as it seems it should. I tried my damndest to recreate the behavior Smoothie is talking about, but could not.

I am using Safari 2.0.4 on a MacBook Pro. I also have Saft installed but I don't think that would have any effect on something like this.

Thanks for your effort

andrewkhunn 02-19-2007 05:49 PM

Here's how we managed to get it working with vbadvanced. Open up modules\news.php. On or around line 214, you should see this block of code:
Code:

// Parse bb code if necessary
if ($news['pagetext_html'])
{
        $news['message'] = $news['pagetext_html'];
}
else
{
        $news['message'] = $bbcode_parser->do_parse($news['pagetext'], $mod_options['portal_news_enablehtml'], $news['allowsmilie'], $mod_options['portal_news_enablevbcode'], $mod_options['portal_news_enablevbimage']);
}

Replace this chunk of code with:
Code:

// Parse bb code if necessary
if ($news['pagetext_html'])
{
        $news['message'] = $news['pagetext_html'];
}
else
{
        $news['message'] = $bbcode_parser->do_parse($news['pagetext'], $mod_options['portal_news_enablehtml'], $news['allowsmilie'], $mod_options['portal_news_enablevbcode'], $mod_options['portal_news_enablevbimage']);
        $news['message'] = preg_replace('/<img src="([^"]*)" border="0" alt="" \/>/', '<img src="\\1" border="0" alt="" onload="NcodeImageResizer.createOn(this);" />', $news['message']);
}

Basically, after it's all been parsed, you just run the same preg_replace that this module runs on regular posts. It's pretty straightforward.

Spleasure 02-19-2007 07:31 PM

Which version are you using? It should work by default for everything that uses the bbcode system from version 1.0 rc 3.

andrewkhunn 02-19-2007 08:35 PM

Quote:

Originally Posted by Spleasure (Post 1186253)
Which version are you using? It should work by default for everything that uses the bbcode system from version 1.0 rc 3.

vBulletin 3.6.4, vBadvanced 2.2.1.

For the Image Resizer, it says version 1.0 in the plugin/product manager, but I assume it's RC 3 as it was downloaded & installed from here only two days ago.

Smoothie 02-19-2007 10:37 PM

Quote:

Originally Posted by Tralala (Post 1185586)
FWIW, I registered on that forum, checked the link, and refreshed the page about 10 times experimenting. The horizontal scroll bar was there while loading, but goes away when the page is done loading, just as the javascript has kicked in and shrunken the large image. The horizontal scroll bar appeared again when I clicked the yellow toolbar to expand the image, and disappeared when I toggled it back to small. In short, it worked exactly as it seems it should. I tried my damndest to recreate the behavior Smoothie is talking about, but could not.

I am using Safari 2.0.4 on a MacBook Pro. I also have Saft installed but I don't think that would have any effect on something like this.

BTW, you didn't have to register on that site to see the resized images. ;)

Lizard King 02-20-2007 04:20 AM

There is a strange problem i am facing. When someone uses png images the page is freezing with Ie 6.0
Here is a demo
http://www.ayyas.com/duyurular-sikay...est-amaclidir/

Bulent Tekcan 02-20-2007 08:44 AM

I received this error that pages (see my attachmet) Also I'll test same image in my forum.

Cheers

Bulent Tekcan 02-20-2007 09:01 AM

I tested png images without any problem.I think some rules blocked that pages maybe mod_security.

Spleasure 02-20-2007 09:38 AM

Quote:

Originally Posted by Bulent Tekcan (Post 1186590)
I received this error that pages (see my attachmet) Also I'll test same image in my forum.

Cheers

Do you perhaps have a script running to enable transparancy for PNG in IE 6?

Lizard King 02-20-2007 01:32 PM

By help of Spleasure we managed to found the problem. This PNG Fix is conflicting with nCode . When Png Fix is disabled everything works perfectly.

RedGTiVR6 02-20-2007 02:19 PM

I've installed this, I've set it up in the Admin CP, and all is good.

However, when I go to the Options in the UserCP...there's nothing there.

Using 3.6.3

Any ideas?

akulion 02-21-2007 11:36 AM

excellent modification :)

RedGTiVR6 02-21-2007 12:48 PM

still have my question....:(

fly 02-21-2007 01:00 PM

Quote:

Originally Posted by Spleasure (Post 1186601)
Do you perhaps have a script running to enable transparancy for PNG in IE 6?

No, I mentioned this bug a few pages back. IE bombs out on pages with lots of images to resize.

Spleasure 02-21-2007 02:22 PM

Quote:

Originally Posted by flypaper (Post 1187442)
No, I mentioned this bug a few pages back. IE bombs out on pages with lots of images to resize.

It indeed was a PNG fix related problem. Your problem is different, it's fixed (in some situations at least)
Quote:

Originally Posted by RedGTiVR6 (Post 1186736)
I've installed this, I've set it up in the Admin CP, and all is good.

However, when I go to the Options in the UserCP...there's nothing there.

Using 3.6.3

Any ideas?

Please give an url to you board. Have you installed any plugins which might conflict?

fly 02-21-2007 02:49 PM

Quote:

Originally Posted by Spleasure (Post 1187503)
It indeed was a PNG fix related problem. Your problem is different, it's fixed (in some situations at least)

Please give an url to you board. Have you installed any plugins which might conflict?

Ahhh, my bad. Well, its the exact same error anyway...

RedGTiVR6 02-21-2007 03:36 PM

Quote:

Originally Posted by Spleasure (Post 1187503)
It indeed was a PNG fix related problem. Your problem is different, it's fixed (in some situations at least)

Please give an url to you board. Have you installed any plugins which might conflict?

www.mp3car.com/vbulletin

I don't believe I've installed any plug-ins that would conflict....but then again, i'm not sure what might.

The only mods I've done to the UserCP were to add profile fields and the hack for the look of the menu.

RedGTiVR6 02-21-2007 04:31 PM

Fixed!

Thanks for all the help. It's greatly appreciated!
*clicks installed*

Smoothie 02-21-2007 06:29 PM

Hows the update to this coming along?

Spleasure 02-21-2007 06:59 PM

Quote:

Originally Posted by Smoothie (Post 1187695)
Hows the update to this coming along?

Now :)

------

I've released an update for the Image Resizer adding some small new features and fixing a couple of bugs:

1.0 release candidate 4 (February 21th, 2007)
- improved speed for posts with many small images
- work around for text display problem in Safari
- Improved installer
- Improved user control panel options: added information about default settings and option to explicitly use the default resize mode.
- Added option to disable the system
- Added option to reset all user specific settings

I hope it works better for you now. Please report bugs in this thread.

RedGTiVR6 02-21-2007 07:38 PM

What do we need to do to update our version?

Uninstall and reinstall? Or just install over?

Spleasure 02-21-2007 07:40 PM

Quote:

Originally Posted by RedGTiVR6 (Post 1187745)
What do we need to do to update our version?

Uninstall and reinstall? Or just install over?

Both work, but if you want to keep the settings overwrite the current version.

RS_Jelle 02-21-2007 07:47 PM

Nice new version, scrolling on pages isn't shocking any more on slower computers :up:

A suggestion: make it 100% W3C XHTML compliant. The onload attribute isn't valid for the img tag, it would be nice if you could replace it with a valid method.

Smoothie 02-21-2007 08:37 PM

Quote:

Originally Posted by Spleasure (Post 1187717)
Now :)

------

I've released an update for the Image Resizer adding some small new features and fixing a couple of bugs:

1.0 release candidate 4 (February 21th, 2007)
- improved speed for posts with many small images
- work around for text display problem in Safari
- Improved installer
- Improved user control panel options: added information about default settings and option to explicitly use the default resize mode.
- Added option to disable the system
- Added option to reset all user specific settings

I hope it works better for you now. Please report bugs in this thread.

Very nice, thanks. Haven't installed yet, was waiting on the update.

Smoothie 02-21-2007 08:39 PM

BTW, which of those files do I download? There's like 6 of 'em.

da420 02-21-2007 08:41 PM

I imagine the one labeled...

ncodeimageresizer 1.0rc4.zip

Thanks for the update! Will install tonight...

Bulent Tekcan 02-21-2007 08:46 PM

Realy very good job,my users very happy for this mod.

I'm already donated ;)

Thanks

AMG021 02-21-2007 08:50 PM

can you please PLease make this work with vBadvanced?

dbirosel 02-21-2007 08:56 PM

Hooray! an update. thanks brotha! keep up the good work.

Spleasure 02-21-2007 08:56 PM

Quote:

Originally Posted by RS_Jelle (Post 1187757)
Nice new version, scrolling on pages isn't shocking any more on slower computers :up:

A suggestion: make it 100% W3C XHTML compliant. The onload attribute isn't valid for the img tag, it would be nice if you could replace it with a valid method.

I think that's not possible. I could use a pagelevel onload, but that does not provide the same experience as a per-image onload. Perhaps adding an option to enable XHTML compliance in exchange for a worse experience is doable.

projectego 02-21-2007 08:59 PM

Thanks for the update! ;)

Smoothie 02-21-2007 09:04 PM

Smooth as silk......

Mecho 02-21-2007 09:35 PM

Thanks for update :)

fly 02-21-2007 09:50 PM

Quote:

Originally Posted by flypaper (Post 1187521)
Ahhh, my bad. Well, its the exact same error anyway...

My error has been resolved. <3

Sadie Frost 02-21-2007 10:26 PM

The upgrade fixed my problem with the signatures :) Thanks!

Tralala 02-21-2007 10:37 PM

/nominates for Mod of the Month

Tralala 02-21-2007 10:48 PM

/sends thanks by way of PayPal donation

KURTZ 02-21-2007 11:05 PM

updated!

RedGTiVR6 02-22-2007 01:59 AM

I'm guessing I've done something wrong:

Code:

Invalid SQL:
ALTER TABLE `user` ADD `ncode_imageresizer_mode` ENUM("none", "enlarge", "samewindow", "newwindow") DEFAULT "enlarge" NOT NULL;

MySQL Error  : Duplicate column name 'ncode_imageresizer_mode'
Error Number : 1060

I selected the radio button to allow the upgrade even...and I uploaded the newest .js file as well.

Ideas on where to start?


All times are GMT. The time now is 09:43 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.02098 seconds
  • Memory Usage 1,830KB
  • 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
  • (3)bbcode_code_printable
  • (15)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