Log in

View Full Version : Forum Home Enhancements - Js header greeting


johncosta71292
09-10-2010, 10:00 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!

Alec W
09-12-2010, 05:10 PM
Thanks

synseal
09-13-2010, 08:28 AM
Hi, is there a difference with your mod and these other 2,

https://vborg.vbsupport.ru/showthread.php?t=244519&highlight=greeting

https://vborg.vbsupport.ru/showthread.php?t=244573&highlight=greeting

max2008
09-13-2010, 10:07 AM
thanks alot for the MOD,
installed , and working perfectly on VB 4.0.3

Lostboyfan
08-11-2011, 09:01 PM
Tagged for later. I will for sure use this on my site.

victorvu
08-12-2011, 04:26 AM
Thanks for the mod. It is lovely.

Victor:up:

alghzil
05-15-2012, 12:47 PM
very nice

for arabic users use this file

xixxon
05-19-2012, 12:19 AM
<a href="https://tinyurl.com/greetingsv2b" target="_blank">http://tinyurl.com/greetingsv2b</a>
Oh my god, since 2009