![]() |
CES Dynamic [IMG] Resize (Plugin Version)
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:
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 |
Thanks! I will test soon and post results!
Not working man! see here what is happening FIXED NOT NEEDED MORE THE URL! please help =) this mod is really needed the image is that -> FIXED NOT NEEDED MORE THE URL! |
Okay, thank you. This issue occurs when you have HTML disabled in posts. I will look into this and see why this made any difference. Also, it looks as though you haven't fixed the word-wrap bug in 3.6.8. See this thread: http://www.vbulletin.com/forum/proje...?issueid=22752
|
Okay thanks for informing, i didn't know this
|
Okay, the new version converts the [IMG] tag to a BB-Code first, so the HTML issue is averted.
|
It worked but now a bug appeared
FIXED NOT NEEDED MORE THE URL! take a look again |
Aha, okay. Seems to be a size issue :rolleyes:. Should be an easy one to fix.
|
\o/ Well with this I think my board is complete!
ITs working, now its a minor bug, not so BUG i can say, if i change the dimension on AdminCP the only thing that changes is the red text alert, only when updating the thread it works ^^ but its not a problem thanks for the hard working ! |
Zip updated. Everything should be correct now. I'm going out for the night, so if there are any bugs remaining I probably won't get to them until tomorrow.
|
signature now only displays url
is it possible to only resize the post and not the sig? |
Quote:
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. |
Thanks
But Is there a screenshot ? |
No screenshot (not sure what it would prove). You can view the dev testing thread here: http://www.crackedeggstudios.com/project.php?issueid=36
|
Thanks. Installed.
|
in my case it only changes the image into url into thus images are not displayed.
|
That's not really too helpful. What are the settings I asked about earlier?
|
Quote:
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 |
Quote:
same here all images that uses img code becomes url. Uninstalled. |
Quote:
|
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; } 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 |
I hate IE. I have managed to fix everything you mentioned above except the background color. The problem is that IE is inheriting the background-color from the postbit, and then ignoring anything afterwards.
|
Hi
thank you very much for your quick answer. :) To solve the background-color for IE 7 you need to add this peace of code to this line: Code:
return ($dynamicpic['note_true'] ? "<div class=\"resizednote\" id=\"$link\">" : "") . "<img src=\"$link\" border=\"0\" alt=\"\" $dynamicpic[image] />" . ($dynamicpic['note_true'] ? "</div>" : ""); Regards, Stoebi |
But that is not the resized note div. That is a containing div... Doing that makes a huge undesired color splotch, if your image is smaller than necessary to be resized.
Also that causes the message not to display at all in IE7. |
Hm
you need to re-edit and save your post with your image. Suspect, i will searching for another way :) Regards, Stoebi |
Hm... I found another bug when the resize message is enabled. If you click to View Selection Source in Firefox, it runs onload() again, and duplicates the image every time you do this. This bug has been addressed in the next release.
Still clueless about the IE background... Maybe it has something to do with the order IE runs CSS and Javascript. Does anyone know anything about IE? |
For me works great! I use firefox
Use FIREFOX and be happy! PS: On IE don't work O.O |
IE and setAttribute() :(
http://www.quirksmode.org/dom/w3c_core.html#attributes I've no ideas or workaround atm. :( Thx for 1.0.4 :) |
Thanks for the link. I was able to get the class to set in IE.
In the template, find: HTML Code:
wrap.setAttribute('class', 'resizednote'); HTML Code:
wrap.setAttribute('class', 'resizednote'); |
I will wait for the next so! \o/
Great mod! |
Thx a lot, it works for IE now :)
Regards, Stoebi |
Is there a way to make this work with % ? Because i saw in the code something like
Code:
+ 'px' Thats why i would like to resize according to each user screen resolution. |
I'm having a similar issue. New images posted with the IMG tag are resized while old ones are not.
|
Quote:
Quote:
|
Really thnks dude! Ultra fast support! I'll download this one, for sure.
|
The new version is now available. Supports setting a max height in pixels and using % for the max width.
|
I'm installing this just now. Great job. Haven't tested but judging from your feedback here it's going to work fine. I'll let you know If I come across a problem.
-Dave |
update installed!
EDIT: BUGGED MY SITE :/ ON FIREFOX THE IMAGE BECOMES a 1px [FIXED!!! JUST REMOVED THE OLD TEMPLATE OF DYNAMIC PIC AND GOT IT WORKING!] ON IE THE IMAGE TRUE SIZE DON'T OPEN IN NEW WINDOW AND NO DISCLAIMER [NOT FIXED :(] Well ^^ thats only it |
every time i enable it, all images turn in to url to the image, they dont show anymore.
Using fixed width, and fluid %. showing disc. or not. doesnt work anyway. :( |
Quote:
|
Quote:
|
All times are GMT. The time now is 06:45 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|