Elxis CMS Forum

Extensions => Components => Topic started by: wieyoga on January 13, 2014, 08:12:24

Title: mod_iosr_holidays ( limited country )
Post by: wieyoga on January 13, 2014, 08:12:24
Hi there does anyone know, how to add more country on mod_iosr_holidays.
i saw there only limited country list on mod parameter
Title: Re: mod_iosr_holidays ( limited country )
Post by: datahell on January 13, 2014, 08:47:37
It is not a module thing. You must add country's public holidays in IOSR Hotels.
components/com_reservations/ext/hotels/includes/holidays/
If you can't do so send me a list of your country's public holidays for at least up to year 2020 and I will create this file for you.
Title: Re: mod_iosr_holidays ( limited country )
Post by: wieyoga on January 14, 2014, 03:15:41
Hi data hell, ;D

thank you for the quick reply.
i will try to update its

below the list a public holiday that i will feature on my site
http://portalseven.com/calendar/Holidays_Indonesia.jsp?year=2014#page=holiday-list
http://publicholidays.com.au/

That will repeat every year.



Thanks
Title: Re: mod_iosr_holidays ( limited country )
Post by: datahell on January 14, 2014, 11:13:38
No, they are not repeated the same dates. Check yourself.
If you want to do this for you send me a list of public holidays for Indonesia from 2014 to 2020 (at least - preferable up to 2040).
This list will contain the holidays like that:

YYYY-MM-DD, Public holiday name in English, Public holiday name in Indonesian

Example:
2016-05-01, May day, May day (translated in Indonesian)
Title: Re: mod_iosr_holidays ( limited country )
Post by: wieyoga on January 17, 2014, 09:25:03
Here the list

=====================

2014-01-01,New Year's, Tahun Baru
2014-01-14, The Prophet Muhammad's Birthday, Maulid Nabi Muhammad SAW
2014-01-31, Chinese New Year, Tahun Baru Imlek 2565 Kongzili
2014-03-31, Day of Silence, Hari Raya Nyepi
2014-04-18, Good Friday, Wafat Isa Al Masih
2014-05-01, International Labor Day, Hari Buruh Internasional
2014-05-15 , Waisak Day, Hari Raya Waisak 2558
2014-05-27, Ascension of the Prophet, Isra' Mi'raj Nabi Muhammad SAW
2014-05-29, Ascension Day of Jesus Christ, Kenaikan Isa Al Masih
2014-07-28, Eid al-Fitr, Hari Raya Idul Fitri 1435 Hijriah
2014-08-17, Indonesia Independence Day, Hari Kemerdekaan RI
2014-10- 05, Eid al-Adha, Hari Raya Idul Adha 1435 Hijriah
2014-10-25, Muharram, Tahun Baru Islam 1436 Hijriah
2014-12- 25, Christmas Day, Hari Raya Natal

==============================================

2015-01-01,New Year's, Tahun Baru
2015-01-03, The Prophet Muhammad's Birthday, Maulid Nabi Muhammad SAW
2015-04-3, Good Friday, Wafat Isa Al Masih
2015-05-01, International Labor Day, Hari Buruh Internasional
2015-05-03 , Waisak Day, Hari Raya Waisak 2558
2015-05-14, Ascension Day of Jesus Christ' Kenaikan Isa Al Masih
2015-05-15, Ascension of the Prophet, Isra, Mi'raj Nabi Muhammad SAW
2015-07-18, Eid al-Fitr, Hari Raya Idul Fitri 1435 Hijriah
2015-08-17, Indonesia Independence Day, Hari Kemerdekaan RI
2015-09-24, Eid al-Adha, Hari Raya Idul Adha 1435 Hijriah
2015-10-15, Muharram, Tahun Baru Islam 1436 Hijriah
2015-12- 25, Christmas Day, Hari Raya Natal

===============================================

2016-01-01,New Year's, Tahun Baru
2016-05-01, International Labor Day, Hari Buruh Internasional
2016-08-17, Indonesia Independence Day, Hari Kemerdekaan RI
2016-12- 25, Christmas Day, Hari Raya Natal

===============================================

2017-01-01,New Year's, Tahun Baru
2017-05-01, International Labor Day, Hari Buruh Internasional
2017-08-17, Indonesia Independence Day, Hari Kemerdekaan RI
2017-12- 25, Christmas Day, Hari Raya Natal

===============================================

2018-01-01,New Year's, Tahun Baru
2018-05-01, International Labor Day, Hari Buruh Internasional
2018-08-17, Indonesia Independence Day, Hari Kemerdekaan RI
2018-12- 25, Christmas Day, Hari Raya Natal

===============================================
2019-01-01,New Year's, Tahun Baru
2019-05-01, International Labor Day, Hari Buruh Internasional
2019-08-17, Indonesia Independence Day, Hari Kemerdekaan RI
2019-12- 25, Christmas Day, Hari Raya Natal

===============================================
2020-01-01,New Year's, Tahun Baru
2020-05-01, International Labor Day, Hari Buruh Internasional
2020-08-17, Indonesia Independence Day, Hari Kemerdekaan RI
2020-12- 25, Christmas Day, Hari Raya Natal

===============================================

Thank you
Title: Re: mod_iosr_holidays ( limited country )
Post by: datahell on January 17, 2014, 19:50:07
Upload the file I attach inside the zip (id.php) in this folder:
components/com_reservations/ext/hotels/includes/holidays/

Especially for module holidays you also need to do these:
1. Open the XML file
modules/mod_iosr_holidays/mod_iosr_holidays.xml
Add this in the list of countries:
<option value="ID">ID - Indonesia</option>

2. Open the PHP file
modules/mod_iosr_holidays/mod_iosr_holidays.php
Set $supported_countries (line 27) to this:
private $supported_countries = array('BG', 'BR', 'CY', 'DE', 'ES', 'FR', 'GB', 'GE', 'GR', 'HR', 'ID', 'IN', 'IT', 'LV', 'NL', 'PL', 'PT', 'RU', 'SE', 'TH', 'TR', 'US', 'ZA', 'ZN');
Title: Re: mod_iosr_holidays ( limited country )
Post by: wieyoga on January 18, 2014, 00:38:31
Thanks alot :)