Uutiset:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu
Advertisement:

Needing to Remove the news box

Aloittaja Norcalavalancheclub, elokuu 29, 2006, 08:02:05 IP

« edellinen - seuraava »

Norcalavalancheclub

I want to keep the news fader below the tool bar, I just dont want the news box at the top of the screen.

How would I go about just disabling the code for this section without deleting it so it can be restored at a later time.

Also what section of code do I need to do this to.


codenaught

Search for the news code in Themes/theme_name/index.template.php. One good way to find it is searching for the comment

// Show a random news item? (or you could pick one from news_lines...)

You should see a an opening <div class="headertitles" and closing </div> later on. You should probably just be able to comment out that code. So for the babylon theme it would look like this:

// 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>';
*/


Noticing how I put those comments in the code /* */
Dev Consultant
Former SMF Doc Coordinator

crazystu

I believe there is an option in the theme settings.

codenaught

Lainaus käyttäjältä: nesianstyles - elokuu 30, 2006, 06:56:49 IP
I believe there is an option in the theme settings.
Your right >_< I forgot. I should have noticed the if (!empty($settings['enable_news'])) part. :)
Dev Consultant
Former SMF Doc Coordinator

Norcalavalancheclub

thanks to all that helped and prodived the answers !  ;D


Advertisement: