Is there any way to resize images that visitors put in my guestbook?
Hello,
yes, this is a simple way to make You happy: (whatever, You ask 5 month ago
)
All what You need it's to add some class to images on guestbook. Ok, let's go:
0:/../components/com_easybook/helpers/content.php
in line 36:
if ($ebconfig->get('support_pic', false)) $message = preg_replace("#\[img\](.*?)\[/img\]#si", "<img src=\"\\1\" />", $message);
You must add something like this:
if ($ebconfig->get('support_pic', false)) $message = preg_replace("#\[img\](.*?)\[/img\]#si", "<img src=\"\\1\" class='message_images' />", $message);
I add class='message_images', but it's Your choose what class name You set.
Last thing what You need to do, it's add css code to You webside, something like this:
#easybook .easy_content img.message_images {width: 400px;}
regards.