Create MyBB Board Messages Without Plugins


Using MyBB board messages as global announcements displayed throughout your forum is a great way to get everyone’s attention, usually for MyBB this is done using plugins or modifications, but in this tutorial you can create your own MyBB board messages without running SQL queries on every page by adding a little code to your forum.

Go to Admin CP > Templates & Style > Templates > (your default template) > Header Templates > header and at the bottom of the code on the next available line add the following:

<div style="text-align: center;"><table border="0" cellspacing="0" cellpadding="4"><tr><td><strong>My Board Message</strong></td></tr><tr><td>
This is the first board message, edit me to add your announcement.
</td></tr></table></div><br />

A new MyBB board messages box should appear on every page of your forum now, it uses HTML format.
It’s very simple but very customizable if you know basic HTML.
For example if you want to be fancy you can add different colors to the text such as highlights, example code:

<div style="text-align: center;"><table border="0" cellspacing="0" cellpadding="4"><tr><td><strong>My Board Message</strong></td></tr><tr><td>
<span style="background-color: #BAFFBF;"><strong>This is the first board message, edit me to add your announcement.</strong></span><br />
<span style="background-color: #F0FFBA;">This is the second board message, edit me to add your announcement.</span><br />
<span style="background-color: #FFBABA;">This is the third board message, edit me to add your announcement.</span>
</td></tr></table></div><br />

 

And the result like this in my forum

board message

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s

%d blogger menyukai ini: