MyBB Community Forums

Full Version: How to Post Announcements at Top of Home Page
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I was wondering how you post announcements like they have at the top of the MyBB Forum homepage.

I was able to post an announcement in the all forums, but not on the homepage...

-
Could you be a little more specific?

If you mean homepage such as your portal then you have to activate the portal plugin by Dennis Tsang in your AdminCP.

Steps:
1) Login to AdminCP
2) Configuration Settings
3) Plugins
4) Activate Portal Redirect

Make sure your portal settings are set to the correct FID or Forum ID inside Portal Settings.
http://community.mybboard.net/thread-40446.html

I think that's what your looking for.

http://mods.mybboard.net/view/news-bar

That's basically it in plugin form.
Thanks - I installed that plugin and got it to work, but I don't understand the system it uses to 'pull' announcement from certain forum #'s.

I tried 0-6 and it posted different messages from different forums, but I'd understand the FORUM NUMBERS.

I'd like it to show the post that's here:
http://knowledgeresearchforum.org/welcom...9-a-2.html

and have no idea how to set it to do that...

-
You can't have it find a Announcement you posted using AdminCP or ModCP, only normal posts from like a news area inside your site.
How would I make it show this normal thread?

http://knowledgeresearchforum.org/new-kn...-t-96.html

Can you explain what FORUM ID is?

Thanks!

-
That specific post is not a FORUM ID it has a thread ID which is 96. Personally you can try using the thread ID I don't know if it will work, but you could put this custom code inside your header. Ill customize it for your forums thread.

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. 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">Announcement: <a href="http://knowledgeresearchforum.org/new-knowledge-research-forum-founded-july-26-2009-t-96.html">New Knowledge Research Forum - Founded July 26, 2009</a></p> 


Source: "http://www.community.mybboard.net/thread-40446.html"

Thanks,
- Aaron