I could have sworn there was a tutorial here on this already but there isn't (unless I have infact gone blind)... this is in the Wiki somewhere but I wrote this myself (says pretty much the same stuff though).
On the MyBB community forums, there is a 'newsbar' at the top of the index page, under the welcomeblock. This is useful for things such as making a specific thread more noticeable, giving a general message, making a global announcement, etc etc. It's easy to set up, here's how.
Go to 'ACP --> Templates & Style --> Templates --> **expand template set** --> Index Templates --> index'. Find:
And directly underneath, add this code:
This will give a light blue background with a dark blue border. Colours should be in HEX code format; colour codes can be found here. All of this is fully customizable, this is just an example. This particular style is called 'newsbar_blue'. To add the newsbar to your index, add this code wherever you want it (normally under {$header}):
Here, you must make sure the name is the same as the name given to the CSS code. You can put anything you want where it says, and format it with HTML. For example, you could have:
You can add multiple CSS blocks and multiple newsbars.
Enjoy
On the MyBB community forums, there is a 'newsbar' at the top of the index page, under the welcomeblock. This is useful for things such as making a specific thread more noticeable, giving a general message, making a global announcement, etc etc. It's easy to set up, here's how.
Go to 'ACP --> Templates & Style --> Templates --> **expand template set** --> Index Templates --> index'. Find:
{$headerinclude}
And directly underneath, add this code:
<style type="text/css">
.newsbar_blue {
background: #CCCCFF;
border-top: 2px solid #000033;
border-bottom: 2px solid #000033;
border-left: 2px solid #000033;
border-right: 2px solid #000033;
text-align: center;
margin: 10px auto;
padding: 5px 20px;
font-weight: bold;
}
</style>
This will give a light blue background with a dark blue border. Colours should be in HEX code format; colour codes can be found here. All of this is fully customizable, this is just an example. This particular style is called 'newsbar_blue'. To add the newsbar to your index, add this code wherever you want it (normally under {$header}):
<p class="newsbar_blue">Whatever you want here</p>
Here, you must make sure the name is the same as the name given to the CSS code. You can put anything you want where it says, and format it with HTML. For example, you could have:
<p class="newsbar_blue">Forum: <a href="http://www.learnmybb.com">Learn MyBB</a></p>
You can add multiple CSS blocks and multiple newsbars.
Enjoy