Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Aiheen aloitti: rv77 - kesäkuu 08, 2011, 06:17:36 AP

Otsikko: What to do if images are wider than the allowed max image width?
Kirjoitti: rv77 - kesäkuu 08, 2011, 06:17:36 AP
Hi.

I've converted a phpbb theme to smf2, and i don't quite know how to get a variable "wrapper" width going.
So i was thinking of limiting [img] width to the max width of my wrapper.

But then i'd really like a mod that allows users to post wider images, which are then
a) capped in size by <img style="width:xxx;"> when displayed in a thread
b) allowed to be clicked on by the user, bringing up a lightbox to view the image in more detail.

if such a mod does not exist yet, and i just browsed all the mods and didnt find it,
how would i go about building such a thing?
Otsikko: Re: What to do if images are wider than the allowed max image width?
Kirjoitti: kat - kesäkuu 08, 2011, 09:51:30 AP
Have a look at the "Highslide" mod. ;)