vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Add-On Releases - Time Greeting (Good Morning / Afternoon / Evening, Username) (https://vborg.vbsupport.ru/showthread.php?t=178745)

Kinneas 05-09-2008 10:00 PM

Time Greeting (Good Morning / Afternoon / Evening, Username)
 
Credit goes to EnIgMa1234 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 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 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

Quote:

Originally Posted by MiahBeSmokin420 (Post 1514771)
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 :)

Quote:

Originally Posted by crkgb (Post 1514799)
Does not work in arcade for some reason...

Quote:

Originally Posted by Mark.B (Post 1514848)
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

Quote:

Originally Posted by Big Boss (Post 1514891)
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:
Code:

global $header, $vbphrase, $vboptions
And add
Code:

,$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

Quote:

Originally Posted by Kinneas (Post 1514775)
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

Quote:

Originally Posted by Mark.B (Post 1515156)
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:
Code:

global $header, $vbphrase, $vboptions
And add
Code:

,$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 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

Quote:

Originally Posted by Charlie98902 (Post 1516025)
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

Quote:

Originally Posted by Charlie98902 (Post 1517148)
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 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

Quote:

Originally Posted by soulface (Post 1520205)
nice hack, installed.

one thing I'd like to request you to add a global veriable like Nicer Greeting On NavBar 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

Quote:

Originally Posted by fukdawrld (Post 1522187)
will this work with welcome template rewrite?

I'm not sure. Only one way to find out :P
Quote:

Originally Posted by soulface (Post 1520205)
nice hack, installed.

one thing I'd like to request you to add a global veriable like Nicer Greeting On NavBar 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

Quote:

Originally Posted by Kinneas (Post 1525233)
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

Quote:

Originally Posted by Kinneas (Post 1514775)
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!
:)


All times are GMT. The time now is 07:54 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01442 seconds
  • Memory Usage 1,822KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete