News:

Wondering if this will always be free?  See why free is better.

Main Menu

Remove Items from 1 board's display

Started by DeadMan..., March 28, 2023, 05:03:55 PM

Previous topic - Next topic

DeadMan...

Okay, working on a site that has something in one board showing via a portal block.
I'd like to set the board up so nothing else is seen, as it won't be for posting.
Want to remove all in the image, which I know, is basically everything.

You cannot view this attachment.
I tell it how I see it... Don't like it? Hit Alt+F4!

Kindred

Ok, and? so build a theme that does that
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

DeadMan...

I'd like to know if it can be done?
Hopefully via css.
I've tried to display:none some parts, but it would not work.
I tell it how I see it... Don't like it? Hit Alt+F4!

Diego Andrés

Could add your condition in the boardindex.template.php, or enable a custom theme for that board like Kindred says.
It would be a duplicate from the default theme, but with a custom boardindex.template.php, instead of using a conditional, you remove stuff.

SMF Tricks - Free & Premium Responsive Themes for SMF.

Diego Andrés

Quote from: DeadMan... on March 28, 2023, 07:23:35 PMI'd like to know if it can be done?
Hopefully via css.
I've tried to display:none some parts, but it would not work.

Yes it's possible with css.

body.board_{board_id} #main_content_section,
body.board_{board_id} .navigate_section {
    display: none;
}

SMF Tricks - Free & Premium Responsive Themes for SMF.

DeadMan...

Quote from: Diego Andrés on March 28, 2023, 07:30:32 PMYes it's possible with css.

I had to modify it a bit:

body.board_{board_id} .information,
body.board_{board_id} .navigate_section, body.board_{board_id} .pagesection, body.board_{board_id} #main_content_section .pagesection, body.board_{board_id} #messageindex {
    display: none;
}

If left the #main_content_section there, it also removed the TinyPortal block I want shown.
Thank you for the help, my friend!
I tell it how I see it... Don't like it? Hit Alt+F4!

Advertisement: