Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
CES Dynamic [IMG] Resize (Plugin Version) Details »»
CES Dynamic [IMG] Resize (Plugin Version)
Version: 1.2.2, by thincom2000 thincom2000 is offline
Developer Last Online: Sep 2022 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 3.6.x Rating:
Released: 09-08-2007 Last Update: 07-07-2009 Installs: 68
Uses Plugins Template Edits
 
No support by the author.

CES DYNAMIC [IMG] RESIZE
Version: 1.2.2

This mod is based on TECK's Dynamic Picture Resize for [IMG] tag mod. I made this mod after seeing a discussion in the thread about the potential number of file edits necessary to add some requested features, and then realized the entire mod could be accomplished with essentially just 1 plugin. TECK suggested that for ease of support I release my updated product file in a new thread, so here it is.

*** NEWS ***
7/8/2009 - v1.2.2 released
9/23/2007 - v1.2.1 released
9/21/2007 - v1.2.0 released
9/13/2007 - v1.1.0 released
9/11/2007 - v1.0.4 released
9/9/2007 - support thread opened, v1.0.1 - 1.0.3 released
9/8/2007 - v1.0.0 released

Products to Install: 1
Plugins Included: 7
Files to Upload: 0
New Templates: 1
Template Edits: 0
Files to Edit: 0

What It Does:
When using the [IMG] bbcode tag, a user may add an image to his/her post that is too ginormous for your intended vBulletin style, pushing things out of the way, and not looking particularly nice. This hack resizes oversized images to specified acceptable dimensions, anywhere that the [IMG] tag is used.

Current Features:
  • show a disclaimer when an image has been resized (option)
  • clicking the image opens in parent or new window (option)
  • multiple images on a line will be resized so their total width is below the set max

Known Issues:
- None

*** Changelog ***
As of Version 1.2.2:
- bug fix: XSS flaw

As of Version 1.2.1:
- bug fix: table explosion

As of Version 1.2.0:
- new feature: max width sharing for multiple images on a line
- bug fix: onclick interferes with [url]
- bug fix: onclick properties not passed to resize disclaimer
- bug fix: images separated by line breaks
- bug fix: [img] ignores [noparse]

As of Version 1.1.0:
- new feature: maximum height
- extended: maximum width can be in pixels or percentage
- bug fix: resize message class not set in Internet Explorer
- updated templates: dynamicpic_script

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #82  
Old 09-22-2007, 07:22 PM
Charlie98902 Charlie98902 is offline
 
Join Date: Dec 2006
Posts: 1,156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I would like the prior version too. I think I'll save the older one next time for when these things happen.
Reply With Quote
  #83  
Old 09-22-2007, 07:58 PM
xandizitxu xandizitxu is offline
 
Join Date: Mar 2005
Posts: 94
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Old Version 1.1.0
Reply With Quote
  #84  
Old 09-22-2007, 08:20 PM
Charlie98902 Charlie98902 is offline
 
Join Date: Dec 2006
Posts: 1,156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by xandizitxu View Post
Old Version 1.1.0
Thank you.
Reply With Quote
  #85  
Old 09-23-2007, 04:29 PM
thincom2000 thincom2000 is offline
 
Join Date: May 2006
Location: Bronx, NY
Posts: 1,205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay I figured out the style-breaking bug in 1.2.0. What happens is that when the post is first parsed (so when you click Update Counters or Post Preview) the post will display correctly, because the bb-code parser will be run. Afterwards, however, if the post was cached, it will not run the bbcode parser and will skip an important regex. This will result in broken tables and a Javascript hang.

The Javascript breaks if the post is cached because the onload triggers aren't set. So the fix would be disabling post caching for posts with images. At this point, the mod would mean slowing things down a little bit... for me it doesn't make a difference because I had to disable post caching for other reasons, but I will upload both 1.2.1 and the old 1.1.0 (thanks to xandizitxu) so users can choose.
Reply With Quote
  #86  
Old 09-23-2007, 05:20 PM
xandizitxu xandizitxu is offline
 
Join Date: Mar 2005
Posts: 94
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

As always I will test it ^^

Your mod is great ^^
Reply With Quote
  #87  
Old 09-23-2007, 09:02 PM
mrghostno1 mrghostno1 is offline
 
Join Date: Aug 2007
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Still not working for me. A se of images like this:

[URL=http://www.freeimagehost.eu/image/6fb2a31080016][IMG]http://thumbnails.freeimagehost.eu/109/6fb2a31080016.gif[/IMG][/URL] [URL=http://www.freeimagehost.eu/image/1bc5b71080017][IMG]http://thumbnails.freeimagehost.eu/109/1bc5b71080017.gif[/IMG][/URL] [URL=http://www.freeimagehost.eu/image/070cf61080018][IMG]http://thumbnails.freeimagehost.eu/109/070cf61080018.gif[/IMG][/URL] [URL=http://www.freeimagehost.eu/image/b44a591080019][IMG]http://thumbnails.freeimagehost.eu/109/b44a591080019.gif[/IMG][/URL]


Simply doesn't show, they all disappear, even after post rebuild and/or post editing.
As they are smaller then the 80% limit I entered, i though they wouldn't be touch.
If the images are posted alone, without URL linking, they show ok. Even with the "Disable Link to Original Image" box empty.

Also, not sure if it was after i clean the "Disable Link to Original Image" box, but a larger image just got CROPED, insted of resized.
Reply With Quote
  #88  
Old 09-24-2007, 10:55 AM
thincom2000 thincom2000 is offline
 
Join Date: May 2006
Location: Bronx, NY
Posts: 1,205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, first I should mention that your URLs will be conflicted now that you completely emptied the "Disable Link to Original Image" field.

The images disappearing usually happens when there is a bug in the Javascript. The reason it would happen even to unresized images is because the Javascript decides to resize or not, and if the Javascript is broken... Have you tested any images that had to be resized?

I am not having any more issues on my install, matching your settings. Please link me to the page you described.
Reply With Quote
  #89  
Old 09-24-2007, 11:28 AM
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
Location: USA
Posts: 1,612
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I went to look at pictures that had been resized with the previous hack from TECK and they were not resized. I went in to edit the posts containing the images and instead of the BB code I saw html (I do not allow html in posts).

version 1.2.1 does not work for me but version 1.1.0 does seem to work fine, except when someone goes to edit a post the html is displayed like this:

PHP Code:
 <div id="http://images.buycostumes.com/mgen/merchandiser/19879.jpg"><img src="http://images.buycostumes.com/mgen/merchandiser/19879.jpg" border="0" alt="" class="resizeimage" onload="resize_image(this, 'http://images.buycostumes.com/mgen/merchandiser/19879.jpg', true);" /></div
instead of bb code like this:

PHP Code:
[img]https://vborg.vbsupport.ru/external/2007/09/14.jpg[/img] 
so for now I will go back to the version from TECK and the file edits, since that was working fine.
Reply With Quote
  #90  
Old 09-24-2007, 12:49 PM
AndyA AndyA is offline
 
Join Date: Apr 2005
Posts: 188
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This mod doesn't seem to work fully for me, it resizes the images but doesn't display any resize notification and it doesn't open the full size image. I've checked all the settings.

P.S tested in Firefox and IE
vb 3.6.8
Reply With Quote
  #91  
Old 09-24-2007, 02:39 PM
thincom2000 thincom2000 is offline
 
Join Date: May 2006
Location: Bronx, NY
Posts: 1,205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am not having ANY issues on my install. If you are having problems, please link me to your test thread or I will be unable to help.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:36 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04822 seconds
  • Memory Usage 2,312KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete