News:

Wondering if this will always be free?  See why free is better.

Main Menu

BB Code [img] tag resizing

Started by Phil Auriemma, February 02, 2010, 02:11:38 PM

Previous topic - Next topic

Phil Auriemma

Hey guys,
Is there any way to modify SMF to make pictures posted with BBCode img tags resize to thumbnail size, and then link to a full size picture elsewhere on the server? It's really annoying because all pictures are displayed at full size when using img tags, so if you post a 5000x5000 image, it will be displayed that big.

Phil Auriemma


greyknight17

Welcome to SMF.

Try using this mod to see if it will do what you need here.

Senkusha

#3
There is a way to resize the images.

First, you can modify the bbc.img code in the index.css file.  You can force the image to whatever size you want there.  Second, you can control the size by adding the width tag:


[img width=200]http://mypic.jpg[/img]


I'm not sure if there is anyway to link to the full size though.

Another option would be to encourage your members to post the images as attachments, which I believe there is an option to resize as thumbnails.  Clicking on the thumbnailed attachment would open the full size.

Edit:  Oh, in your Features and Options under Layout, you can force a max size of images.  That may help too.
--Senkusha
The Anime Brigade
Anime-style Role Playing Games and Discussion.
(SMF v. 2.1.4, PHP v. 8.0)

Advertisement: