SimplePortal

Support => English Support => Topic started by: Zirc on November 08, 2009, 04:32:53 AM

Title: News Block Image resizing issue
Post by: Zirc on November 08, 2009, 04:32:53 AM
I am using the News block to post news items on the front page of my portal and would like to have images in there as well.  Problem is when I post them in the forums they look great just the size I want them, but when I go to the Home and look at the block the image is resized to less than half of the original size.  Is there a way to disable that feature because I know what size to resize my images to make them look right on the home page.  I have SMF 1.1.10 and SP 2.3.1

Any help would be great,
Thanks
Title: Re: News Block Image resizing issue
Post by: Nathaniel on November 08, 2009, 05:24:32 PM
There is a 'Resizes images on portal' setting in the "SimplePortal -> Configuration -> General Settings" area which is enabled by default. Disable that setting and it should work how you want.
Title: Re: News Block Image resizing issue
Post by: Zirc on November 08, 2009, 07:30:12 PM
Thanks I can't believe I missed that.  Topic solved.
Title: Re: News Block Image resizing issue
Post by: Zirc on November 12, 2009, 07:59:13 PM
Okay I was thinking about this again.  I really like having the full size image in my news block on the portal page, it's an MMO guild website and screenshots on the front page are always nice.  Anyway I now see the issue with disabling the image resize for the news block when the screen gets narrower the right side blocks overlap it. 

My question is would it be possible to set the center blocks to a certain width and then if the screen narrowed too much the center blocks would then get horizontal scroll bars?  For myself I would rather have that be the case than having to shrink the image to an unviewable size or having overlap.  This would be an acceptable solution. 

Ideally though it would be great if just the image got a horizontal scroll bar like it does in the actual forum post. 

Any ideas on how to accomplish either of those two wishes?

I can get screenshots if desired.
Title: Re: News Block Image resizing issue
Post by: Zirc on November 27, 2009, 07:06:36 PM
I finally got the solution figured out that I was looking for and for the dev's I haven't had any bugs so maybe this could be an update or something.  If you do what I say listed below all center news blocks will shrink as the window is narrowed just like before, but if there is an image or video in the news post then a horizontal scroll bar will appear if the block gets too narrow, no more image overflow into the other blocks.

Here is what I did:

Themes/default/portal.css

Find:
Code: [Select]
div.sp_block
{
overflow: auto;
}

Add after:
Code: [Select]
div.sp_block_center
{
overflow-x: auto;
}

Sources/PortalBlocks.php

Find on line 1560:
Code: [Select]
<div class="tborder">

Replace with:
Code: [Select]
<div class="sp_block_center">
Thats it!  If you see an issue with what I did let me know. 

If you want to see how it works just go to http://www.tholeweb.com/forums (http://www.tholeweb.com/forums)
SimplePortal 2.3.8 © 2008-2024, SimplePortal