SimplePortal

Customization => Themes and Graphics => Topic started by: la muerte on August 21, 2012, 06:24:37 AM

Title: Board News Body
Post by: la muerte on August 21, 2012, 06:24:37 AM
Hello, I would like to hide the body for Board News.
Unfortunately this is one of the only blocks that does not come with a No Body option.

What should I modify and in which files?

I run SMF 2.0.2 and SimplePortal 2.3.5
I would like this change to happen for all themes.
Title: Re: Board News Body
Post by: AngelinaBelle on August 21, 2012, 07:20:52 AM
Board News and the Articles block are handled differently from the other blocks.
There is no over all title, and no body for the block.
There are title bars and blocks for each individual post, instead.
This means that the way the other blocks handle the style options simply would not apply to the bodies.

Making a change to this would mean making a change to how the bodies are done.
You can see how the bodies of the Board News and Articles blocks are handled in PortalBlocks.php
You can see how the bodies of other blocks are handled by reading the classic "blocks in blocks" article at http://simpleportal.net/index.php?topic=5332.0
Title: Re: Board News Body
Post by: la muerte on August 21, 2012, 07:37:00 AM
So if I'd just remove the windowbg from the classes on lines 1457 and 1491 on PortalBlocks.php it'd bring my desired result?
Title: Re: Board News Body
Post by: AngelinaBelle on August 21, 2012, 08:25:30 AM
I recommend setting up a test forum and testing that change before you try it on your "live" site. Of course,this will apply to EVERY board news block on your forum.
SimplePortal 2.3.8 © 2008-2024, SimplePortal