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?


All times are GMT. The time now is 03:10 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.01907 seconds
  • Memory Usage 1,747KB
  • 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
  • (2)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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