Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Sign In
Not a member yet? Click here to register.

Resizing pictures in forum

Hi guys!
Maybe someone could shed a light for me. When I make a thread and include a picture with [img][/img] bbcode, the image resizes to much smaller version than I need. How do I leave image in its original size? I have been trying to look in the forum for similar threads and tried to do some steps like changing in img_bbcode_include.php as well as jscript.js files but nothing really helps. Perhaps, I am doing something wrong.

Any help or directions would be appreciated.

Thank you in advance. smile
See your theme for the classes forum-img-wrapper & forum-img, otherwise it is controlled with img_bbcode_include.php where you can apply Bootstrap html to it if you have Bootstrap enabled.

Falk wrote:

@Falk - See your theme for the classes forum-img-wrapper & forum-img, otherwise it is controlled with img_bbcode_include.php where you can apply Bootstrap html to it if you have Bootstrap enabled.


I am using Ddraig theme and tried to look in the css sheet, but yet couldn't find anything close enough that could help fix the problem... I don't really want apply bootstrap as it messes up theme a bit, which causes more pain in the bum. Any ideas what exactly i need to look in the theme? Perhaps there is a code that I can change..

TIA


.·´`·.·´¯`·.› ‹.·´¯`·.·´`·..·´`·.·´¯`·.› ‹.·´¯`·.·´`·..·´`·.·´¯`·.› ‹.·´¯`·.·´`·..·´`·.·´¯`·.› ‹.·´¯`·.·´`·.


Ok I managed to change the code in img_bbcode_include.php
In case someone wants to try here is the code :)

CodeDownload  
if (!defined("IN_FUSION")) { die("Access Denied"); }
 
if (!function_exists("img_bbcode_callback")) {
function img_bbcode_callback($matches) {
if (substr($matches[3], -1, 1) != "/") {
return "<span style='class='forum-img-wrapper'></span><img src='".$matches[1].str_replace(array("?","&","&","="), "", $matches[3]).$matches[4]."' alt='".$matches[3].$matches[4]."'class='<span style=forum</span>-img'</span>";
} else {
return $matches[0];
}
}
}
 
$text = preg_replace_callback("#\[img\]((http|ftp|https|ftps)://)(.*?)(\.(jpg|jpeg|gif|png|JPG|JPEG|GIF|PNG))\[/img\]#si", "img_bbcode_callback", $text);
?>

Thread Information
Author
Replies
3 posts
Views
194 times
Last Post
Last updated on 4 months ago
Related Threads
You can view all discussion threads in this forum.
You cannot set up a bounty in this discussion thread.
You can start a new discussion thread in this forum.
You cannot reply in this discussion thread.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You can download attachments in this forum.
You cannot up or down-vote on the post in this discussion thread.
Users who participated in discussion: Falk, DK666