MyBB Community Forums

Full Version: Add a option to the Welcomeblock but how??
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello Mybb-ers Smile

I have a question, on my forum is in the WelcomeBlock standard

Welcome back ***** It's now 15-01-2012, 14.14 hours Bla bla bla.....

Is it possible to add/make this??


Good morning, evening, night......*******

So that the forum knows when it is morning that it is good morning........
is it night that the forum says good night........

Is this possible and yes whats the code for this???


Thanks helping me!!

GalaxyFreak.
www.galaxyfreaks.zxq.net - SmartPhone Forum!
I guess this could be done with the PHP in Templates and Conditionals plugin?

http://community.mybb.com/thread-31860.html
(2012-01-15, 01:25 PM)Andre R. Wrote: [ -> ]I guess this could be done with the PHP in Templates and Conditionals plugin?

http://community.mybb.com/thread-31860.html

I don't know, thanks for the plugin but now I need the working code so thats is visible in the Welcomeblock.. I know wich template I need to edit but don't know the code and I don't see the code in that topic Sad

Maybe annyone knows the code or a another sollution??

For now thanks Andre for the tip Smile


GalaxyFreak
Something like instead of:

<span style="float:right;">{$lang->welcome_current_time}</span>

Have:

<span style="float:right;">

if time >12am<12pm
Good morning

if time>12pm<5pm
Good afternoon

if time >5pm<12am
Good evening
</span>

Obviously you would need php!! Just saying, that is the logic i think you want behind any code.
This code don't works here, all the text is visible at the welcomeblock afther put the code in the template and have the plugin on!!

So isn't the right code, so someone with the working code?
Quote:Obviously you would need php!! Just saying, that is the logic i think you want behind any code.
You need actual PHP code, that posted code is only the logic needed.
Never mind!!! I have found a plugin that do exacly wat I want on <snip>
So now I have the option!