2008-10-23, 04:58 PM
2008-10-23, 05:03 PM
Use CSS.
Example:
And then to add a bar with that style:
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.
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.
2008-10-23, 05:34 PM
For some reason its not working for me.
I put the css in the css file of my theme. and then added the second code to the index template.
Is that good?
I put the css in the css file of my theme. and then added the second code to the index template.
Is that good?
2008-10-23, 05:36 PM
Well... there's not a lot that can go wrong with it 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.
EDIT: No, please re-read my post. I said they both go in the index template.
2008-10-23, 05:40 PM
Alright I manager to make it appear, but it is really spaced apart from the other, take a look:
http://boricua86.co.cc
http://boricua86.co.cc
2008-10-23, 05:42 PM
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.
2008-10-23, 09:01 PM
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
I looked on the MKPortal website and it's only for 1.2.x
2008-10-24, 12:20 PM
There is a mod for patching MkPortal files.
Look in the mods section of MkPortal.
Look in the mods section of MkPortal.
2008-10-24, 01:36 PM
(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.
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?