![]() |
Another BB tag to resized linked images
Not a hack as no editting of PHP files are involved, though I'd like to share it.
What it does ? When users link images, at times the images linked are a tad too big for your forum layout and spoils the look of the page. This new bb code, provided the images are linked using this BB code, will allow smaller thumbnails to retain the layout of the page. The image is not resized per se, it is just viewed as resized so that it would not spoil the page layout. ------------------------------------------------------- Steps to perform Add a new BB code ( AdminCP -> Custom vB Codes -> Add vB Code tag PHP Code:
PHP Code:
PHP Code:
Select No. ------------------------------------------------------- Notes: Thumbnail sizing is proportionate. It can be changed by altering the value 600 in the code replacement bit. ------------------------------------------------------- Hope this proves useful. :) |
Once done, to use this , simply put the image to be linked btw the following tags :
PHP Code:
|
Sorry , just an update on this :
I have found that you need to do an SQL Query first for this to work without errors ( without doing this step , I encountered errors in the admincp when adding the code replacement ) Run the following query: PHP Code:
|
And while checking around for how to make current linked images ( ie those using [ img] tags ) similiarly resized, chanced upon some code provided by Zzed in one of his hacks (here) which can be used here as well.
In admin/functions.php: Look for: PHP Code:
PHP Code:
|
This works great except for people who have image signatures :\
|
That's something that I have not found a work around yet however as ALL img tags will be amended to use img2 :(
However if the images in their sigs are that big that they must be resized.... woah.... :D |
im pretty sure there is a mod at www.vbulletintemplates.com which re-sizes signature images. I think it worked that if they had an image over the limit, it cut the image too the proper size.
|
I tried this on 2 test platforms (vB 2.3.2) and I cant get it to resize the pictures at all no matter what numeric value I put in. Any ideas?
Thanks! Chris |
All times are GMT. The time now is 01:03 PM. |
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:
|