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.

Resize default image on forum

Hi .

When an "img" link is posted on a forum thread the size is 300 by 192.
Can anybody help me to change this to 640 by 480.

I know clicking on the image will bring it to full size, but i would like the picture on the forum to be bigger.

thanks in advance

pat
includes/forum_includes.php
Thanks fangree.


That changes attached images size,,
Any thing for linked pictures please, ( img)


102

Quote

29sd102 wrote:

Any thing for linked pictures please, ( img)


Please explain more?
Open this file:
../include/bbcode/img_bbcode_include.php

Find thise code:
return "<span style='display: block; width: 300px; max-height: 300px; overflow: auto;' class='forum-img-wrapper'><img src='".$matches[1].str_replace(array("?","&amp;","&","="), "", $matches[3]).$matches[4]."' alt='".$matches[3].$matches[4]."' style='border:0px' class='forum-img' /></span>";


Change 300px x 300px to what suits your site :)
CodeDownload  
if (!defined("IN_FUSION")) { die("Access Denied"); }$text = preg_replace("#\[img\]((http|ftp|https|ftps)://)(.*?)(\.(jpg|jpeg|gif|png|JPG|JPEG|GIF|PNG))\[/img\]#sie","'<span style=\'display: block; width: 700px; max-height: 700px; overflow: auto;\' class=\'forum-img-wrapper\'><img src=\'\\1'.str_replace(array('?','&amp;','&','='),'','\\3').'\\4\' alt=\'\\3\\4\' style=\'border:0px\' class=\'forum-img\' /></span>'",$text);?>



changed to 700 by 700

Still coming up as 300 by 192,, as before

102

Quote

starefossen wrote:
Open this file:
../include/bbcode/img_bbcode_include.php

Find thise code:
return "<span style='display: block; width: 300px; max-height: 300px; overflow: auto;' class='forum-img-wrapper'><img src='".$matches[1].str_replace(array("?","&amp;","&","="), "", $matches[3]).$matches[4]."' alt='".$matches[3].$matches[4]."' style='border:0px' class='forum-img' /></span>";


Change 300px x 300px to what suits your site :)
changed to 700 by 700

Still coming up as 300 by 192,, as before as per my post above
The code Stare is quoting is from v7.01

You will also need to edit function display_image in includes/forum_include.php

lines 95-109
Ops, my bad... I'm so into v7.01 these days, can't think of anything else :P
Hehe, keep your head there! We're all looking forward to it ;)
Sorry to go on guys,
I have changed all to 700.. still the same,.

image on post is 300 by 192

http://www.dx27.net/forum/viewthread.php?thread_id=912
Thread Information
Author
Replies
13 posts
Views
6905 times
Last Post
Last updated on 9 years 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: Craig, WEC, starefossen, HobbyMan, 29sd102