diff --git a/README.md b/README.md index 6718102..3eb04d4 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,17 @@ -# Dailyscripture (1.1.4) +# Dailyscripture (1.1.5) -Display the daily scripture from [https://github.com/trueChristian/daily-scripture](https://github.com/trueChristian/daily-scripture). +Display the daily scripture from [https://git.vdm.dev/christian/daily-scripture](https://git.vdm.dev/christian/daily-scripture). + +> Support can be found at our [community support area](https://git.vdm.dev/getBible/support). # Build Details -+ *Company*: [Vast Development Method](https://www.vdm.io/) ++ *Company*: [Vast Development Method](https://getbible.net) + *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io) -+ *Name*: [Dailyscripture](https://www.vdm.io/) -+ *First Build*: 22nd October, 2015 -+ *Last Build*: 5th April, 2023 -+ *Version*: 1.1.4 ++ *Name*: [Dailyscripture](https://getbible.net) ++ *First Build*: 3rd December, 2015 ++ *Last Build*: 26th July, 2023 ++ *Version*: 1.1.5 + *Copyright*: Copyright (C) 2015. All Rights Reserved + *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html diff --git a/helper.php b/helper.php index 3da771d..b008812 100644 --- a/helper.php +++ b/helper.php @@ -1,26 +1,19 @@ - @copyright Copyright (C) 2015. All Rights Reserved - @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + @created 3rd December, 2015 + @author Llewellyn van der Merwe + @git Get Bible + @github Get Bible + @support Get Bible + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html - A sermon distributor that links to Dropbox. - -/----------------------------------------------------------------------------------------------------------------------------------*/ +/------------------------------------------------------------------------------------------------------*/ // No direct access to this file defined('_JEXEC') or die('Restricted access'); diff --git a/language/en-GB/en-GB.mod_dailyscripture.ini b/language/en-GB/en-GB.mod_dailyscripture.ini index 3e36613..ae546f5 100644 --- a/language/en-GB/en-GB.mod_dailyscripture.ini +++ b/language/en-GB/en-GB.mod_dailyscripture.ini @@ -1,6 +1,6 @@ MOD_DAILYSCRIPTURE="Dailyscripture" MOD_DAILYSCRIPTURE_DESCRIPTION="A Joomla Module to Display the Daily Scripture." -MOD_DAILYSCRIPTURE_XML_DESCRIPTION="

Dailyscripture (v.1.1.4)

A Joomla Module to Display the Daily Scripture.

Created by Llewellyn van der Merwe
Development started 1st January, 2022

" +MOD_DAILYSCRIPTURE_XML_DESCRIPTION="

Dailyscripture (v.1.1.5)

A Joomla Module to Display the Daily Scripture.

Created by Llewellyn van der Merwe
Development started 1st January, 2022

" MOD_DAILYSCRIPTURE_THERE_WAS_AN_ERROR_LOADING_THE_DAILY_SCRIPTURE_PLEASE_TRY_AGAIN_LATTER="There was an error loading the Daily Scripture, please try again latter." MOD_DAILYSCRIPTURE_DAILY_SCRIPTURE="Daily Scripture" MOD_DAILYSCRIPTURE_TYPE_LABEL="Implementation Type" @@ -16,7 +16,10 @@ MOD_DAILYSCRIPTURE_COMMENTS_COLORFUL_LABEL="Use different colors for names" MOD_DAILYSCRIPTURE_COMMENTS_HEIGHT_LABEL="Comments Height" MOD_DAILYSCRIPTURE_COMMENTS_HEIGHT_DESCRIPTION="Use 300 for auto height. Any higher value to set custom height, since 300 is the smallest height available." MOD_DAILYSCRIPTURE_LINK_LABEL="Show Link" -MOD_DAILYSCRIPTURE_LINK_DESCRIPTION="Should we show the link to the daily scripture channel on Telegram." +MOD_DAILYSCRIPTURE_LINK_DESCRIPTION="Should we show a link." +MOD_DAILYSCRIPTURE_GETBIBLE="GetBible" +MOD_DAILYSCRIPTURE_TELEGRAM="Telegram" +MOD_DAILYSCRIPTURE_NONE="None" MOD_DAILYSCRIPTURE_WIDTH_LABEL="Width" MOD_DAILYSCRIPTURE_AUTHOR_PHOTO_LABEL="Author Photo" MOD_DAILYSCRIPTURE_AUTO="Auto" @@ -35,4 +38,4 @@ MOD_DAILYSCRIPTURE_THEME_LABEL="Theme" MOD_DAILYSCRIPTURE_LIGHT_THEME="Light Theme" MOD_DAILYSCRIPTURE_DARK_THEME="Dark Theme" MOD_DAILYSCRIPTURE_DAILY_SCRIPTURE_NOTE_LABEL="Details" -MOD_DAILYSCRIPTURE_DAILY_SCRIPTURE_NOTE_DESCRIPTION="
Relevant Links:
How it works

The daily scripture architecture is designed to automatically select a random verse from a collection of scripture without any human intervention. The core process of selecting a random verse can be broken down into three main steps: shuffling the verses, choosing the first verse from the shuffled list, and updating the list of used verses.

  1. Shuffling the verses: The script first reads the entire list of verses from a file called "SCRIPTURE" and then shuffles this list using a random sorting algorithm. This ensures that the order of the verses in the list is entirely random and unpredictable. This randomness is crucial, as it eliminates any potential human bias or control over the selection process.
  2. Choosing the first verse from the shuffled list: Once the list of verses has been randomly shuffled, the script selects the very first verse from this shuffled list. Because the order of the verses is random, the selected verse is also random and unbiased. This chosen verse is then considered the verse of the day.
  3. Updating the list of used verses: To ensure that the same verse isn't selected again within a short period, the script maintains a separate list of recently used verses, stored in a file called "SCRIPTURE_USED." After selecting the verse of the day, the script removes it from the main "SCRIPTURE" list and adds it to the "SCRIPTURE_USED" list. Additionally, to prevent the "SCRIPTURE_USED" list from growing indefinitely, the script retains only the last 182 used verses (approximately six months). If the "SCRIPTURE_USED" list grows beyond this limit, the oldest verse in the list is removed and added back to the main "SCRIPTURE" list, making it eligible for selection again.

In summary, the random verse generation process implemented in this script is entirely automated and unbiased, relying on a random sorting algorithm to shuffle the list of verses before selecting one. The system also maintains a list of recently used verses to prevent repetition within a six-month period. This approach ensures a truly unexpected and random selection of verses, free from any human intervention or influence.

" \ No newline at end of file +MOD_DAILYSCRIPTURE_DAILY_SCRIPTURE_NOTE_DESCRIPTION="
Relevant Links:
How it works

The daily scripture architecture is designed to automatically select a random verse from a collection of scripture without any human intervention. The core process of selecting a random verse can be broken down into three main steps: shuffling the verses, choosing the first verse from the shuffled list, and updating the list of used verses.

  1. Shuffling the verses: The script first reads the entire list of verses from a file called "SCRIPTURE" and then shuffles this list using a random sorting algorithm. This ensures that the order of the verses in the list is entirely random and unpredictable. This randomness is crucial, as it eliminates any potential human bias or control over the selection process.
  2. Choosing the first verse from the shuffled list: Once the list of verses has been randomly shuffled, the script selects the very first verse from this shuffled list. Because the order of the verses is random, the selected verse is also random and unbiased. This chosen verse is then considered the verse of the day.
  3. Updating the list of used verses: To ensure that the same verse isn't selected again within a short period, the script maintains a separate list of recently used verses, stored in a file called "SCRIPTURE_USED." After selecting the verse of the day, the script removes it from the main "SCRIPTURE" list and adds it to the "SCRIPTURE_USED" list. Additionally, to prevent the "SCRIPTURE_USED" list from growing indefinitely, the script retains only the last 182 used verses (approximately six months). If the "SCRIPTURE_USED" list grows beyond this limit, the oldest verse in the list is removed and added back to the main "SCRIPTURE" list, making it eligible for selection again.

In summary, the random verse generation process implemented in this script is entirely automated and unbiased, relying on a random sorting algorithm to shuffle the list of verses before selecting one. The system also maintains a list of recently used verses to prevent repetition within a six-month period. This approach ensures a truly unexpected and random selection of verses, free from any human intervention or influence.

" \ No newline at end of file diff --git a/language/en-GB/en-GB.mod_dailyscripture.sys.ini b/language/en-GB/en-GB.mod_dailyscripture.sys.ini index 3e36613..ae546f5 100644 --- a/language/en-GB/en-GB.mod_dailyscripture.sys.ini +++ b/language/en-GB/en-GB.mod_dailyscripture.sys.ini @@ -1,6 +1,6 @@ MOD_DAILYSCRIPTURE="Dailyscripture" MOD_DAILYSCRIPTURE_DESCRIPTION="A Joomla Module to Display the Daily Scripture." -MOD_DAILYSCRIPTURE_XML_DESCRIPTION="

Dailyscripture (v.1.1.4)

A Joomla Module to Display the Daily Scripture.

Created by Llewellyn van der Merwe
Development started 1st January, 2022

" +MOD_DAILYSCRIPTURE_XML_DESCRIPTION="

Dailyscripture (v.1.1.5)

A Joomla Module to Display the Daily Scripture.

Created by Llewellyn van der Merwe
Development started 1st January, 2022

" MOD_DAILYSCRIPTURE_THERE_WAS_AN_ERROR_LOADING_THE_DAILY_SCRIPTURE_PLEASE_TRY_AGAIN_LATTER="There was an error loading the Daily Scripture, please try again latter." MOD_DAILYSCRIPTURE_DAILY_SCRIPTURE="Daily Scripture" MOD_DAILYSCRIPTURE_TYPE_LABEL="Implementation Type" @@ -16,7 +16,10 @@ MOD_DAILYSCRIPTURE_COMMENTS_COLORFUL_LABEL="Use different colors for names" MOD_DAILYSCRIPTURE_COMMENTS_HEIGHT_LABEL="Comments Height" MOD_DAILYSCRIPTURE_COMMENTS_HEIGHT_DESCRIPTION="Use 300 for auto height. Any higher value to set custom height, since 300 is the smallest height available." MOD_DAILYSCRIPTURE_LINK_LABEL="Show Link" -MOD_DAILYSCRIPTURE_LINK_DESCRIPTION="Should we show the link to the daily scripture channel on Telegram." +MOD_DAILYSCRIPTURE_LINK_DESCRIPTION="Should we show a link." +MOD_DAILYSCRIPTURE_GETBIBLE="GetBible" +MOD_DAILYSCRIPTURE_TELEGRAM="Telegram" +MOD_DAILYSCRIPTURE_NONE="None" MOD_DAILYSCRIPTURE_WIDTH_LABEL="Width" MOD_DAILYSCRIPTURE_AUTHOR_PHOTO_LABEL="Author Photo" MOD_DAILYSCRIPTURE_AUTO="Auto" @@ -35,4 +38,4 @@ MOD_DAILYSCRIPTURE_THEME_LABEL="Theme" MOD_DAILYSCRIPTURE_LIGHT_THEME="Light Theme" MOD_DAILYSCRIPTURE_DARK_THEME="Dark Theme" MOD_DAILYSCRIPTURE_DAILY_SCRIPTURE_NOTE_LABEL="Details" -MOD_DAILYSCRIPTURE_DAILY_SCRIPTURE_NOTE_DESCRIPTION="
Relevant Links:
How it works

The daily scripture architecture is designed to automatically select a random verse from a collection of scripture without any human intervention. The core process of selecting a random verse can be broken down into three main steps: shuffling the verses, choosing the first verse from the shuffled list, and updating the list of used verses.

  1. Shuffling the verses: The script first reads the entire list of verses from a file called "SCRIPTURE" and then shuffles this list using a random sorting algorithm. This ensures that the order of the verses in the list is entirely random and unpredictable. This randomness is crucial, as it eliminates any potential human bias or control over the selection process.
  2. Choosing the first verse from the shuffled list: Once the list of verses has been randomly shuffled, the script selects the very first verse from this shuffled list. Because the order of the verses is random, the selected verse is also random and unbiased. This chosen verse is then considered the verse of the day.
  3. Updating the list of used verses: To ensure that the same verse isn't selected again within a short period, the script maintains a separate list of recently used verses, stored in a file called "SCRIPTURE_USED." After selecting the verse of the day, the script removes it from the main "SCRIPTURE" list and adds it to the "SCRIPTURE_USED" list. Additionally, to prevent the "SCRIPTURE_USED" list from growing indefinitely, the script retains only the last 182 used verses (approximately six months). If the "SCRIPTURE_USED" list grows beyond this limit, the oldest verse in the list is removed and added back to the main "SCRIPTURE" list, making it eligible for selection again.

In summary, the random verse generation process implemented in this script is entirely automated and unbiased, relying on a random sorting algorithm to shuffle the list of verses before selecting one. The system also maintains a list of recently used verses to prevent repetition within a six-month period. This approach ensures a truly unexpected and random selection of verses, free from any human intervention or influence.

" \ No newline at end of file +MOD_DAILYSCRIPTURE_DAILY_SCRIPTURE_NOTE_DESCRIPTION="
Relevant Links:
How it works

The daily scripture architecture is designed to automatically select a random verse from a collection of scripture without any human intervention. The core process of selecting a random verse can be broken down into three main steps: shuffling the verses, choosing the first verse from the shuffled list, and updating the list of used verses.

  1. Shuffling the verses: The script first reads the entire list of verses from a file called "SCRIPTURE" and then shuffles this list using a random sorting algorithm. This ensures that the order of the verses in the list is entirely random and unpredictable. This randomness is crucial, as it eliminates any potential human bias or control over the selection process.
  2. Choosing the first verse from the shuffled list: Once the list of verses has been randomly shuffled, the script selects the very first verse from this shuffled list. Because the order of the verses is random, the selected verse is also random and unbiased. This chosen verse is then considered the verse of the day.
  3. Updating the list of used verses: To ensure that the same verse isn't selected again within a short period, the script maintains a separate list of recently used verses, stored in a file called "SCRIPTURE_USED." After selecting the verse of the day, the script removes it from the main "SCRIPTURE" list and adds it to the "SCRIPTURE_USED" list. Additionally, to prevent the "SCRIPTURE_USED" list from growing indefinitely, the script retains only the last 182 used verses (approximately six months). If the "SCRIPTURE_USED" list grows beyond this limit, the oldest verse in the list is removed and added back to the main "SCRIPTURE" list, making it eligible for selection again.

In summary, the random verse generation process implemented in this script is entirely automated and unbiased, relying on a random sorting algorithm to shuffle the list of verses before selecting one. The system also maintains a list of recently used verses to prevent repetition within a six-month period. This approach ensures a truly unexpected and random selection of verses, free from any human intervention or influence.

" \ No newline at end of file diff --git a/mod_dailyscripture.php b/mod_dailyscripture.php index 4667088..1f638cb 100644 --- a/mod_dailyscripture.php +++ b/mod_dailyscripture.php @@ -1,26 +1,19 @@ - @copyright Copyright (C) 2015. All Rights Reserved - @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + @created 3rd December, 2015 + @author Llewellyn van der Merwe + @git Get Bible + @github Get Bible + @support Get Bible + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html - A sermon distributor that links to Dropbox. - -/----------------------------------------------------------------------------------------------------------------------------------*/ +/------------------------------------------------------------------------------------------------------*/ // No direct access to this file defined('_JEXEC') or die('Restricted access'); diff --git a/mod_dailyscripture.xml b/mod_dailyscripture.xml index d760b06..61087d4 100644 --- a/mod_dailyscripture.xml +++ b/mod_dailyscripture.xml @@ -1,13 +1,13 @@ MOD_DAILYSCRIPTURE - 5th April, 2023 + 26th July, 2023 Llewellyn van der Merwe joomla@vdm.io - https://www.vdm.io/ + https://getbible.net Copyright (C) 2015. All Rights Reserved GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html - 1.1.4 + 1.1.5 MOD_DAILYSCRIPTURE_XML_DESCRIPTION @@ -32,10 +32,7 @@ - +
+ + MOD_DAILYSCRIPTURE_TELEGRAM + MOD_DAILYSCRIPTURE_NONE
-
+ +
diff --git a/script.php b/script.php index 5ecb598..eeeebed 100644 --- a/script.php +++ b/script.php @@ -1,26 +1,19 @@ - @copyright Copyright (C) 2015. All Rights Reserved - @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + @created 3rd December, 2015 + @author Llewellyn van der Merwe + @git Get Bible + @github Get Bible + @support Get Bible + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html - A sermon distributor that links to Dropbox. - -/----------------------------------------------------------------------------------------------------------------------------------*/ +/------------------------------------------------------------------------------------------------------*/ // No direct access to this file defined('_JEXEC') or die('Restricted access'); diff --git a/tmpl/default.php b/tmpl/default.php index 4b10882..7d6f578 100644 --- a/tmpl/default.php +++ b/tmpl/default.php @@ -1,26 +1,19 @@ - @copyright Copyright (C) 2015. All Rights Reserved - @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + @created 3rd December, 2015 + @author Llewellyn van der Merwe + @git Get Bible + @github Get Bible + @support Get Bible + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html - A sermon distributor that links to Dropbox. - -/----------------------------------------------------------------------------------------------------------------------------------*/ +/------------------------------------------------------------------------------------------------------*/ // No direct access to this file defined('_JEXEC') or die('Restricted access'); @@ -34,7 +27,9 @@ defined('_JEXEC') or die('Restricted access');
  • nr; ?> text; ?>
  • - get('link', 1) == 1): ?> + get('link', 2) == 2): ?> + date; ?> + get('link', 2) == 1): ?> date; ?>

    date; ?>