News:

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

Main Menu

Don't show header news item in board index?

Started by Spongy, August 17, 2005, 11:38:02 PM

Previous topic - Next topic

Spongy

No emergency here, but would like to remove the random news item in the top left if they are viewing the board index. It's located at index.template.php around line 260, but my attempt at adding javascript to check the url results in an error. Any help would be appreciated, thanks.

Owdy

Search and destroy

// Show a random news item? (or you could pick one from news_lines...)
if (!empty($settings['enable_news']))
echo '
<div class="headertitles" style="width: 260px;"><img src="', $settings['images_url'], '/blank.gif" height="12" alt="" /></div>
<div class="headerbodies" style="width: 260px; position: relative; background-image: url(', $settings['images_url'], '/box_bg.gif); margin-bottom: 8px;">
<img src="', $settings['images_url'], '/', $context['user']['language'], '/newsbox.gif" style="position: absolute; left: -1px; top: -16px;" alt="" />
<div style="height: 50px; overflow: auto; padding: 5px;" class="smalltext">', $context['random_news_line'], '</div>
</div>';
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

Advertisement: