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.
Not a member yet? Click here to register.
Forgot Password?

resize default image on forum

Asked Modified Viewed 7,508 times
2
29sd102
2
  • Member, joined since
  • Contributed 107 posts on the community forums.
  • Started 26 threads in the forums
  • Started this discussions
asked
Member

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
0 replies

12 posts

C
Craig
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
answered
Fusioneer

includes/forum_includes.php
0 replies
2
29sd102
2
  • Member, joined since
  • Contributed 107 posts on the community forums.
  • Started 26 threads in the forums
  • Started this discussions
answered
Member

Thanks fangree.


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


102
0 replies
C
Craig
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
answered
Fusioneer

Quote

29sd102 wrote:

Any thing for linked pictures please, ( img)


Please explain more?
0 replies
S
starefossen
S
www.postexus.com - Follow Postexus on Facebook.
  • Senior Member, joined since
  • Contributed 359 posts on the community forums.
  • Started 20 threads in the forums
answered
Senior Member

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 :)
0 replies
2
29sd102
2
  • Member, joined since
  • Contributed 107 posts on the community forums.
  • Started 26 threads in the forums
  • Started this discussions
answered
Member

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
0 replies
C
Craig
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
answered
Fusioneer

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 :)
0 replies
2
29sd102
2
  • Member, joined since
  • Contributed 107 posts on the community forums.
  • Started 26 threads in the forums
  • Started this discussions
answered
Member

changed to 700 by 700

Still coming up as 300 by 192,, as before as per my post above
0 replies
H
HobbyMan
H
Just some Guy
  • Veteran Member, joined since
  • Contributed 1,486 posts on the community forums.
  • Started 91 threads in the forums
answered
Veteran Member

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
0 replies
S
starefossen
S
www.postexus.com - Follow Postexus on Facebook.
  • Senior Member, joined since
  • Contributed 359 posts on the community forums.
  • Started 20 threads in the forums
answered
Senior Member

Ops, my bad... I'm so into v7.01 these days, can't think of anything else :P
0 replies
H
HobbyMan
H
Just some Guy
  • Veteran Member, joined since
  • Contributed 1,486 posts on the community forums.
  • Started 91 threads in the forums
answered
Veteran Member

Hehe, keep your head there! We're all looking forward to it ;)
0 replies
2
29sd102
2
  • Member, joined since
  • Contributed 107 posts on the community forums.
  • Started 26 threads in the forums
  • Started this discussions
answered
Member

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
0 replies
— 1 year later —
W
WEC
W
WEC 10
  • Veteran Member, joined since
  • Contributed 946 posts on the community forums.
  • Started 5 threads in the forums
answered
Veteran Member

Searching for resize forum image brigs up this one:

http://www.php-fusion.co.uk/forum/vie...ost_145327
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 12 posts
  • Votes 0 votes
  • Topic users 5 members

5 participants

C
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
W
W
WEC 10
  • Veteran Member, joined since
  • Contributed 946 posts on the community forums.
  • Started 5 threads in the forums
S
S
www.postexus.com - Follow Postexus on Facebook.
  • Senior Member, joined since
  • Contributed 359 posts on the community forums.
  • Started 20 threads in the forums
H
H
Just some Guy
  • Veteran Member, joined since
  • Contributed 1,486 posts on the community forums.
  • Started 91 threads in the forums
2
2
  • Member, joined since
  • Contributed 107 posts on the community forums.
  • Started 26 threads in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet