Back to vBulletin 4.x Template Modifications

Js header greeting
Mod Version: 1.00, by johncosta71292

vB Version: 4.0.5 Rating: (1 vote - 4.00 average) Installs: 12
Released: 11 Sep 2010 Last Update: 11 Sep 2010 Downloads: 69
Not Supported Template Edits Re-usable Code  

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:
Code:
<li class="welcomelink">{vb:rawphrase welcome_x_link_y, {vb:raw bbuserinfo.username}, {vb:link member, {vb:raw bbuserinfo}}}</li>
Change it to:
Code:
<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:
Code:
Welcome, <a href="{2}">{1}</a>
Change it to:
Code:
, <a href="{2}">{1}</a>
add the welcome.js to the "clientscript/ " folder and your done.

Hope it works for you!

Download

File Type: %1$s welcome.zip (3.2 KB, 81 downloads)

Screenshots

Click image for larger version
Name:	Untitled.png
Views:	851
Size:	2.4 KB
ID:	121800  

Similar Mods

Add-On Releases Ultimate Header Greeting for vB 4 vBulletin 4.x Add-ons
New Posting Features Post Greeting vBulletin 3.7 Template Modifications

vblts.ru supports vBulletin®, 2022-2024