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
  #42  
Old 09-14-2007, 01:42 AM
xandizitxu xandizitxu is offline
 
Join Date: Mar 2005
Posts: 94
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by thincom2000 View Post
I checked your site and it seems to be working as designed in IE.
on my IE 7.0 don't
Reply With Quote
  #43  
Old 09-14-2007, 02:08 AM
thincom2000 thincom2000 is offline
 
Join Date: May 2006
Location: Bronx, NY
Posts: 1,205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hm... I don't know what to say. I have tested your site in both normal and 64-bit Internet Explorer 7, and haven't seen any issues. Try clearing your browser cache, maybe?
Reply With Quote
  #44  
Old 09-14-2007, 09:18 AM
Dave_W Dave_W is offline
 
Join Date: Dec 2006
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey, installed on my site, works a charm, although I seem to be getting the problem where Sig images get turned into URL's. I think you addressed this problem already so i'll check and get back to you. Either way this works great, i'm clicking installed because me and my members love this.

-Dave (http://www.TheBestCaseScenario.com/forum)

EDIT: Fixed by rebuilding Sig cache, nominated for MOTM.
Reply With Quote
  #45  
Old 09-14-2007, 02:23 PM
offline's Avatar
offline offline is offline
 
Join Date: Oct 2002
Location: Chattanooga, TN
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have installed your mod and it resizes everything properly but I have a few issues...

1. When using in conjunction with vbadvanced I get the "resized" message no mater what my setting are. View my front page, I have a test image posted... http://www.chattanoogans.com/

2. When viewing the message it doesnt make the image clicable to view the orginal image even when I have the option set. You can view the message at...
http://www.chattanoogans.com/forums/...size-test.html

PS. Using IE 7
Reply With Quote
  #46  
Old 09-14-2007, 03:14 PM
mrghostno1 mrghostno1 is offline
 
Join Date: Aug 2007
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
What mods are you using with plugins using the bbcode_parse_start hook?
I'm not sure about this, but i'm using SID's hide hack and I had vBAnonymizer (unistalled atm).
Reply With Quote
  #47  
Old 09-14-2007, 03:14 PM
thincom2000 thincom2000 is offline
 
Join Date: May 2006
Location: Bronx, NY
Posts: 1,205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@offline, I don't know if you changed something or not. I checked and saw it working as you described in IE 7. Then after 30 mins of trying to figure it out I refreshed the page and it's working as designed...

@mrghostno1, thanks for getting back to me with this. It gives me somewhere to start looking.
Reply With Quote
  #48  
Old 09-14-2007, 03:41 PM
thincom2000 thincom2000 is offline
 
Join Date: May 2006
Location: Bronx, NY
Posts: 1,205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For users using sid's [hide] hack...

The issue is that AFTER all the parsing is done for a post, the [hide] hack reparses the post. This would not be a problem if the post was reparsed properly. But a huge number of coders are under the misconception that using the function $bbcode->do_parse() is the best way to do this.

The truth is, that do_parse bypasses the bbcode_parse_start hook, which breaks any modifications that may be using it. Not only that, but it still runs bbcode_parse_complete, which can create even more problems when bbcode_parse_start was never called.

So if you're using the hide hack (or potentially any other hack that runs do_parse)

In the postbit_display_complete plugin, find:
PHP Code:
                $hide_post['message'] = $parser->do_parse($hide_post['message'],true); 
Replace with:
PHP Code:
                $hide_post['message'] = $parser->parse($hide_post['message'], $this->thread['forumid']); 
Reply With Quote
  #49  
Old 09-14-2007, 05:47 PM
mrghostno1 mrghostno1 is offline
 
Join Date: Aug 2007
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thnks thincom200, but... didn't work still got the same.
btw, i found this code only under "hide hack ajax request"
There's also a "fetch hide tag" with postbit_display_complete, but couldn't find that code.

Other plugins using postbit_display_complete
  • Last seen online (Postbit)
  • Warning System (Postbit)
Reply With Quote
  #50  
Old 09-14-2007, 06:25 PM
offline's Avatar
offline offline is offline
 
Join Date: Oct 2002
Location: Chattanooga, TN
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by thincom2000 View Post
@offline, I don't know if you changed something or not. I checked and saw it working as you described in IE 7. Then after 30 mins of trying to figure it out I refreshed the page and it's working as designed...

@mrghostno1, thanks for getting back to me with this. It gives me somewhere to start looking.
Wierd, it still doesnt work for me, give me an error on the bottom of the page and I still can't click on the image.
Reply With Quote
  #51  
Old 09-14-2007, 06:52 PM
offline's Avatar
offline offline is offline
 
Join Date: Oct 2002
Location: Chattanooga, TN
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I went home and tried it and when I first viewed chattanoogans.com home page it loaded with no errors then I click on the message title above it "Image Resize Test" viewing the message then I click the back button to bring me back to the home page and then the error came up.
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 03:04 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.04787 seconds
  • Memory Usage 2,322KB
  • 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
  • (3)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