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.
@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.
Will fix in next version :)
1) 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)
2) 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
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 ossncom.php replace all the function of greetingstime_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.
Hello Arsalan, many thanks for your response. I will see this during the day. Very nice work on your components
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.
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
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.
@Philip, I have no plan for changing the current implementation of timezone.
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.