View Full Version : vrBible Filter -- 0.8
UltraVR
02-08-2006, 10:00 PM
vrBible Filter -- 0.8
Ported for your pleasure by: UltraVR (http://www.bibliahistoria.com)
*Attention, this product is no longer supported.* You can find a new, updated product here* (https://vborg.vbsupport.ru/showthread.php?p=996181#post996181)
Introduction
I run a Bible History forum, and I wanted a convenient way to automatically convert Bible verses into links. I came across a module for Drupal that did this, and it was very helpful. The Drupal modification is free to alter and distribute, so I ported it to vBulletin as a plug-in.
What does it do?
Well kids, it will turn a Bible verse like this: Ezekiel 1:5
...into a link to Bible Gateway like this: Ezekiel 1:5 (http://biblegateway.com/cgi-bin/bible?language=english&version=NIV&passage=Ezekiel+1%3A5)
Known Issues
None at the moment, but as this is my first plugin, I'm sure there will be many! :paranoid:
Installation
AdminCP -> Plugin System -> Manage Products -> Add/Import Product
1) Import the XML File from your computer.
2) If you are upgrading select "Yes" to allow overwrite.
3) Dance, and behold your magical Bible auto-linkage.
Change Log
2.09.06 - Primary Release
UltraVR
02-09-2006, 06:49 AM
How To
Change the default translation
If you would like to change the default translation that the Filter links to, follow these steps: (Currently it defaults to NIV)
1) AdminCP -> Plugin System -> Plugin Manager -> Edit "Convert to Bible Link" (Found in global_start section)
2) FIND on Line 1:
define('DEFAULT_BIBLE_TRANSLATION','NIV'); 3) REPLACE 'NIV' with the translation you want. The options are:
'NIV' - New International Version
'NASB' - New American Standard Version
'AMP' - Amplified Paraphrase
'NLT' - New Literal Translation
'KJV' - King James Version
'ESV' - English Standard Version
'CEV' - Contemporary English Version
'NET' - New English Translation
'NKJV' - New King James Version
'KJ21' - I don't know
'ASV' - American Standard Version
'WE' - I don't know
'YLT' - Young's Literal Translation
'DARBY' - Darby Translation
'WYC' - I don't know
'NIV-UK' - New International Standard Version - UK
'MSG' - Message Bible Paraphrase
'NIRV' - New International Revised Version
(Note: Replace 'NIV' with 'ESV', for example...the full name is in the list for your information, not for you to copy)
Link to a different version than the default
When posting, simply add the translation AFTER the reference.
For example:
"Genesis 2:7 KJV" will result in "Genesis 2:7 KJV (http://biblegateway.com/cgi-bin/bible?language=english&version=KJV&passage=Genesis+2%3A7)"
Also, you can add parenthesis and it will still work. For example:
"Genesis 2:7 (ESV)" will result in "Genesis 2:7 (ESV) (http://www.gnpcb.org/esv/search/?go=Go&q=Genesis+2%3A7)"
FleaBag
02-09-2006, 09:58 AM
It wouldn't have a use on my forum, but your hack is very resourceful! Great intuitive work. :)
ChurchMedia
02-09-2006, 02:29 PM
Cool! Thanks!
UltraVR
02-09-2006, 03:31 PM
It wouldn't have a use on my forum, but your hack is very resourceful! Great intuitive work. Thanks! It's good to have kind words on your first plugin!
Cool! Thanks!You are very welcome!
Snake
02-09-2006, 03:38 PM
Awesome thanks!
UltraVR
02-09-2006, 04:38 PM
Awesome thanks! Certainly!
If anyone notices any bugs, be sure to let me know.
I haven't run across any so far, so if nobody else does, I'll bump this up to 1.0 eventually. :)
inspiration100
02-09-2006, 04:54 PM
Fantastic hack! Installing!
AshokForums.com
02-09-2006, 06:38 PM
thanks for this mate
PennylessZ28
02-09-2006, 06:55 PM
I like it.
UltraVR
02-09-2006, 07:19 PM
Guys, I added a small How-To in the second post if you want to change the version the Filter links to.
UltraVR
02-09-2006, 07:33 PM
I also added a small tutorial on how to link to a different translation from the post screen, too. Easy stuff!
You can find it in the second post.
BeatificFaith
02-10-2006, 10:10 AM
Thank you very much! Installed flawlessly and works perfectly!
UltraVR
02-10-2006, 04:16 PM
Hey No Problem!
If anyone has this installed and wants to post a link to their page here, I'll put them up in the first thread as demo links.
Chadi
02-10-2006, 09:53 PM
Great thank you. What about opening a new window?
Darth Gill
02-10-2006, 11:14 PM
Awesome! I have this installed on my forum. I actually wrote my own php bible software years ago, but haven't kept up with it. I would like a plugin that would allow people to search and paste from the bible in an ajax box on the post reply screen! That would be perfect!
http://www.predestinarian.net
Milad
02-11-2006, 12:48 AM
I didn't understand Bible!!!
UltraVR
02-11-2006, 03:34 AM
Great thank you. What about opening a new window?
Try this:
1) Open vbBible_text.xml
2) Replace Line 101 with:
$link = sprintf('<a href="%s%s" title="%s" target="_blank">%s</a>',$link,htmlentities(urlencode(trim("$volume $book $verse"))),$title,trim($reference));
3) Replace Line 109 with:
$link = sprintf('<a href="%s&book=%s&chapter=%s&verse=%s" title="%s" target="_blank">%s</a>',$link,htmlentities(urlencode($book)),$chapter,$v erses,$title,trim($reference));
4) Replace Line 114 with:
$link = sprintf('<a href="%s%s" title="%s" target="_blank">%s</a>',$link,htmlentities(urlencode(trim("$volume $book $verse"))),$title,trim($reference));
5) Re-Upload and replace the product xml file.
Tell me if that works! :)
I didn't understand Bible!!!
A lot of people don't understand the Bible, don't feel bad. :laugh:
Milad
02-11-2006, 02:49 PM
A lot of people don't understand the Bible, don't feel bad. :laugh:
What does this hack do?
Chadi
02-11-2006, 02:51 PM
Your kidding right?
"What does it do?
Well kids, it will turn a Bible verse like this: Ezekiel 1:5
...into a link to Bible Gateway like this: Ezekiel 1:5"
UltraVR
02-11-2006, 04:15 PM
The Bible is the Christian Holy Book. Where is Syro?
Matt Slick
02-11-2006, 04:21 PM
Hey No Problem!
If anyone has this installed and wants to post a link to their page here, I'll put them up in the first thread as demo links.
I installed it here:
http://www.christiandiscussionforums.org/v/index.php
But, is there a way to have the bible window open in a different (pop up)window and not the same one?
Great mod, though.
Darth Gill
02-11-2006, 04:22 PM
I installed it here:
http://www.christiandiscussionforums.org/v/index.php
But, is there a way to have the bible window open in a different (pop up)window and not the same one?
Great mod, though.
Hello Matt. It's been a while since we chatted on Paltalk. Just thought I'd say "Hi!" - Darth Gill - http://www.predestinarian.net
UltraVR
02-11-2006, 05:37 PM
Matt, try my solution here:
https://vborg.vbsupport.ru/showpost.php?p=897013&postcount=18
Let me know if that works! :)
Holidazed
02-18-2006, 11:02 PM
Question: I installed it, and even did UltraVR's changes. However, I do not see how it works. I see nothing int he ACP for any mode of configuration. I also do not see any new options in my forum message creation pages.
ideas?
Screenshots would be nice
Bro_Joey_Gowdy
02-19-2006, 03:26 PM
KJV should be the 1st and the only on the list ;)
UltraVR
02-19-2006, 07:42 PM
Question: I installed it, and even did UltraVR's changes. However, I do not see how it works. I see nothing int he ACP for any mode of configuration. I also do not see any new options in my forum message creation pages.
ideas?
Screenshots would be nice
ACP Configuration is going to come in Version 1.0. I'm still working out some possible options for that.
This plugin will convert Bible verses in your threads into links to that specific Bible verse. Try typing: "Genesis 2:7" in a test thread. Does it become a link?
KJV should be the 1st and the only on the list
I'm a big fan of the ESV, myself. It's probably the most accurate thing out there for students. The KJV, does, admittedly, read really nice outloud though. :)
KMxRetro
02-19-2006, 09:03 PM
I have no use for it and am not religious - but you've done a great job here UltraVR - well done. :)
UltraVR
02-20-2006, 03:12 AM
Thanks, buddy!
Verlin
02-20-2006, 11:57 PM
Love this hack! Just one thing, tried the modification to open in a new window (great idea) and now it is linking the entire post from the verse on. Is it just me? When I change back to original hack it resolves it again.
UltraVR
02-21-2006, 03:28 AM
I just tried it, and my code works for me. Is anyone else having this problem?
Make sure you copy the replacement exactly, and that target="_blank" has both the quotes.
Verlin
02-21-2006, 04:43 AM
Hey I went through my file again and noticed one difference...
I revised my code on line 114 to as follows and it works perfect now. (Bold is inserted, not coming through correctly should include brackets).
$link = sprintf('<a href="%s%s" title="%s"target="_blank">%s</a>',$link,htmlentities(urlencode(trim("$volume $book $verse"))),$title,trim($reference));
BTW, great hack, thanks a lot! :)
Verlin
UltraVR
02-22-2006, 04:02 AM
Oh yes, thank you. I'll add that fix to 1.0. Glad you like the plugin!
CrazyTech
02-25-2006, 09:08 PM
Really appreciate vrBible Filter! Great work! :)
cerndeosil
02-25-2006, 09:41 PM
WOW! That will be a useful resource. Thanks UltraVR. :)
BB
Mike
Freak0204
02-26-2006, 08:34 AM
Great hack! It'll get a lot of use on my forum.
*Clicks install
BoredOutOfMyMin
03-02-2006, 02:55 AM
I seem to be having a problem uploading the file from my Desktop as an *.xml file
Sorry, no XML was passed into this function and the $path variable empty
What am I doing wrong?!?
UltraVR
03-02-2006, 03:20 AM
Did you unzip the files and upload the XML file in the archive?
BoredOutOfMyMin
03-03-2006, 02:25 AM
Did you unzip the files and upload the XML file in the archive?
I tried it, and it did not work. The error was returned as you can see.
UltraVR
03-03-2006, 03:32 AM
Perhaps try re-downloading it and then unzip it?
You get that error message if no XML file is uploaded. Are you importing it as a plugin, and not a product?
brvheart
03-03-2006, 01:00 PM
great hack.... *clicks install*
things to consider:
1. make an option to pop open in new window by default
2. allow for it to interpret james 5:5 to a link, currently it will only accept "proper" word spelling with caps etc - ex. james 5:5 will not show up as a link, but James 5:5 will (the capital letter in the word (J) makes a difference.
user02934123123
05-27-2006, 01:07 PM
Thanks for this excellent product. I've installed it on our site, and the members are extremely pleased with it.
I'd like advice on increasing its functionality somewhat, along the following lines:
The books of the 'Apocrypha' (Tobit, Sirach, etc.) are very important for much historical study of Christian history, and are supported on biblegateway.com, which provides the scripture engine behind this hack. However, I don't see that the hack itself supports these books. How could these be added in to its functionality?
Is it possible to configure the hack so that it recognises the full stop (.) as well as the colon (:) as a chapter-and-verse separator (thus John 1.14)? This is the more common separator in some countries, and indeed in most academic theological writing (on which our forum focuses).
Is it possible for the hack to provide support for alternative transliterations of book names? Many Eastern Orthodox people know and refer to book names as they exist in English through Greek rather than Hebrew sources -- thus Isaias rather than Isaiah, Avakoum rather than Habbakuk, etc. Could this hack be configured in some way to support both variants on such names?
Of those, numbers 1 and 2 are the most pressing. 3 would be a real boon, but might be far more complex to implement.
My many thanks in advance for pointers and assistance. This is an outstanding product.
UltraVR
05-28-2006, 07:13 PM
Thanks for this excellent product. I've installed it on our site, and the members are extremely pleased with it.
great hack.... *clicks install*
Thanks guys! I'm glad you found some use with it!
1. make an option to pop open in new window by default
2. allow for it to interpret james 5:5 to a link, currently it will only accept "proper" word spelling with caps etc - ex. james 5:5 will not show up as a link, but James 5:5 will (the capital letter in the word (J) makes a difference.
The books of the 'Apocrypha' (Tobit, Sirach, etc.) are very important for much historical study of Christian history, and are supported on biblegateway.com, which provides the scripture engine behind this hack. However, I don't see that the hack itself supports these books. How could these be added in to its functionality?
Is it possible to configure the hack so that it recognises the full stop (.) as well as the colon (:) as a chapter-and-verse separator (thus John 1.14)? This is the more common separator in some countries, and indeed in most academic theological writing (on which our forum focuses).
Is it possible for the hack to provide support for alternative transliterations of book names? Many Eastern Orthodox people know and refer to book names as they exist in English through Greek rather than Hebrew sources -- thus Isaias rather than Isaiah, Avakoum rather than Habbakuk, etc. Could this hack be configured in some way to support both variants on such names?
Thanks for all your suggestions! In light of these suggestions, here are the features for the next few versions I am planning. In version 1.0, I will hopefully be able to implement:
- An AdminCP option for which translation is default
- An AdminCP option for opening a new window
In version 1.5, I will begin expanding further on the features that the original author for Wordpress designed. I'll implement:
- Various other ways to create a link (e.g. periods as well as colons, support for variant Hebrew and Greek Orthodox book names)
- Support for the Apocrypha
- More stuff as it comes along.
Keep looking out for version 1.0, as I will be releasing it soon to coincide with the relaunching of my website.
Thanks again for the suggestions, everyone!
user02934123123
05-30-2006, 08:21 AM
I would be inclined to say that the options for supporting the apocrypha and alternative reference punctuation (i.e. periods as well as colons) are more important for the next release than AdminCP options for default translation and opening in new windows: these latter would be nice tweaks, but changing them via editing the files, as instructed in the messages in this thread, is simple enough. The others are not.
Something else to consider for future versions: it would be nice if the conversion to links also happened in Preview mode, rather than just at final posting. I don't know how viable this is, but would be a nice feature.
UltraVR
05-30-2006, 11:57 PM
The reason they are being held off for a later version is because of the level of time it will take to complete them, not so much their importance because I'd like to see all the features implemented soon. Hopefully, however, the period of time between the two releases will be small.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.