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 Your Images 3.52 compliant (https://vborg.vbsupport.ru/showthread.php?t=103915)

S@NL - BlackBik 01-19-2006 11:27 PM

The final code that works is in the first post of the thread.
The code I tweaked is in post #52.
Just read this thread and choose what you like.

And as I don't know Invisionboard.... Well it may be the same and then again, it may not :D

Puntoboy 01-19-2006 11:47 PM

wicked mate cheers.

yeah work exactly like IPB.

PennylessZ28 01-21-2006 11:00 PM

Heres the problem with this, it turns every [img] tag into a resize and link.

so now signature images are clickable. BOO

Puntoboy 01-23-2006 10:34 AM

yes i get the same error.

S@NL - BlackBik 01-23-2006 12:59 PM

Quote:

Originally Posted by Puntoboy
yes i get the same error.

It's not an error, it's the way this hack works....

But when you don't set your max image resize size in the hack to small and the sigpic max size to high, they will not be affected by this hack. On my board it's not a problem ;)

Puntoboy 01-23-2006 01:04 PM

Quote:

Originally Posted by S@NL - BlackBik
It's not an error, it's the way this hack works....

But when you don't set your max image resize size in the hack to small and the sigpic max size to high, they will not be affected by this hack. On my board it's not a problem ;)

i'll have to remove the hack then.

lots of my members created hyperlinked images in their signatures. sue to this hack the hyperlinks dont work.

S@NL - BlackBik 01-23-2006 01:12 PM

I looked at your forum and I see what you mean. That ain't cool, I agree.
But what is the size that you entered in the hack to let it kick in?
When you set that to 600 pixels, you won't have a problem I guess.

Puntoboy 01-23-2006 01:14 PM

Quote:

Originally Posted by S@NL - BlackBik
I looked at your forum and I see what you mean. That ain't cool, I agree.
But what is the size that you entered in the hack to let it kick in?
When you set that to 600 pixels, you won't have a problem I guess.

i left it as default as that seemed like the perfect size.

Puntoboy 01-23-2006 01:26 PM

which part of the code to i need to change to 600?

S@NL - BlackBik 01-23-2006 01:42 PM

This (in bold)
Code:

if (stristr($navigator_user_agent, "msie")) {   
    return '<a href="' .  $link . '" target="_blank"><img src="' .  $link . '" border="0" alt="" style="width: expression(this.width > 640 ? 480 : true);" /></a>';   
} else {   
    return '<a href="' .  $link . '" target="_blank"><img src="' .  $link . '" border="0" alt="" style="max-width: 730px;" /></a>';   
}

If you're using my version, it's the same lines ;)

In the first line, the number after the greater then sign is the width above wich the hack will resize for Internet Explorer
In the second line the number is just the width above wich the hack will do it's worst for Firefox and other browsers :)


All times are GMT. The time now is 05:02 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.01297 seconds
  • Memory Usage 1,735KB
  • 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
  • (3)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