Recent news to sidebar


By Elena 3 April 2015 08:06

Member · 3 comments

I have made news "box" to sidebar which shows 5 recent news from forum News. How do i hide that News forum, so it wont show in the sidebar or the fronpage like other forums.

Last edited by Elena (3 April 2015 12:05)


By Yannick 3 April 2015 20:27

Administrator · 1,457 comments

You can simply check for the forum ID, like

if (isset($cur_forum)) {
    if ($cur_forum['id'] == 0) {
You html and other stuff you want to show in forum "0" in this example

I'm note sure this works as I made it up right here, but it should be something very similar if it doesn't work. Either way, you have to replace the "0" with the id of the board you want it to be visible in.

You can do anything