Closed (won't fix)
Project:
Scripture Filter
Version:
master
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
5 Dec 2006 at 17:11 UTC
Updated:
7 Jan 2012 at 15:02 UTC
Jump to comment: Most recent file
Comments
Comment #1
Steve Simms commentedI'm not familiar with Libronix. Could you include more information?
If you're able to make the code changes (or know someone who can), I'll be happy to incorporate it into the module.
Comment #2
tcblack commentedI'm no coder but adding the tags is as simple as creating a regular html link.
here is the complete Information page: http://logos.com/support/lbs/weblinking.
The format of the link is like the following:
<a href="libronixdls:keylink|ref=[en]bible:Genesis%201%3A1"><img border="0" src="LibronixLink.gif"></a>Basically what I'd like to accomplish with the Libronix links in Scripture Filter would be to create the links you already create but simply add the attached link.gif with a jump to the Libronix/Logos software as below:
<a target="_blank" href="http://bible.gospelcom.net/bible?passage=Genesis%201%3A1&language=english">Genesis 1:1</a><a title="Jump to Passage in Logos Bible Software Series X" href="libronixdls:keylink|ref=[en]bible:Genesis%201%3A1"><img border="0" src="LibronixLink.gif"></a>This results in: Genesis 1:1
Comment #3
tcblack commentedoops, the final tag should have resulted in the libronixlink.gif added at the end as a link. But image tags are disabled.
Genesis 1:1|LibronixLink.gif
Comment #4
tcblack commentedI finally managed to put together a working patch.
You can see it working at my site, http://www.stilltruth.com
As it stands the Libronix link is not optional meaning that it is always appended to the link at the end. You may want to consider making it optional, but I just don't know how to do that. This little patch already took more PHP than I knew. :-)
Keep in mind that you have to download the libronix link image (http://logos.com/images/Corporate/LibronixLink.gif) and place it in the scripturefilter module directory.
Comment #5
Steve Simms commentedHmm, it looks like this would only work for people with Logos installed, and everyone else would get an error if they clicked on the image...
Have a look at #10323: Per-User Bible Preference. Do you think you could set it up so that a user could turn on whether or not these links show up? That way, if they have Logos installed, they can check a box, and all of their scripture links will show up with the Libronix link, while for everyone else, they'll get just the normal link.
Comment #6
tcblack commentedYou are correct Steve, that's how it would work. I've left a note on #1023 Unfortunately I just don't have a clue how to accomplish that. I already used more PHP than I knew to add this much :-) Basically I very carefully looked through the existing code and replicated and changed it to match.
Any takers want to help?
Comment #7
jamesoakleyIt looks to me like Reftagger implements this fully, so is the module to use if it's Logos implementation you're after.
I note that it works by using client-side Javascript, which has to be the way to do it. Even separating out the Libronix link based on an individual Drupal user enabling it in their profile isn't really suitable for a module like this. There's nothing to stop someone logging in as that user on a different computer that doesn't have Logos installed, and then it would be a broken link.
No - this module does all its work server-side, whereas Reftagger does all its work client-side. Adding links to Libronix definitely belongs with the latter.