Bible Verse Plugin with Random Daily Verse

Nathan Parker
Nathan Parker Member Posts: 1,755 ✭✭✭
edited November 2024 in English Forum

Is there a way to have a Bible Verse plugin similar to this:

http://biblia.com/plugins/BibleVerse

But have it randomly change the Bible verse daily? A church website I'm working on is asking about that.

The church is a KJV-only church, so the Verse of the Day plugin isn't a good option.

Thanks!

Nathan Parker

Visit my blog at http://focusingonthemarkministries.com

Comments

  • David Mitchell
    David Mitchell Member Posts: 1,275 ✭✭✭

    We have no current plans to implement such a feature, but you could accomplish this by dynamically generating the widget url when you render the page. (if the page is static, you could accomplish something similar using Javascript when the page loads)

    David Mitchell
    Development Lead
    Faithlife

  • Nathan Parker
    Nathan Parker Member Posts: 1,755 ✭✭✭

    We have no current plans to implement such a feature, but you could accomplish this by dynamically generating the widget url when you render the page. (if the page is static, you could accomplish something similar using Javascript when the page loads)

    It's in WordPress, so should be able to do that. How would I edit the widget to dynamically generate the URL with a new verse?

    Nathan Parker

    Visit my blog at http://focusingonthemarkministries.com

  • David Mitchell
    David Mitchell Member Posts: 1,275 ✭✭✭

    How would I edit the widget to dynamically generate the URL with a new verse?

    When you configure the widget, you should see a shortened form of the Bible verse (a two or three letter book abbreviation followed by the chapter, a '.', and then the verse) in the url. If you change this, it will change the verse that is loaded.

    If you do this, you'll want to remove the <blockquote> element from the source, as it will not update dynamically.

    David Mitchell
    Development Lead
    Faithlife

  • Nathan Parker
    Nathan Parker Member Posts: 1,755 ✭✭✭

    How would I edit the widget to dynamically generate the URL with a new verse?

    When you configure the widget, you should see a shortened form of the Bible verse (a two or three letter book abbreviation followed by the chapter, a '.', and then the verse) in the url. If you change this, it will change the verse that is loaded.

    If you do this, you'll want to remove the <blockquote> element from the source, as it will not update dynamically.

    Sounds good. I'll look into it.

    By the way, I ran into an issue with this plugin: http://biblia.com/plugins/BibleSearchBox. Even though I set the KJV as the version in the code, when members of the church accessed it, they got results back in the ESV. The pastor actually flooded my phone with calls while I was in a class telling me to look into it. I went ahead and pulled the code for now (so I can get my studies done), but if you can dobule-check the widget and see what it's doing for you, I'll try to test it later and see if I can reinstate it.

    Thanks!

    Nathan Parker

    Visit my blog at http://focusingonthemarkministries.com