Posted by davidblewett on August 24, 2004 at 6:48pm
4 followers
Jump to:
| Project: | Scripture Filter |
| Version: | master |
| Component: | User interface |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
I intend on allowing the user to control their preferred Bible version and language translation, if the admin has enabled user profiles.
Comments
#1
I posted this in a closed thread, and didn't see it at first, but I'll repost it here as well...
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.
#2
Something like bradlis7's code would need to be used to get around the issue of caching -- otherwise, I'm not sure how you could get per-user links in node content.
Unassigning this and setting the version to HEAD.
I'd love to see this implemented -- it would especially be handy on sites where you have very firm KJV-only folks communicating with those who prefer more modern translations. :-)
#3
It looks a treat actually.
I'm trying to figure out how to make it work at 101505 with a completely different type of tag.
There I'm attempting to generate a second tag linked to a software program on a local user's computer (Libronix).
I would need to call not only the user's first bible from biblegateway but also a second tag in order to link to Libronix.