Topic: PunBB 1.3.4 Announcements section

Hi Guys.

I require some assistance please.

How do i make the Announcements section only appear on the index page?

When you click on the administration link the Announcements section gets hidded.....similarly i would like to hide this everywhere else out of the index page on all categories.....is this possible?

Re: PunBB 1.3.4 Announcements section

You need to edit the 176 line of "<FORUM_ROOT>/header.php". It will look like:

$gen_elements['<!-- forum_announcement -->'] = ($forum_config['o_announcement'] == '1' && $forum_user['g_read_board'] == '1' && FORUM_PAGE == 'index') ? '<div id="brd-announcement" class="gen-content">'.($forum_config['o_announcement_heading'] != '' ? "\n\t".'<h1 class="hn"><span>'.$forum_config['o_announcement_heading'].'</span></h1>' : '')."\n\t".'<div class="content">'.$forum_config['o_announcement_message'].'</div>'."\n".'</div>'."\n" : '';

3

Re: PunBB 1.3.4 Announcements section

Realy good. Anyoing as hell to have that box on every sub forum