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
  #12  
Old 09-10-2007, 10:41 AM
thincom2000 thincom2000 is offline
 
Join Date: May 2006
Location: Bronx, NY
Posts: 1,205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mktrilogy View Post
signature now only displays url

is it possible to only resize the post and not the sig?
I was unable to duplicate this behavior. The only thing I can think of is that your sig permissions are not set. First let me know if you are using any mods that modify permissions, such as Advanced BBCode Permissions or CES Parser Permissions. Also, please check your Usergroup Permissions under Signature Permissions. In vBulletin Options make sure [IMG] Code is enabled.

But to answer your other question: resizing the images in only one area would almost defeat the purpose of using this mod at all. If you're concerned about the alert "This image was resized," it doesn't appear in signatures or private messages.
Reply With Quote
  #13  
Old 09-10-2007, 03:11 PM
sadiq6210 sadiq6210 is offline
 
Join Date: Sep 2005
Posts: 684
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks
But
Is there a screenshot ?
Reply With Quote
  #14  
Old 09-10-2007, 03:40 PM
thincom2000 thincom2000 is offline
 
Join Date: May 2006
Location: Bronx, NY
Posts: 1,205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No screenshot (not sure what it would prove). You can view the dev testing thread here: http://www.crackedeggstudios.com/project.php?issueid=36
Reply With Quote
  #15  
Old 09-10-2007, 10:00 PM
Computer Guru Computer Guru is offline
 
Join Date: Jun 2007
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks. Installed.
Reply With Quote
  #16  
Old 09-11-2007, 01:19 AM
mktrilogy mktrilogy is offline
 
Join Date: May 2006
Posts: 115
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

in my case it only changes the image into url into thus images are not displayed.
Reply With Quote
  #17  
Old 09-11-2007, 03:08 AM
thincom2000 thincom2000 is offline
 
Join Date: May 2006
Location: Bronx, NY
Posts: 1,205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That's not really too helpful. What are the settings I asked about earlier?
Reply With Quote
  #18  
Old 09-11-2007, 05:07 AM
mktrilogy mktrilogy is offline
 
Join Date: May 2006
Posts: 115
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by thincom2000 View Post
I was unable to duplicate this behavior. The only thing I can think of is that your sig permissions are not set. First let me know if you are using any mods that modify permissions, such as Advanced BBCode Permissions or CES Parser Permissions. Also, please check your Usergroup Permissions under Signature Permissions. In vBulletin Options make sure [IMG] Code is enabled.

But to answer your other question: resizing the images in only one area would almost defeat the purpose of using this mod at all. If you're concerned about the alert "This image was resized," it doesn't appear in signatures or private messages.
using bbcode manager
image code is enabled of course.

It does not resize my sig, it makes them url. no alert message, just url. all images that uses img code becomes url
Reply With Quote
  #19  
Old 09-11-2007, 06:11 AM
nickypoooo's Avatar
nickypoooo nickypoooo is offline
 
Join Date: Aug 2007
Location: San Diego
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mktrilogy View Post
using bbcode manager
image code is enabled of course.

It does not resize my sig, it makes them url. no alert message, just url. all images that uses img code becomes url
I'm having the same problem, It make my sig UR.
same here all images that uses img code becomes url.

Uninstalled.
Reply With Quote
  #20  
Old 09-11-2007, 12:21 PM
thincom2000 thincom2000 is offline
 
Join Date: May 2006
Location: Bronx, NY
Posts: 1,205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mktrilogy View Post
using bbcode manager
image code is enabled of course.

It does not resize my sig, it makes them url. no alert message, just url. all images that uses img code becomes url
I can only figure that there is a conflict since I have messed with the settings ad nauseum and can't figure out why this is occurring on your install. Please list any mods that hook into bbcode_parse_start (check the Plugin Manager, and sort by hook location instead of product).
Reply With Quote
  #21  
Old 09-11-2007, 02:18 PM
Stoebi Stoebi is offline
 
Join Date: Apr 2006
Location: Germany, Berlin
Posts: 331
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi

Really nice hack, thank you. I have some little problems.
My option for your hack:
'Enable/disable a message above each image that has been resized' is Off (value = 0)

If this option turned off, firefox displays an error message. Please see the image attached with this post (2nd line).

Code:
.resizeimage { max-width: $vboptions[ces_dynamicpic_width]px; }
* html .resizeimage, .resizednote { width: expression((this.width > intval($vboptions[ces_dynamicpic_width] - 1))) ? '$vboptions[ces_dynamicpic_width]px' : 'auto'); }
IE, Firefox and Opera have problems with this peace of code. Please see the image attached with this post (1st line).

IE 7 does not display the background-color for $dynamicpic['note_true'] if this option 'Enable/disable a message above each image that has been resized' enabled.



My wish:
Allow to resize if 'Enable/disable a message above each image that has been resized' disabled.


Kind Regards,

Stoebi
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 06:46 PM.


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.09937 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
  • (1)bbcode_code
  • (4)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
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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