Hii everyone, This is my first time working with MCCodes and I decided to update the mailbox a little as it could do with a little update :)
I haven't been programming very long at all, I am new to all this but here goes.
The icons used on this mailbox are from Silk Icons (free)
Please note: This mailbox uses functions which are not in the standard MCCode engine, please place this into your global_func.php (Will be used on future modules)
/* MESSAGE BOXES */
function info($text)
{
echo "<div class='message-box info'><p>", $text, "</p></div>";
}
function success($text)
{
echo "<div class='message-box success'><p>", $text, "</p></div>";
}
function alert($text)
{
echo "<div class='message-box alert'><p>", $text, "</p></div>";
}
function error($text)
{
echo "<div class='message-box error'><p>", $text, "</p></div>";
}
function general($text)
{
echo "<div class='message-box general'><p>", $text, "</p></div>";
}
/* END MESSAGE BOXES */
CSS for message boxes
/* MESSAGE BOXES */
.message-box {
text-align: center;
padding: 5px;
color: #000;
width: 85%;
margin: 5px auto;
line-height: 20px;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
}
.general {
background-color: #efefef;
border: 1px solid #dedede;
}
.info {
background-color: #f7fafd;
border: 1px solid #b5d3ff;
}
.success {
background-color: #d7f7c4;
border: 1px solid #82cb2f;
}
.alert {
background-color: #fef5be;
border: 1px solid #fdd425;
}
.error {
background-color: #ffcdd1;
border: 1px solid #e10c0c;
}
/* END MESSAGE BOXES */
mailbox.php
Pastebin (mailbox.php) (Code placed on pastebin due to issues with <br /> on forum.)
Screenshots
[ATTACH=CONFIG]1402[/ATTACH][ATTACH=CONFIG]1403[/ATTACH][ATTACH=CONFIG]1404[/ATTACH][ATTACH=CONFIG]1405[/ATTACH][ATTACH=CONFIG]1406[/ATTACH]
Added Screenshots
[ATTACH=CONFIG]1408[/ATTACH][ATTACH=CONFIG]1409[/ATTACH]
Okies, that should be all I hope, If you encounter errors/problems, post here I will try to fix.
Thank you! ^_^