MyBB Community Forums

Full Version: Multiple announcements
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How can I put multiple color announcements just like this forum?
I see the plugin for the color announcements but not multiple ones.
Use CSS.

Example:

<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> 

And then to add a bar with that style:

<p class="newsbar_blue">Information:<a href="URL GOES HERE">Check out the new announcement bar</a></p>

First block goes straight after {$headerinclude}, second bit goes straight after {$header}, both on the index template. The 'newsbar_blue' is the name and needs to be the same in both bits of code.
For some reason its not working for me. Confused
I put the css in the css file of my theme. and then added the second code to the index template.
Is that good?
Well... there's not a lot that can go wrong with it Undecided How exactly isn't it working?? And have you edited the correct template set for the theme you're viewing??

EDIT: No, please re-read my post. I said they both go in the index template.
Alright I manager to make it appear, but it is really spaced apart from the other, take a look:
http://boricua86.co.cc
Yeah if you have the plugin installed there is a big gap. Deactivate the plugin and add new CSS blocks to get new bars closer together.
May I ask how you got MKPortal for mybb 1.4#

I looked on the MKPortal website and it's only for 1.2.x
There is a mod for patching MkPortal files. Wink
Look in the mods section of MkPortal.
(2008-10-23, 09:01 PM)MyBB Workshop* Wrote: [ -> ]May I ask how you got MKPortal for mybb 1.4#

I looked on the MKPortal website and it's only for 1.2.x

(2008-10-24, 12:20 PM)flash.tato Wrote: [ -> ]There is a mod for patching MkPortal files. Wink
Look in the mods section of MkPortal.

Yup there is a "hack" that modifies the files it uses to connect to the database.
I put:
{$color_announce}

In the index template.

Then I put the css in the css file.

then I made a template for color_announce in global templates with:
<p class="newsbar_blue">Information:Changed the smilies of the whole site.</p>

And the box doesn't appear. It there anything wrong woth the above?