Log in

View Full Version : Miscellaneous Hacks - Time Based Greeting


Dragonsys
06-12-2010, 10:00 PM
A small mod which will change the default greeting (Welcome) to one based upon the time of day.

This mod is based upon:
* Time Greeting (Good Morning / Afternoon / Evening, Username) (https://vborg.vbsupport.ru/showthread.php?t=178745) by Kinneas (https://vborg.vbsupport.ru/member.php?u=123012)
* Ultimate Navbar for vB3.7 (https://vborg.vbsupport.ru/showthread.php?t=172507) by Boofo (https://vborg.vbsupport.ru/member.php?u=9948)

I updated Kinneas' mod for vb4 and added a few extra greetings based upon Boofo's mod.
Everything uses phrases (xxx_x_link_y).

Current Time & Phrase list:

12:00 am - 1:59 am - Up late, aren't we, Dragonsys?
2:00 am - 3:59 am - Having trouble sleeping, Dragonsys?
4:00 am - 5:29 am - Still can't sleep, Dragonsys?
5:39 am - 6:59 am - Aren't you the early bird, Dragonsys?
7:00 am - 11:59 am - Good Morning, Dragonsys.
12:00 pm - 12:59 pm - Enjoying your lunch break, Dragonsys?
1: 00 pm - 4:59 pm - Good Afternoon, Dragonsys.
5:00 pm - 5:59 pm - What's for dinner, Dragonsys?
6:00 pm - 9:59 pm - Good Evening, Dragonsys.
10:00 pm - 11:59 pm - Shouldn't you be going to bed soon, Dragonsys?


Arabic Translation by Dr.osamA (https://vborg.vbsupport.ru/member.php?u=61153)

Dragonsys
06-13-2010, 04:53 AM
Changelog:

1.0.0 - Initial Release
1.0.1 - Fixed a small bug which did not allow the mod to actually display :o

merk_aus
06-13-2010, 05:16 AM
Thanks looks good kinda like vbenhancer.com product though - before his website disappeared.

Boofo
06-13-2010, 05:50 AM
It would have been nice to be asked to use those, though. ;)

Dragonsys
06-13-2010, 07:19 AM
It would have been nice to be asked to use those, though. ;)

Sorry about that. I was looking at your old mod and saw it had been moved to the graveyard, and the files were removed. I was going to send you a PM, but it slipped my mind :erm:
I can change/remove it if you like.

Boofo
06-13-2010, 07:39 AM
You are more than welcome to go ahead and use them. I plan on releasing the Ultimate Navbar for vb4 one of these days when I get around to it. Until then, I'll just use yours. ;)

ellinofatsa
06-13-2010, 01:07 PM
works fine on 4,03

thankssssssssssss

Bouncer222
06-13-2010, 01:39 PM
Love it!
You can see it in action here if you register... www.brotherhoodofgamers.com

Charlie98902
06-13-2010, 03:57 PM
Is there any conflict using this with Paul M's uread post mod? This was an issue with the 3.x series.

Dragonsys
06-13-2010, 06:14 PM
Is there any conflict using this with Paul M's uread post mod? This was an issue with the 3.x series.

Not that I am aware of, but I do not use that mod by Paul M, so I cannot say for 100%. I believe, the conflict in 3.x was because of template changes, this mode just does a phase replacement.

Charlie98902
06-13-2010, 06:47 PM
Thanks I'll test it on my test forum this week. I think you are right on that too.

Dr.osamA
06-15-2010, 01:34 PM
good work Dragonsys

thanxxx

installed + 5 stars + translate to Arabic (if you don't mind )

plzzzz be nice and add Arabic to 1st post

COL NIL SATIS
06-16-2010, 04:55 PM
Works great ...thanks for this cool little add on ..installed

denman75
06-16-2010, 06:47 PM
removed ,messages from the evening are show able in the morning etc etc
time is set properly on the server also

CybaGirl
06-18-2010, 05:13 AM
AWESOME!

Thank you very much just installed it and is working perfectly on v.4.0.3!

:up:

Dragonsys
06-18-2010, 01:16 PM
removed ,messages from the evening are show able in the morning etc etc
time is set properly on the server also

This mod uses the server time, not the user's time zone offset. Boofo has released his Ultimate Navbar greeting for vb4 which corrects this very issue. You can find it here - https://vborg.vbsupport.ru/showthread.php?t=244573

customcolor
06-22-2010, 02:56 AM
works good...but its off alittle on my pc...i have the time set right on my settings for the forum but at 10:54 i still get "good evening"

do i need to change some bulletin settings for the right time? its still fine but just wondering

Boofo
06-22-2010, 03:00 AM
works good...but its off alittle on my pc...i have the time set right on my settings for the forum but at 10:54 i still get "good evening"

do i need to change some bulletin settings for the right time? its still fine but just wondering
Like Dragonsys said, this is based on the server time. There is no way around that as all users will see what the server time is set up for, no matter where they are from.

Dragonsys
06-22-2010, 03:39 AM
Like Dragonsys said, this is based on the server time. There is no way around that as all users will see what the server time is set up for, no matter where they are from.

Correct. This is not affected by vBulletin Time or what timezone the user has selected.

customcolor
06-22-2010, 05:27 AM
thanks!!

still its close :)

rob01
05-24-2011, 02:30 AM
how you change the color of the phrase?

is from forumhome.css right?

koraykose
05-24-2011, 06:47 PM
Works perfect with v4.1.3 www.diviji.com

Boofo
05-24-2011, 06:52 PM
Works perfect with v4.1.3 www.diviji.com

There is no way to know without registering. ;)

lycheepassion
06-02-2011, 04:32 PM
You are more than welcome to go ahead and use them. I plan on releasing the Ultimate Navbar for vb4 one of these days when I get around to it. Until then, I'll just use yours. ;)

Cool can you let me know when you do?

Boofo
06-02-2011, 11:28 PM
Cool can you let me know when you do?

I released that a long time ago. Check my profile at the bottom.

Mastar
06-03-2011, 02:23 AM
How can I go about styling this?

Dragonsys
06-16-2011, 06:33 PM
How can I go about styling this?

You would need to edit the Plugin itself. I suggest you try out Boofo's Ultimate Header Greeting for vB 4 (https://vborg.vbsupport.ru/showthread.php?t=244573) as he has styling included already.

8thos
06-17-2011, 05:12 AM
How do you get this greeting to work with header rework mod? https://vborg.vbsupport.ru/showthread.php?t=257261

Dragonsys
06-24-2011, 08:37 PM
How do you get this greeting to work with header rework mod? https://vborg.vbsupport.ru/showthread.php?t=257261

I have not used that plugin, so I really do not know. I will try and look at it when I have some time, but I cannot promise anything.

8thos
06-24-2011, 10:19 PM
I have not used that plugin, so I really do not know. I will try and look at it when I have some time, but I cannot promise anything.
Thanks!

Ramjet79
07-06-2011, 08:46 PM
thanks for this... stylevars doesn't seem to be working for me though on 4.1.4... have my current live style, which is one color, and a new style I've been working on which is another color for the greeting... changing the stylevars doesn't seem to have an effect.

No biggie though. Thanks for your work...

EDIT: well, for whatever reason the stylevars seems to have taken effect now :)

DjEddie
08-24-2011, 01:58 PM
How do you get this greeting to work with header rework mod? https://vborg.vbsupport.ru/showthread.php?t=257261

Having same problem ^^ ... doesn't show up after installation .. any suggestions?

Goodfather
08-29-2011, 01:58 PM
Translation in Serbian

Dragonsys
08-30-2011, 03:24 PM
Having same problem ^^ ... doesn't show up after installation .. any suggestions?

I do not use that Header Rework Plugin, so I cannot promise compatibility.

Amaury
02-13-2013, 01:40 AM
<font color="Green">Installed</font>.

Can you change the time frames?