Login Register






Adding a Dynamic Welcome Message filter_list
Author
Message
Adding a Dynamic Welcome Message #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
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

Reply





Messages In This Thread
Adding a Dynamic Welcome Message - by Cyan - 12-23-2013, 09:28 PM