SimplePortal
Customization => Blocks and Modifications => Block Requests => Topic started by: S@ffz on July 25, 2011, 12:32:55 AM
-
Would it be possible to have a greeting Block, that would greet users on the site
Example:
'You are up early' {username}
'Good morning' {username}
Afternoon {username}
Your up late{username}
I have seen this as a Tiny Portal Block do you think it would be possible with Simple Portal?
-
If you use the Custom Greeting mod then there isn't really much point.
-
If you use the Custom Greeting mod then there isn't really much point.
I didn't know there was one. Do you know where i can download it?
-
On sm.org go to the Search box.
Ya can see it working on my forum.
-
the mod is for 2.0 RC3 :(
I found this code can it be converted to use with sp2.3.3 and smf 2.0?
global $user_info;
$hour = date('G') + $user_info['time_offset'];
echo '<span style="text-align:center;">';
if ($hour >= 0 && $hour <= 5) {
echo 'You are up early ' . $user_info['username'] . '!';
} elseif ($hour >= 6 && $hour <= 8) {
echo 'Grab your coffee yet ' . $user_info['username'] . '!';
} elseif ($hour >= 9 && $hour <= 12) {
echo 'Good morning ' . $user_info['username'] . '!';
} elseif ($hour >= 13 && $hour <= 16) {
echo 'Good afternoon ' . $user_info['username'] . '!';
} else {
echo 'Good evening ' . $user_info['username'] . '!';
}
echo '</span>';
-
I'm using the mod on 2.0
At the minute it says 'Late Night Tonight
I'm in the UK with the time at 10:54pm
-
Did it install with out any errors?
-
Can't remember now.
:-[
http://custom.simplemachines.org/mods/index.php?mod=1388
There's the link for ya.
-
Thanks Brack will test it on test forum first
-
I got this message Brack
Sorry, but this modification does not appear to be compatible with the selected version. :(
-
I got this message Brack
Sorry, but this modification does not appear to be compatible with the selected version. :(
It works on my 2.0 forum.
Have you tried to emulate?
-
You know what Brack the code does work i just c/p into custom php then preview
and there it was LOL so not need for me to dowload mod :D