PDA

View Full Version : Add-On Releases - Time Greeting (Good Morning / Afternoon / Evening, Username)


Kinneas
05-09-2008, 10:00 PM
Credit goes to EnIgMa1234 (https://vborg.vbsupport.ru/member.php?u=134041) for the original mod. Although he said no credit is needed, I still feel obliged to point it out :P

What does it do?

This is quite a simple mod I use which automatically changes the standard "Welcome, <Username>" phrase to "Good Morning/Afernoon/Evening, <Username>" depending on the time of day.

Installation/Upgrade Instructions

1. Import the Product. (Allow overwrite if upgrading)
2. You're done!






And finally, this is my first attempt at a release here, so go easy on me! I welcome any constructive criticizm of suggestions on how to improve this :)

Version History

0.05 - Initial Release
0.06 - Now compatible with Paul M's Display Unread Posts and New Reputation Comments (https://vborg.vbsupport.ru/showthread.php?t=168303) mod.
0.08 - Updated to work with iBProArcade. Also no longer uses Javascript so will work on browsers with it disabled.
1.00 - Updated, now replaces the Phrase instead of template, allowing auto-replace to function even if the Welcome message is in a template other than navbar (Eg, header)

Known Issues

Because it goes off Server Time, this mod might not always be accurate for people in different time zones from the server. Unfortunately this isn't something I can fix.

Translations

Russian (https://vborg.vbsupport.ru/showpost.php?p=1562132&postcount=48) Translation by BANDiT600.

MiahBeSmokin420
05-10-2008, 10:18 AM
whats the difference between your mod and this mod located here
https://vborg.vbsupport.ru/showthread.php?t=172507

besides the obvious fact that the one im talking about is alot more detailed and has a few extra features?

Kinneas
05-10-2008, 10:25 AM
whats the difference between your mod and this mod located here
https://vborg.vbsupport.ru/showthread.php?t=172507

besides the obvious fact that the one im talking about is alot more detailed and has a few extra features?

I guess the extra features like you said.

The main difference is probably that mine doesn't need any extra edits or modifications to be made once you've installed it. That mod looks pretty cool too though :)

safakuygur
05-10-2008, 10:31 AM
very good hacks thanks

ikizbeyin
05-10-2008, 10:40 AM
installed, thanks a lot.

crkgb
05-10-2008, 10:52 AM
Does not work in arcade for some reason...

Robbey
05-10-2008, 11:30 AM
Awesome and easy install thanks heaps

Spooony
05-10-2008, 11:39 AM
Bloody marvelous! Installed!

Khalid-B
05-10-2008, 11:44 AM
very nice.....

thanks.
Installed.

Mark.B
05-10-2008, 11:53 AM
Only problem with this is that it doesn't seem to respect a user's timezone setting....so you can end up with "Good Morning" in the evening, etc.

Kinneas
05-10-2008, 12:35 PM
Thanks all :)

Does not work in arcade for some reason...

Only problem with this is that it doesn't seem to respect a user's timezone setting....so you can end up with "Good Morning" in the evening, etc.

Will look into these problems :)

Commisat
05-10-2008, 12:40 PM
very nice.....:up:

thanks.
Installed.

Big Boss
05-10-2008, 01:16 PM
This is some good hack. Thank you for the release!

Kinneas
05-10-2008, 01:18 PM
This is some good hack. Thank you for the release!

Thank you very much :)

I'll hopefully be able to update this later today. I've sorted 1 of the 3 known problems so far :P

semauae
05-10-2008, 01:37 PM
Good idea

installed :)

MeMySelfNi
05-10-2008, 03:26 PM
had to uninstall it cause it stopped this hack from working~

https://vborg.vbsupport.ru/showthread.php?t=168303

Mark.B
05-10-2008, 06:02 PM
I know how to fix the arcade issue...if it's Ibproarcade. There's a list of variables in the arcade functions file, add $timegreeting to the list.

In /arcade/functions/functions.php find the line that starts:
global $header, $vbphrase, $vboptions

And add
,$timegreeting
Immediately before the final ";" at the end.

Note the space and comma in the above code.

Not tested, but I reckon that will make it work in the arcade. Every hack I've ever had that doesn't show up in the arcade has been fixed by doing something similar.

Boofo
05-10-2008, 06:07 PM
I guess the extra features like you said.

The main difference is probably that mine doesn't need any extra edits or modifications to be made once you've installed it. That mod looks pretty cool too though :)

That one doesn't need any extra edits or modifications any more than this one would it the line it is searching for has changed because of another hack. ;)

Boofo
05-10-2008, 06:10 PM
I know how to fix the arcade issue...if it's Ibproarcade. There's a list of variables in the arcade functions file, add $timegreeting to the list.

In /arcade/functions/functions.php find the line that starts:
global $header, $vbphrase, $vboptions

And add
,$timegreeting
Immediately before the final ";" at the end.

Note the space and comma in the above code.

Not tested, but I reckon that will make it work in the arcade. Every hack I've ever had that doesn't show up in the arcade has been fixed by doing something similar.

There's an easier way to do it. Just make the variable replacement in this mod as a vbphrase[something]. No file edits that way.

LisaJH
05-11-2008, 05:28 AM
Love it... Instaled :)

Kinneas
05-11-2008, 10:29 AM
Updated to work with Paul M's mod. Unfortunately I've not had enough time to sort out the Arcade issue yet. Still working on it :)

MeMySelfNi
05-11-2008, 10:50 AM
thanks its working with no problem now~

Charlie98902
05-11-2008, 02:06 PM
This mod seems to effect the new posts/ no new post mod. Here is the mod that I use and this one here interferes with it.

https://vborg.vbsupport.ru/showthread.php?t=168303

Boofo
05-11-2008, 02:12 PM
Is you read the thread, there is a fix for that.

SuperDave71
05-11-2008, 03:33 PM
Thank you for the updated fix! Works great!

-Dave

digicom
05-12-2008, 12:30 AM
very cool thanks:D

Kinneas
05-12-2008, 09:08 AM
0.08 - Updated to work with iBProArcade. Also no longer uses Javascript so will work on browsers with it disabled.



Also, a huge thank you to Boofo (https://vborg.vbsupport.ru/member.php?u=9948) for helping a novice like me out when it came to improving this mod :)

Boofo
05-12-2008, 09:27 AM
Don't kid yourself. I learned more from you than you did from me. ;)

Good job on the update. ;)

Charlie98902
05-12-2008, 12:04 PM
This mod seems to effect the new posts/ no new post mod. Here is the mod that I use and this one here interferes with it.

https://vborg.vbsupport.ru/showthread.php?t=168303

Still interferes with the welcome mod unless you can configure the settings now?

Kinneas
05-12-2008, 01:03 PM
Still interferes with the welcome mod unless you can configure the settings now?
There are no settings to configure, it should just auto replace. The conflict before was because both mods were looking for the [welcome_x_link_y] phrase but in 0.06 I made adjustments so it should still work. I've tested it on my Dev board and a couple of other fourms I run and couldn't find any further problems. All I can suggest is making sure you have the latest version of both mods and maybe completely removing both and re-importing rather than upgrading.

soulface
05-15-2008, 06:58 AM
nice hack, installed.

one thing I'd like to request you to add a global veriable like Nicer Greeting On NavBar (https://vborg.vbsupport.ru/showthread.php?t=100993&highlight=Nicer+Greeting) did or make it like, it'd look in global templates for $vbphrase[welcome_x_link_y] not just in navbar templates only. I've a customize welcome panel in my forum homepage, where 'Welcome Nick' just disappear rather then replacing it.

thx

Kinneas
05-16-2008, 10:23 AM
nice hack, installed.

one thing I'd like to request you to add a global veriable like Nicer Greeting On NavBar (https://vborg.vbsupport.ru/showthread.php?t=100993&highlight=Nicer+Greeting) did or make it like, it'd look in global templates for $vbphrase[welcome_x_link_y] not just in navbar templates only. I've a customize welcome panel in my forum homepage, where 'Welcome Nick' just disappear rather then replacing it.

thx
Good suggestion. I'll try and look at that when time permits.

killerkraft
05-16-2008, 10:38 AM
So Kinneas,

The question is how to read the local computer time, is it not ?

You have on the user CPanel the Date&Time options for each user.

So if you can read that option and add or subtract, i think you will solve the problem.

It is just an idea though. I do not understand much php.

Greetings from Portugal,

KK

Boofo
05-16-2008, 10:49 AM
It's not as easy as that, I'm afraid.

killerkraft
05-16-2008, 11:04 AM
Eheheh,

I've told that my knowledge of php is very small.

It was just an ideia.

KK

fukdawrld
05-17-2008, 12:04 AM
will this work with welcome template rewrite?

Kinneas
05-19-2008, 11:01 PM
will this work with welcome template rewrite?
I'm not sure. Only one way to find out :P
nice hack, installed.

one thing I'd like to request you to add a global veriable like Nicer Greeting On NavBar (https://vborg.vbsupport.ru/showthread.php?t=100993&highlight=Nicer+Greeting) did or make it like, it'd look in global templates for $vbphrase[welcome_x_link_y] not just in navbar templates only. I've a customize welcome panel in my forum homepage, where 'Welcome Nick' just disappear rather then replacing it.

thx

I haven't exactly done this, but the latest update should mean it works in places other than the navbar :)

HxC
05-25-2008, 02:53 AM
I like the idea, nice job with it. I installed it on my forum, but it only works on the Default vBulletin skin. On all my other skins it doesn't show.

soulface
05-25-2008, 01:57 PM
I'm not sure. Only one way to find out :P


I haven't exactly done this, but the latest update should mean it works in places other than the navbar :)

YES, it's working now... thanks

auctionguy
05-25-2008, 03:53 PM
I guess the extra features like you said.

The main difference is probably that mine doesn't need any extra edits or modifications to be made once you've installed it. That mod looks pretty cool too though :)

I like this because it is very simple! Extra features mean extra queries in a lot of cases. :mad:

I will install later today!

Awesome Hack!
:)

Boofo
05-25-2008, 03:54 PM
Nope, not always. They are the same query-wise.

bjf123
05-25-2008, 09:19 PM
Not working for me running vB 3.7.0 and vBAdvanced 3.0.1. I've logged out and back in, still says Welcome.

Boofo
05-25-2008, 09:24 PM
Then you might have to do a manual template edit.

bjf123
05-25-2008, 09:49 PM
What would I edit?

LisaJH
05-26-2008, 02:07 PM
its not working with my unread posts and rep's? any idea why?

Kinneas
05-27-2008, 01:40 PM
What would I edit?

You can manually insert this by finding the phrase $vbphrase[welcome_x_link_y] and replacing it with $vbphrase[welcome_timegreeting]. This might however cause Mods like Paul M's Display Unread Posts and New Reputation Comments (https://vborg.vbsupport.ru/showthread.php?t=168303) mod and others similar to it to stop working, reason below.

its not working with my unread posts and rep's? any idea why?

Not sure, but I believe that mod works by finding the phrase $vbphrase[welcome_x_link_y] - If you manually edited it in a similar way to described above that may be why, If not I'm not sure as the method my mod does to try and avoid this is to set $vbphrase[welcome_x_link_y] as $vbphrase[welcome_timegreeting]. It worked fine for me and I tested it on styles with the Welcome message in both navbar and header.

It may be worth trying the same solution as was posted on Boofo's Ultimate Navbar:
https://vborg.vbsupport.ru/showpost.php?p=1461180&postcount=33
Except you'd be replacing it with $vbphrase[welcome_timegreeting] instead of $vbphrase['ung_greeting']

I like the idea, nice job with it. I installed it on my forum, but it only works on the Default vBulletin skin. On all my other skins it doesn't show.

As above, when I tested it it worked fine on skins with it in the navbar and header template. If you're not running 3.7 or some of your skins are out of date it probably won't work either, as prior to 3.7 the Welcome phrase was [welcome_x] not [welcome_x_link_y]. If that's the case you could probably make it work with a manual template edit like the one described above, except replace [welcome_x] instead.

BoYagoob
05-31-2008, 05:40 AM
installed

BANDiT600
06-29-2008, 03:16 PM
Thanks fot this hack, here is russian version from me... ;)

Kinneas
07-03-2008, 11:47 AM
Thanks fot this hack, here is russian version from me... ;)
Thanks :D

ErrorLog
07-25-2008, 06:55 PM
Thank You ..!

pooffck1
07-26-2008, 01:50 PM
Ok, iv created a MEMBER BAR with permissioned members only example

members can see different things to what admins can see

is there anyway to use the varaibles for this hack to put on the memberbar iv created

like on mine it says WELCOME BLAHBLAH

i want it to say Goodmorning/afternoon/evening BLAHBLAH depending on the time...
is that possible please reply

choccyclaire
07-26-2008, 02:17 PM
Seems to be working. What time is classified as evening?

Jase2
07-27-2008, 02:21 PM
This is interfering with the "Linear - Newest First" option in "Edit Options". When this modfication is in effect, and you have Newest First selected, then it goes to the last post. Any chance for a fix?

-- Jason

Kinneas
07-28-2008, 06:57 AM
This is interfering with the "Linear - Newest First" option in "Edit Options". When this modfication is in effect, and you have Newest First selected, then it goes to the last post. Any chance for a fix?

-- Jason
Erm, I'm not entirely sure what you mean as I don't think I've ever used that display mode myself. What behaviour would you expect? As I see no differece on my test forum with the mod enabled or disabled.
Seems to be working. What time is classified as evening?
After 5PM I think :)
Ok, iv created a MEMBER BAR with permissioned members only example

members can see different things to what admins can see

is there anyway to use the varaibles for this hack to put on the memberbar iv created

like on mine it says WELCOME BLAHBLAH

i want it to say Goodmorning/afternoon/evening BLAHBLAH depending on the time...
is that possible please reply
Well depending on how you have set this member bar up It could work. Try including the phrase "$vbphrase[welcome_x_link_y]" as this mod essentially just replaces that phrase with the Good Morning/Afternoon etc one.

buddyheiko
12-08-2008, 06:14 PM
Hi,

I installed this. In Standard mode it will work fine. But ..

In my mode there is no welcome box in my navbar. My welcome box is in the vbcms-module called "portalloginbox".

How can I get this greetings right there ? In vb-germany I could not get an answer.

Heiko

GSeybold
12-10-2008, 08:15 AM
Works great!

imedic
12-10-2008, 06:26 PM
Good ideea.
Does not work with this mode (https://vborg.vbsupport.ru/showthread.php?t=197427) , but not a problem coz I was not intending to let the snow fell on my forum :D
Ups , no problem. All work well.

appsfinder
12-12-2008, 08:36 AM
is there a way to change what it says like merry xmas or happy birthday

tony adams
01-17-2009, 11:21 AM
thanks - installed and working on 3.8

csoroner
02-26-2009, 07:50 AM
thanks - installed and working on 3.8
Same here. Nice work!

motorola
11-07-2009, 04:16 PM
Installed in 3.8.4 it works! Thanks

mgcom
11-08-2009, 08:11 AM
Nice

farazfaraz
11-13-2009, 02:04 PM
installed, thanks a lot.

BBF
12-07-2009, 08:31 PM
works fine with vb4 :)

blake247
12-21-2009, 04:27 AM
Works well on vb4 rc4

kNeeLy
10-12-2010, 12:04 PM
Woring good so far on the 3.8.6 patch....with all the other hacks/mods installed too...

Great little mod....