vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   vrBible Filter -- 0.8 (https://vborg.vbsupport.ru/showthread.php?t=107513)

UltraVR 02-08-2006 10:00 PM

vrBible Filter -- 0.8
 
vrBible Filter -- 0.8
Ported for your pleasure by: UltraVR

*Attention, this product is no longer supported.* You can find a new, updated product here*

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

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:

PHP Code:

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"

Also, you can add parenthesis and it will still work. For example:

"Genesis 2:7 (ESV)" will result in "Genesis 2:7 (ESV)"

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

Quote:

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!

Quote:

Originally Posted by ChurchMedia
Cool! Thanks!

You are very welcome!

Snake 02-09-2006 03:38 PM

Awesome thanks!

UltraVR 02-09-2006 04:38 PM

Quote:

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

Quote:

Great thank you. What about opening a new window?
Try this:

1) Open vbBible_text.xml
2) Replace Line 101 with:

PHP Code:

$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:

PHP Code:

$link sprintf('<a href="%s&book=%s&chapter=%s&verse=%s" title="%s" target="_blank">%s</a>',$link,htmlentities(urlencode($book)),$chapter,$verses,$title,trim($reference)); 

4) Replace Line 114 with:

PHP Code:

$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! :)

Quote:

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

Quote:

Originally Posted by UltraVR
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

Quote:

Originally Posted by UltraVR
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

Quote:

Originally Posted by Matt Slick
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....3&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

Quote:

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?

Quote:

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

Quote:

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

Quote:

Originally Posted by UltraVR
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?


All times are GMT. The time now is 05:49 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01318 seconds
  • Memory Usage 1,827KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_php_printable
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete