PDA

View Full Version : Js header greeting



admin
12-09-2010, 01:06 PM
Basically this script will either say:

Good morning | time is between 4am and 12
Good afternoon | time between 12 and 20
Good evening | ime between 20 and 4am

go to "header" and search for:

<li class="welcomelink">{vb:rawphrase welcome_x_link_y, {vb:raw bbuserinfo.username}, {vb:link member, {vb:raw bbuserinfo}}}</li>

Change it to:

<li class="welcomelink"><script type="text/javascript" src="clientscript/welcome.js"></script> {vb:rawphrase welcome_x_link_y, {vb:raw bbuserinfo.username}, {vb:link member, {vb:raw bbuserinfo}}}</li>

Go to Search In Phrases and search for:

Welcome, <a href="{2}">{1}</a>

Change it to:

, <a href="{2}">{1}</a>

add the welcome.js to the "clientscript/ " folder and your done.

Hope it works for you!

Screenshots:
http://img.photo.zing.vn/file_uploads/gallery/1024x768/2010/09/12/01/46801284271570.png