Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5


How to Create MyBB Board Messages Without Plugins
#1
How to 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 [/size]and at the bottom of the code on the next available line add the following:

PHP Code:
<div style="text-align: center;"><table border="0" cellspacing="0" cellpadding="4" class="tborder"><tr><td class="thead"><strong>My Board Message</strong></td></tr><tr><td class="trow1">
This is the first board messageedit 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:


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

[Image: mybb-board-messages.jpg]
Reply
#2
Thanks for this tutorial. I was nearly about to download a plugin.
Reply
#3
this is awsome, thanks laot
Reply
#4
(12-17-2014, 09:50 AM)Mr_Devil Wrote:
How to 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 [/size]and at the bottom of the code on the next available line add the following:


PHP Code:
<div style="text-align: center;"><table border="0" cellspacing="0" cellpadding="4" class="tborder"><tr><td class="thead"><strong>My Board Message</strong></td></tr><tr><td class="trow1">
This is the first board messageedit 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:



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

[Image: mybb-board-messages.jpg]

Thankyou very much for this help. actually i am new in creating forums and this would really help me a lot.
Reply
#5
thanks a lot
Reply
#6
Very useful tutorial, thank you.
Reply
#7
Thanks a bunch!
Reply
#8
Thank you!
Reply
#9
Thanks for the tutorial.
Reply
#10
thank you is very help ... ! thank you sooo much
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)