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)

DanLai 11-01-2005 04:02 PM

Moreover, the mod has changed the "hand" to "pointer", as kONGO suggested. :devious: Thank you kONGO for this.

Thanks,
DanLai.

kONGO 11-01-2005 05:54 PM

Quote:

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

Right you are. I knew there was a reason for that function definition, just couldn't figure out why so I changed it. Slap me twice and call me Rhonda.

Glad I could help re: the cursor thing.

evenmonkeys 11-01-2005 10:29 PM

It's sort of working on IE now, and it also limits the size in the signatures. I'm looking for something that is only limited in the post and the signature limits do their own work. >_<;

wrang 11-11-2005 08:27 PM

Great i run VB3.5.1 and it work realy nice
and it work on IE 6.0.290

Great job

My link that it works
http://www.saltvattensguiden.se/foru...ead.php?t=9172
(The hole site is in Swedish and about marinaquarium)

COBRAws 11-12-2005 01:43 AM

Quote:

Originally Posted by xYarub
It's sort of working on IE now, and it also limits the size in the signatures. I'm looking for something that is only limited in the post and the signature limits do their own work. >_<;

how u made it work? Its not working for me under IE, but it works on FireFox. hehehe Uncle Bill doing funny things again :P

ggiersdorf 11-12-2005 09:32 AM

Quote:

Originally Posted by kONGO
I have modified the original HTML a bit, since I didn't like it. I use the title attribute instead of the alt attribute, since HTML standards state that the alt attribute is to be used by screen reading software, whereas the title attribute is usually used to display a 'tooltip' when the mouse is positioned above the element in question.

Also, the hand pointer one sees when the mouse is moved over a link is actually a cursor called pointer, not hand, in the standards.

So, I use this code:
Code:

return '<img onload="if (this.width > 700) {this.width=700; this.title=\'Click to view normal size\';}" onmouseover="if (this.title) {this.style.cursor=\'pointer\';}" onclick="if (this.title) {window.open(\'' . $link . '\');}" src="' . $link . '" border="0" alt="" />';
I modified the handle_bbcode_img_match function in the file includes/class_bbcode.php.

Works in all browsers I've tested it in. If it works in Firefox but not IE, I would say the best bet is to check the IE settings. JavaScript may be fully or partially disabled.

what did you modify in /includes/bbcode I found handle_bbcode_img_match twice but what do I need to modify in those lines!?

ggiersdorf 11-12-2005 09:33 AM

I added your code, but didnt understand what elese you modified or how?

ggiersdorf 11-12-2005 02:02 PM

ok guys I figured out something here. For whatever reason and I hope you can tell me. The First time I go to the site the image will resize in IE. after that it never does it again unless I totally clean my IE settings cache etc. Than it works again 1 time

I tried this from 3 seperate PC's using ie and got the same problem in Firefox it works 100% all the time. Anyone know how to fix that on IE 6+??

mustang_lex 11-12-2005 06:01 PM

How does it effect the top main logo if its dimentions are more then the resize limit. Will it effect the logo like other auto resize scripts.

ggiersdorf 11-14-2005 10:51 PM

anyone supporting this anymore!?


All times are GMT. The time now is 10:11 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.01173 seconds
  • Memory Usage 1,741KB
  • 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