MyBB Community Forums

Full Version: Header Announcements
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hello Guys!

Plugin: Header Announcements

Header Announcements is my second plugin for MyBB .

Version: 1.0

Description:
This plugin allows you add your announcements (like: Warnings , News , Advertisements and etc) in a styled box in header.

Activation:
1- Upload inc/plugins/headerannounce.php To Your Host.
2- Go To ACP --> Plugins --> Header Announcements And Active The Plugin.
3- Go To ACP --> Configuration --> Header Announcements To On The Plugin And Enter Your Announcements.

Deactivation:
Go To ACP --> Configuration --> Header Announcements Off The Plugin.

Download:
http://mods.mybb.com/view/header-announcements


Turkish: (Translator: Bomfile)
[attachment=19705]

Best Regards ,

Mohammad Zangeneh (kevin-1372) - www.MyBBIran.com
Turkish:
[attachment=19704]
Great job...looks good.
i changed the announcement but it doesnt show up. Pls go to www.jen_vuongyen.byethost10.com/forums

And here my HTML for my announcement:

<div style="text-align: center;"><font style="color: rgb(255, 191, 223);" size="5"><span style="font-style: italic; font-family: Times New Roman,Times,serif;">Forums đang trong quá trình hoàn thiện!</span></font><br style="font-style: italic; font-family: Times New Roman,Times,serif;"></div>

Pls help me out! Thanks!
(2010-12-03, 09:07 AM)Jen_Vuongyen Wrote: [ -> ]i changed the announcement but it doesnt show up. Pls go to www.jen_vuongyen.byethost10.com/forums

And here my HTML for my announcement:

<div style="text-align: center;"><font style="color: rgb(255, 191, 223);" size="5"><span style="font-style: italic; font-family: Times New Roman,Times,serif;">Forums đang trong quá trình hoàn thiện!</span></font><br style="font-style: italic; font-family: Times New Roman,Times,serif;"></div>

Pls help me out! Thanks!

Try this;
<div style="text-align: center;">
<font style="color: rgb(255,191, 223);" size="5">
<span style="font-style: italic; font-family: Times New Roman,Times,serif;">
$mybb->settings['announcmentcode']}
</span>
</font>
<br style="font-style: italic; font-family: Times New Roman,Times,serif;">
</div>
what do u mean by that??? Where should I put that code u provided??
This plugin doesnt work anymore,does it??
Because I installed it, activated it and set it exactly as the picture said, but i didnt work =(((
Add the above code in header template and add announcements from AdminCP > Configurations > Announcements >
@ Yaldaram : u mean the "headerannounce" ~ :-S

I've tried! There was already some code so I simply paste ur code under the old on. And then I went to Config-> There is no annoument :| I'm sorry Sad
(2010-12-03, 09:59 AM)Yaldaram Wrote: [ -> ]Try this;
<div style="text-align: center;">
<font style="color: rgb(255,191, 223);" size="5">
<span style="font-style: italic; font-family: Times New Roman,Times,serif;">
$mybb->settings['announcmentcode']}
</span>
</font>
<br style="font-style: italic; font-family: Times New Roman,Times,serif;">
</div>
I don't suggest using this code as it uses deprecated tags or wrong validation standards. Try the following:

<div align="center">
<span style="color: #FFBFDF;font-style: italic;font-family: Times New Roman,Times,serif;font-size: 5;">
{$mybb->settings['announcmentcode']}
</span>
<br />
</div>
That code should work.
(2010-12-03, 02:13 PM)Jen_Vuongyen Wrote: [ -> ]I've tried! There was already some code so I simply paste ur code under the old on. And then I went to Config-> There is no annoument :| I'm sorry Sad

Sorry, I forgot to add a "{" in the code posted above (on my post). Now try this;

<div style="text-align: center;">
<font style="color: rgb(255,191, 223);" size="5">
<span style="font-style: italic; font-family: Times New Roman,Times,serif;">
{$mybb->settings['announcmentcode']}
</span>
</font>
<br style="font-style: italic; font-family: Times New Roman,Times,serif;">
</div>

or the one posted by Kyuubi above. Either code should work.
Pages: 1 2