I'd like to use the KJV. Is there a way to make this happen?

Comments

Steve Simms’s picture

Category: feature » support
Status: Active » Closed (fixed)

Yes, you can do this in one of two ways:

  1. Without making any changes to the code, you can put the abbreviation of a Bible translation in parentheses after a scripture reference -- e.g. John 1:12 (KJV).
  2. You can modify the scripturefilter.inc file. The very first line that isn't a comment lets you set the default Bible translation. Change that to "KJV".

There's a feature request (http://drupal.org/node/10323) to allow the default version to be set per user. I'd also like to add a way to make it configurable either per-filter or per-site.

Hope this helps,
Steve Simms

bradlis7’s picture

I actually made a program that does something similar to this one, but only for biblegateway, with other functionality as well. I know... shame on me for not checking first.

Anyways, I've the scriptures linked directly to a location, which automatically redirect it to bible gateway.com. Here's the code relating to this:

function biblegateway_menu($may_cache) {
  $items = array();

  if($may_cache) {
    $items[] = array('path' => 'biblegateway/redirect', 'title' => t('Redirecting...'),
      'callback' => '_biblegateway_redirect',
      'access' => 'access content',
      'type' => 'MENU_CALLBACK');
  }
  // ...
  return $items;

}
//...
function _biblegateway_redirect() {
  $s = explode('/',$_GET['q']);
  if($s[2]) {
    header('Location: http://www.biblegateway.com/passage/?search='.$s[2]."&version=".variable_get("biblegateway_version","31"));
    exit(0);
  }
}

This also selects the version from a variable in the system when the verse is looked up, so there's no need to update content when changing the default version. This could also allow for an individual option for version.

The entire code for this module hasn't been published, in case you were wondering. I might, but not sure if I want to use it as a way to get people to host through me or not.