Greetings Download 2.0

This component/theme works with latest OSSN version.
Indonesian Arsalan Shah 3 years ago

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


Install for better use experience.

Indonesian Arsalan Shah Replied 4 months ago

Will fix in next version :)

German Michael Zülsdorff Replied 4 months ago

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


instead of .newsfeed-middle to ausure the greeting will in fact appear on top and not below any other inserted stuff

cl Hugo Cuellar Replied 5 months 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 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.

French Francois Zalor Replied 7 months ago

Hello Arsalan, many thanks for your response. I will see this during the day. Very nice work on your components

Indonesian Arsalan Shah Replied 7 months ago

Yes you can translate into French. copy a file components/Greetings/locale/ossn.en.php to edit the contents as per requirements. Flush cache once done.

French Francois Zalor Replied 7 months 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

My problem

Breton Vinicius Goulart Replied 1 year 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.

Indonesian Arsalan Shah Replied 2 years ago

@Philip, I have no plan for changing the current implementation of timezone.

us Philip Lozier Replied 2 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.

German Michael Zülsdorff Replied 2 years ago

Yes, some of our components depend on each other - like a smartphone would depend on a charged battery to function.
So, in this case install and enable the Timezone component first.


Developer: Arsalan
License ossnv4
Type: User admin
Requires Ossn Version : 6.0
Latest Version: 2.0
Last Updated 9 months ago
Repository Url View Repository