Back to Programming Articles

New Image Tag to reduce Imagesize
by utw-Mephisto 14 Aug 2005

I had this done with Deaths with version 3.0.7 but it applies here as well of course.

This is not really professional but ey, it works for me

To post an image you usually use [IMG].

You can create another tag, let's say [IMGO] for oversized images.

Go to your admincp

Admincp => Custom BB Codes => Add New BB Code

Title : Whatever you want
Tag : imgo
Replacement : <a href="{param}" target="_blank"><img border="0" width="400" alt="Thumb resize." src="{param}" /></a>
Example : [imgo]http://img96.imageshack.us/img96/7499/gibraltar12804sx.jpg[/imgo] (you need an example otherwise it will displays only the link)
Description : Whatever you want
Use {option} : No
Button Image (Optional) : Well, optional

As I said, it is not the best, professional one, but usefull. The dark side of that one is when using with picture smaller than 400 pixel width It'll be resized also ....

Original Post / Version 3.0.7

vblts.ru supports vBulletin®, 2022-2024