The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Dynamic Picture Resize for [IMG] tag Details »» | |||||||||||||||||||||||||
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. Show Your Support
|
Comments |
#122
|
|||
|
|||
Thanks for your assistance, I wasn't aware that I could do that. So I did it, and it ran without a problem. However, it didn't fix the problem. One thing I did notice is that if I go into a thread where images have been linked with the [image] tags and click edit and then save. The images are now size properly, however, as soon as I go back into the thread again or I refresh the thread the images are large again.
This is strange. Thanks for your assistance. |
#123
|
|||
|
|||
Quote:
|
#124
|
|||
|
|||
Tested on:
Vbulletin 3.6.8 PL2 5 different styles Tested with: Opera 9 Safari IE6 IE7 Firefox 1.5 Firefox 2.0 All flawless. Great work. |
#125
|
|||
|
|||
Will it possible to have 2 different resize options for both blog and forum?
thanks |
#126
|
||||
|
||||
Anyone want to update this to 3.7?
It seems the vbulletin_global.js file is much different and I can't figure out how to edit it to make this work again. Thanks for any help |
#127
|
||||
|
||||
I haven't installed beta 6 yet, but this hack is working fine for me on beta 5
|
#128
|
||||
|
||||
Quote:
The file I listed above was no where near the content of the old one and I have no clue where to edit it in order to make this work. Maybe they changed the .js file in beta6? |
#129
|
||||
|
||||
I just looked back and yes this file was changed in a recent update... my last one was beta4 and it was like the 3.6.8 version. The new one is uhhhhh very different and hard to read. lol
|
#130
|
||||
|
||||
The issue is they are now compressing the java script files with a standard download, you can select uncrompressed version though when you download your copy on vb, this is new to me and something I was not aware of. Trying to read and edit the compressed version it not something I'm going to tackle. I have a feeling there will be more people finding this the hard was as well.
|
#131
|
||||
|
||||
Here is the fix on 3.7.0 Beta 6 (or work around)
Download the uncompressed version of vBulletin from vbulletin.com members area. Then edit the .js file in the uncompressed version and replace the compressed version with it on your server. By default it seems that the compressed version is standard if you don't select the option of uncompressed. I'm sure this will get others as well with this mod. It's up and running fine on 3.7 now. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|