vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Auto resize large image (https://vborg.vbsupport.ru/showthread.php?t=99286)

lefthome 11-27-2005 08:23 PM

Changing the setting from 700 to 540 in IE takes care of the issue with the problem with the picture getting big again...

COBRAws 11-27-2005 09:35 PM

Quote:

Originally Posted by lefthome
Changing the setting from 700 to 540 in IE takes care of the issue with the problem with the picture getting big again...

i got mine to 550 and doesnt work pal

NineToez 11-28-2005 03:11 AM

Worked perfectly!! Just what I wanted and needed! Thank you so much!

Installed. :D

vtx1800 11-28-2005 03:31 AM

I did the same thing, but did this for the change:
Code:

return '<a href="' . $link . '" target="_blank"><img src="' .  $link . '" border="0" width="100" height="100" alt="User Image" /></a>';
However, it still effects the sig images. It works perfectly, with only that one modification, but I want it to not alter sig images.

This one change will work for any browser, no other changes needed.

smdani 11-28-2005 08:27 AM

It works fine for me in firefox, but not in IE like some of you notice, but have some other problem that want to post:

When I show my posts in a non vbpage, with something like this https://vborg.vbsupport.ru/showthrea...3&page=1&pp=15
(It uses the vB_BbCodeParser in the /includes/class_bbcode.php to convert the code from the post)
With this hack of auto resize, I have this error message in those pages:
Error: largerThan is not defined
And, of course the image don?t resizes

?Could anybody help me or improve the hack to make it work in non vb pages like parser do?

I have redden from Kongo that the function largerThan() is not needed so much

?would it solve the problem if I do that he said?
Quote:

Originally Posted by kONGO
It's in the PHP function handle_bbcode_img_match you need to make the change. In that function it is quite clear where the change must be applied (it's a very small function).

Also, as an addition, there is no need to define the largerThan() function. Using
Code:

if (this.width > 700)
works just as well. I've tested this and it works beautifully on Firefox 1.5b2, IE6sp1, Opera 8.

?It brings many other problems like DanLai said?
Quote:

Originally Posted by DanLai
I see the mod working for your site in IE. Maybe the mod is affected by some Javascript settings in IE? What version of IE are you using?

The ">" will cause problem when you try to edit the post. :)

Good to see everyone helping out each other. :rolleyes:

Thanks,
DanLai.

?Could it be solved in other way?


By the way I want to say that this hack was wonderful for my forum, our moderation team was wondering something like this for so long. Thanks a lot for developing it

Sychev_S 12-03-2005 09:02 PM

is there anyway to do the same thing but for attached images?

s1l3NCER 12-14-2005 12:00 AM

Quote:

Originally Posted by Exernon
Same as my problem...

Anyone?

works perfectly install it

Justice 12-16-2005 06:31 AM

cool hack...

does this add any server load to the showthread.php, or is this all done from the user/browser end?

nuxvirg 12-22-2005 11:13 AM

it wasnt work in IE..

Me2Be 12-24-2005 01:32 AM

Another one that works fine on Firefox but not on IE 6.0.28 (changed size to 480)


All times are GMT. The time now is 04:31 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.01157 seconds
  • Memory Usage 1,739KB
  • 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
  • (4)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
  • (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