Arsalan Shah
6 years ago
Greet users based on morning, day, evening, night. A widget will be displayed on newsfeed page , top of wall post form.

Install https://www.opensource-socialnetwork.org/component/view/3757/timezone for better use experience.
TheDoggyBrad Software Lab
Replied 3 years ago
@Arsakan Shah I think the evening background is causing the Good Night to be not easily be read, especially on mobile devices. For me, you should change it or edit the picture.
Arsalan Shah
Replied 4 years ago
Will fix in next version :)
Michael Zülsdorff
Replied 4 years ago
When entering the frontpage of my site I get
Attempt to read property "first_name" on bool" in file components/Greetings/plugins/default/greetings/greetings.php (line 25)
I'd suggest to use
$('.newsfeed-middle-top').prepend(greetingsComponent);
instead of .newsfeed-middle to ausure the greeting will in fact appear on top and not below any other inserted stuff
Erassus ︎ ︎
Replied 4 years ago
Its seems after 00:00 shows morning greeting, this is wrong because is midnight. So i made a fix for this component:
In the line 32 of ossn_com.php replace all the function of greetings_time_now with this:
function greetings_time_now(){
$time = date("H");
if($time < "06"){
return 'n';
} elseif($time >= "06" && $time < "12"){
return 'm';
} elseif($time >= "12" && $time < "17"){
return 'a';
} elseif($time >= "17" && $time < "19"){
return 'e';
} elseif($time >= "19"){
return 'n';
}
}
Now it will show night time after 00:00.
Francois Zalor
Replied 4 years ago
Hello Arsalan, many thanks for your response. I will see this during the day. Very nice work on your components
Arsalan Shah
Replied 4 years ago
Yes you can translate into French. copy a file components/Greetings/locale/ossn.en.php to ossn.fr.php edit the contents as per requirements. Flush cache once done.
Francois Zalor
Replied 4 years ago
Hello, I really like the idea of the open source social network project. I put the site in French, suddenly by bad luck. The module is not functioning properly. Is there a solution to have it also in French please ? Thank you

Vinicius Goulart
Replied 5 years ago
Hello, I tried to translate your plugin from English to Portuguese, and you will not have read the documentation you have here on the site.
Arsalan Shah
Replied 5 years ago
@Philip, I have no plan for changing the current implementation of timezone.
Philip Lozier
Replied 5 years ago
Would there be a possibility of finding another way of implementing the time zone assignment for a user? The list is cumbersome, to say the least, especially for a system that is going to be U.S and U.S. territory based. Like the component, but don't like the timezone selector... at all.