Adding a Dynamic Welcome Message 12-23-2013, 09:28 PM
#1
Ok today I will be showing you how to Make a dynamic welcome message
Open Your Templates and go to your header templates then Member Template after you want to add this code to the top
Then you want to remove the code
and replace with
Source & Credit: Burned Designs
Open Your Templates and go to your header templates then Member Template after you want to add this code to the top
Code:
<script type="text/javascript"><!--
var d = new Date();
var n = d.getHours();
if (n < 4)
{
document.write("<b>Still awake? </b>");
}
else if (n < 10)
{
document.write("<b>Good Morning!</b>");
}
else if (n < 16)
{
document.write("<b>Good Day!</b>");
}
else if (n < 20)
{
document.write("<b>Good Evening!</b>");
}
else
{
document.write("<b>Night time!</b>");
}
//-->
</script>Then you want to remove the code
Code:
{$lang->welcome_back}and replace with
Code:
<a href="{$mybb->settings['bburl']}/member.php?action=profile" id="edit_post_{$post['pid']}" >
<strong>
{$mybb->user['username']}
</strong >Source & Credit: Burned Designs



![[+]](https://sinister.ly/images/modern/collapse_collapsed.png)

I have no clue what any of this means but It looks cool xD