![]() |
|
|
Mod Options |
Dynamic Picture Resize for [IMG] tag Details »»
|
|||||||||||
|
Dynamic Picture Resize for [IMG] tag
Developer Last Online: Nov 2009
If an image submited by a user (using the [IMG] bbcode tag) is to big, chances are that it will break your current vBulletin style. This hack will dynamically resize that image to acceptable dimensions, that you previously specified. It will do it for pictures inserted into postbit or user signature.
The code modifications listed below were tested into a clean installed vBulletin board. They work 100%. Installation In order to perform an efficient modification of your files, I recommend you to use Komodo Edit or Textpad. Both editors will allow you to complete all steps without any coding errors. You will need to make one small change for each of the following files: • vbulletin_global.js (folder /clientscript) • class_bbcode.php (folder /includes) Make sure you modify, save and upload one file at the time to your server. Then, simply run the product-dynamicpic.xml file. Once the product installed, don't forget to enable it. Go to your vBulletin Options, click on Dynamic Picture Resize setting group and set all your options. If you encounter any problems, feel free to post in the support thread. Learn how to open the image into a new tab/window. But you should stop using the target tag, since it will be deprecated soon. There is a reason why all browsers have now the Shift and CTRL options to open a new tab/window with the link you click on. Download Now Only licensed members can download files, Click Here for more information. Show Your Support
|
|||||||||||
Similar Mod
|
||||
| Mod | Developer | Type | Replies | Last Post |
| CES Dynamic [IMG] Resize (Plugin Version) | thincom2000 | vBulletin 3.6 Add-ons | 140 | 08 Jul 2009 17:19 |
| Dynamic Image Resize Hack | dlst | vBulletin 2.x Beta Releases | 22 | 01 May 2003 19:10 |
| Comments |
|
#2
|
||||
|
||||
|
For a quick look, visit this vBulletin Blog entry on Lizard King's server.
As you notice, my hack works on the vBulletin forum and blog. ![]() Last edited by TECK : 10 Sep 2007 at 15:15. |
|
#3
|
||||
|
||||
|
Thanks, when I get a chance I will take a look at this for sure. thanks.
__________________
Just a couple of the many sites that I now own ![]() Buy-Host - Hosting and vbulletin modifications Gamerz Needs |
|
#4
|
||||
|
||||
|
NeutralizeR was begging the site administration guys to help him with the hack, but nobody wanted to.
It took me 10min to write and implement the hack and one hour to make the readme file. Go figure... Honestly, I felt bad because nobody wanted to help him. NeutralizeR, my new friend... there are people who still care. Enjoy the hack, I did it especially for you. |
|
#5
|
||||
|
||||
|
thanx man ..
but is there any problom in my site 4 load server same the other products that resizer the image another que can u edit the product soo the image may open in new Window thanx agin ... njm
__________________
Vist My Site : www.alskon.com Saudi Arabia contact me : Njm-Alryiadh(at)hotmail.com Last edited by Njm : 07 Sep 2007 at 13:19. |
|
#6
|
||||||||
|
||||||||
|
Njm, my hack will not generate any server load. The process is completed through JavaScript.
In other words, the client (browser) does the job, not the server. ![]() About your request to open the link into a new tab/window: Open vbulletin_global.js file (where you edited the code originally) and find:
Replace it with:
You are done. ![]() Last edited by TECK : 07 Sep 2007 at 08:39. |
||||||||
|
#7
|
|||
|
|||
|
Read the other thread... Wow, this was nice of you to do for them.
![]() Clicked install. This is what I've been hoping for as well, something dynamic. Thank you for sharing with everyone, TECK. I can now replace my old re-sizer. ![]() |
|
#8
|
||||
|
||||
|
Thanks a lot. was looking for this a long time.
Clicked install. |
|
#9
|
||||
|
||||
|
hmmm is it possible to show a message (or alert ) on the top of the picture to indicate the picture has been resized?
|
|
#10
|
||||
|
||||
|
This feature is similar to this hack..
http://www.vbulletin.org/forum/showthread.php?t=125500 |
|
#11
|
||||
|
||||
|
Originally Posted by kambiz
Everything is possible. If many other users request it, I will do it... is that fair?
![]() I wanted a solution that is very clean and it does not modify the way vBulletin behaves originally.
Originally Posted by valdet
There are many hacks out there that do a similar thing. That does not mean they are written properly.
I want you to tell me what is wrong with the above hack, because there is something wrong with it. ![]() |
|
#12
|
||||
|
||||
|
Thank you TECK, installing and testing it now
![]() Edit: I'm grateful for all your effors and help! No matter if this hack does whatever i want or not. If you check my post at that thread you can understand what i need: http://www.vbulletin.org/forum/showp...4&postcount=15 Dynamic resizing won't help us much as we have many big images on a single page so the layout will be broken till it completely loads all of the images.
If we can find a way to wrap oversized images with "<a href="$link">...</a>" it'll be done. The method on vbulletin.org does what i'm asking for but they denied to help me and it's ok ![]() Best Regards to Floren Munteanu
__________________
MsXLabs® - Mavi Karanlık® Last edited by NeutralizeR : 07 Sep 2007 at 13:52. |
||||
|
#13
|
||||
|
||||
|
Aha, so you basically don't want to open the enlarged picture, when you click on it?
Please be more specific. And you cannot resize an image with JavaScript, before is loaded. It would not know the actual picture dimensions, in order to resize it properly. In other words, this is the process: 1. Picture is loaded, for the first time. (it will show the full size) 2. Picture size is detected. 3. Picture is formatted to new dimensions. |
|
#14
|
||||
|
||||
|
Originally Posted by TECK
I want it to be resized before the picture is loaded and have the link to the original picture
I know javascript can't do it.I need an advanced version of this hack with the clickable url of the resized picture: http://www.vbulletin.org/forum/showp...4&postcount=15
__________________
MsXLabs® - Mavi Karanlık® |
![]() |
«
Previous Mod
|
Next Mod
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
| Mod Options | |
|
|
| New To Site? | Need Help? |
All times are GMT. The time now is 18:19.







