This is the community forum. For a developer response use the Client Area.
Follow us on Facebook, Twitter and YouTube!

BB Image Size
#1

Hi all, just been checking this project out and it seems perfect for my application, so thanks Smile

One question I have though, I like the option of being able to include images in the replies, however they end up pretty large. Looking through the changelog I see there was an option to limit the BB image size, but I can't find this anywhere in the admin panel. Would it be possible to shrink the image in the comment down to say, 40% width of the comment box, but have it linked to the fullsize image when clicked? Or even just add a html class property to the bb images in the post so I can play around with them in css.

I can probably figure this out from the source files but thought I'd ask before reinventing the wheel Smile

Cheers
Reply
#2

Sorry for the doublepost, but I ran out of edit time.

Looks like I've figured it out in the mean time. I changed it in the includes/functions/processor.php file, line 1076-ish in case anyone else was wondering Smile

Code:
return '<a href="' . $matches[1] . '" target="_blank"><img src="' . $matches[1] . '" class="cmtx_comment_img"/></a>';

And add .cmtx_comment_img in the stylesheet. It'll open the fullsize image into a new window/tab Smile
Reply


Possibly Related Threads…
Thread / Author Replies Views Last Post
Last Post by msp
09-Jan-2016, 01:32 AM
Last Post by skilife
13-May-2012, 01:11 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)