vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   End-User Options - Nexia's Welcome Message by the Hour (https://vborg.vbsupport.ru/showthread.php?t=281344)

vbenhancer 04-09-2012 10:00 PM

Nexia's Welcome Message by the Hour
 
1 Attachment(s)
Will replace the boring "Welcome, nexia." with something customized by the hour. You can edit each phrase to fit your fun.

as you see in the screenshot, the phrase "fit" the moment of the day, and when you hover the entire line, you now see what time it is when you load the page, instead of having to go to the footer to read it.
.. take note that "nexia" is replaced by your members name...
nex_welcome_x_link_y_00 => Browsing by midnight, nexia?
nex_welcome_x_link_y_01 => Look, it's dark outside, nexia!
nex_welcome_x_link_y_02 => nexia, don't you think it's time for bed?
nex_welcome_x_link_y_03 => Sure you'll be hard to keep awake today, nexia...
nex_welcome_x_link_y_04 => Shut, everybody's sleeping, nexia!
nex_welcome_x_link_y_05 => Welcome on this new day, nexia.
nex_welcome_x_link_y_06 => Early morning, nexia!
nex_welcome_x_link_y_07 => Breakfast time, nexia!
nex_welcome_x_link_y_08 => 'Morning, nexia.
nex_welcome_x_link_y_09 => Welcome to another day of work, nexia.
nex_welcome_x_link_y_10 => Where's the coffee yet, nexia?
nex_welcome_x_link_y_11 => Hum, hungry, nexia?
nex_welcome_x_link_y_12 => Dinner time, nexia!
nex_welcome_x_link_y_13 => Let's get back to work, nexia!
nex_welcome_x_link_y_14 => So, having a nice day, nexia?
nex_welcome_x_link_y_15 => 'Hope you enjoy your visit, nexia.
nex_welcome_x_link_y_16 => Clearing the day off, nexia?
nex_welcome_x_link_y_17 => Supper Time, nexia.
nex_welcome_x_link_y_18 => What's on the News tonight, nexia?
nex_welcome_x_link_y_19 => Homeworks, nexia, homeworks.
nex_welcome_x_link_y_20 => Aren't the kids in bed yet, nexia?
nex_welcome_x_link_y_21 => Time for some popcorn, nexia.
nex_welcome_x_link_y_22 => Need a massage, nexia?
nex_welcome_x_link_y_23 => Unable to sleep, nexia?
these phrases are the one used by the engine, without any template edit, any function added, it's a simple replacement, and it works on the fly, so you do not have to bother if the user see the right sentence for its hour of browsing.

note: september 24th, 2009: debug of the date function to display in other languages. vbdate() was replaced by date() so the sentence is ok. Just import the product again.

october 6th, 2009: another fix regarding the date, dropped the "local" call so any language is supposed to display at the right time...


this version works for all versions from vB 3.6 until now, since it's a very very simply hack without code edition...

Shazz 04-10-2012 01:21 AM

Most excellent! :)
5 Star

anushkumarb 04-10-2012 03:06 AM

Installed Thanks, rated 5

ProFifaLeagues 04-10-2012 03:40 AM

Have a Mod doing this already but this having the options to add your own Message makes it much better!

Thanks great Work

Sage Knight 04-10-2012 03:56 AM

Haha, nice!

socialteenz 04-10-2012 04:43 AM

Thanks for the update, my members gonna love this :)

Krusty1231 04-10-2012 05:50 AM

Quote:

Originally Posted by rammieone (Post 2318550)
Have a Mod doing this already but this having the options to add your own Message makes it much better!

Thanks great Work

Agreed. Thanks for this. Installed/Voted

Boofo 04-10-2012 06:13 AM

You can do the same thing in the other one. All you have to do is edit the phrase, just like you would have to with this one.

vbenhancer 04-10-2012 10:08 AM

hum, people, if you need support with "the other one", please do in its own thread... thanks Boofo for the info!

i'm not releasing this plugin to compete "the other one"... i just update tools that i released years ago that could still be useful in vB 4.x... this one was not edited a single bit, it's the same code for 6 years, so imagine, vBulletin did not change that much hey!

Emeralda 04-10-2012 11:01 AM

Is there something that needs to be set or installed more? I don't see these welcome messages (when I unhid'em), I've installed only the biggest xml in the package.

vbenhancer 04-10-2012 11:18 AM

there is no setting for this feature, nothing to do, really... it's just a phrase replacement, so when you browse your site, it shows in the header where the phrase is supposed to be... if you have a non-custom head message though!

glen290 04-10-2012 11:27 AM

Quote:

Originally Posted by Emeralda (Post 2318644)
Is there something that needs to be set or installed more? I don't see these welcome messages (when I unhid'em), I've installed only the biggest xml in the package.

Same here, cant see anything, are there any options to change etc ?

Emeralda 04-10-2012 11:46 AM

Could you paste the none custom message here? And where it should be? I'm not sure I haven't changed it, I thought I didn't. I'm sure I modified the default phrase though, but then I checked with the default one as well, and still haven't seen anything.

vbenhancer 04-10-2012 12:44 PM

Quote:

Originally Posted by glen290 (Post 2318653)
Same here, cant see anything, are there any options to change etc ?

the reason why your site is not showing the text is that you use the DBTech Notifications engine which override it... i'll see what i can do about it!

glen290 04-10-2012 12:59 PM

I have tried it on my test site which dosent.. but thanks for looking in to it, really appreciated..

Emeralda 04-10-2012 01:45 PM

I don't use DB's Notifications though.

Oh, by the way, I'm quite hesitant on adding anything left of the username again. Could it be possible to make a version that would add that text below the options on top?

http://img805.imageshack.us/img805/6...fbdb5a2024.png

vbenhancer 04-10-2012 02:21 PM

Quote:

Originally Posted by Emeralda (Post 2318679)
I don't use DB's Notifications though.

Oh, by the way, I'm quite hesitant on adding anything left of the username again. Could it be possible to make a version that would add that text below the options on top?

this could become a custom work, if you really need something similar in a specific location...

Emeralda 04-10-2012 04:10 PM

Ah, yeah, but before that, it still doesn't work at all >.<

Could you send me the code that it's supposed to change and rely on? As in, the default thing in the template, I'd compare it with the current one.

vbenhancer 04-10-2012 04:23 PM

there is no code change... it's a phrase change. if your theme was edited or updated from a vB 3.8x theme, it may even have the wrong phrase in the theme.

search for " welcome_x_link_y " in your header template...

Emeralda 04-10-2012 04:35 PM

<li class="welcomelink">{vb:rawphrase welcome_x_link_y, {vb:raw bbuserinfo.username}, {vb:link member, {vb:raw bbuserinfo}}}</li>

This is how it looks like in my header.

For phrases themselves, I tried removing the custom phrase, nothing. I tried putting there the default one, also nothing. So I dunno >.<

vbenhancer 04-10-2012 05:09 PM

Quote:

Originally Posted by Emeralda (Post 2318734)
For phrases themselves, I tried removing the custom phrase, nothing. I tried putting there the default one, also nothing. So I dunno >.<

strange, because you have exactly what is needed to the plugin to work...

Emeralda 04-10-2012 08:21 PM

But it's not working...


All times are GMT. The time now is 08:04 PM.

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.01116 seconds
  • Memory Usage 1,759KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (22)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete