Skip to content

The YouVersion ExpressionEngine plugin gives you the ability to quickly link to Bible verses using a simple tag structure that's familiar to ExpressionEngine

Notifications You must be signed in to change notification settings

erikreagan/er.youversion.ee_addon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 

Repository files navigation

ExpressionEngine YouVersion Plugin

The YouVersion ExpressionEngine plugin gives you the ability to quickly link to Bible verses using a simple tag structure that’s familiar to ExpressionEngine. This plugin was originally written by Dan Frist (@danfrist) for WordPress and was ported over to ExpressionEngine by Erik Reagan (@erikreagan).

Compatible with both ExpressionEngine 1.6.x and ExpressionEngine 2.x

Instructions

  • EE 1.6.x: Copy youversion/pi.youversion.php to your system/plugins directory
  • EE 2.x: Copy the youversion directory to you system/expressionengine/third_party directory

Also, there’s a great “how-to” by Jason Isaacs on the YouVersion support board that walks through giving your users [youversion] buttons on the edit page. You can find that here: How to install and best use the ExpressionEngine/Youversion Plugin

Usage

By wrapping your content in {exp:youversion} tags you can automatically link up scripture references to youversion.com. Separate multiple references by a comma and a space (see example below).

Examples

In-template reference:

{exp:youversion}[youversion]John 3:16[/youversion]{/exp:youversion}

Link all references in a custom field (where your custom field could contain “[youversion]John 3:16[/youversion]”):

{exp:youversion version="nkjv"}{content_body}{/exp:youversion}

Use a comma+space delimiter for multiple references within a single [youversion] tag pair:

{exp:youversion}[youversion]John 3:16, 1 Timothy 1:7[/youversion]{/exp:youversion}

Versions / Translations

By default NIV will be used for the version. You can specify your version preference by adding the parameter version="" and using one of these versions:

bg1940        Bulgarian 1940 
csbkr         Czech Bible Kralicka 1613 
elb           Elberfelder Bibel 
delut         Luther Bible 1545 
asv           American Standard Version 
amp           Amplified Bible 
cev           Contemporary English Version 
esv           English Standard Version 
gwt           GOD'S WORD Translation 
hcsb          Holman Christian Standard Bible 
kjv           King James Version 
net           New English Translation 
nasb          New American Standard Bible 
ncv           New Century Version 
niv           New International Version 
nkjv          New King James Version 
tniv          Today's New International Version 
nlt           New Living Translation 
msg           The Message 
web           World English Bible 
lbla          La Biblia de las Americas 
nblh          Nueva Biblia de los Hispanos 
nvi           Nueva Version Internacional 
rves          Reina-Valera Antigua 
finpr         Finnish 1938 
lsg           Louis Segond 
idbar         Terjemahan Baru 
itriv         Italian Riveduta (1927) 
ja1955        Colloquial Japanese (1955) 
sv1750        Statenvertaling 
norsk         Det Norsk Bibelselskap 1930 
aa            Almeida Atualizada 
rmnn          Romanian Cornilescu 1928 
sven          Svenska 1917 
vi1934        1934 Vietnamese Bible

Notes

Remember to spell the verse reference properly and use the commonly accepted format for Bible references (ie. John 3:16). The reference formats that work are “John 3:16” and “John 3:16-18”. References that use commas (ie. John 3:16,18) or multi-chapter spans (ie. John 3:16-4:5) will not work and will result in a link that leads to a dead page on YouVersion.com.

Parameters

version=""
Chooses the version/translation of the Bible to link to on YouVersion.com (see available versions and respective abbreviations above). The version will default to New International Version (niv)

class=""
Define’s the anchor tag’s class. The class will default to “youversion_link”.

Acceptable book names

Old Testament

  • Genesis
  • Exodus
  • Leviticus
  • Numbers
  • Deuteronomy
  • Joshua
  • Judges
  • Ruth
  • 1 Samuel
  • 2 Samuel
  • 1 Kings
  • 2 Kings
  • 1 Chronicles
  • 2 Chronicles
  • Ezra
  • Nehemiah
  • Esther
  • Job
  • Psalms
  • Proverbs
  • Ecclesiastes
  • Song of Solomon
  • Isaiah
  • Jeremiah
  • Lamentations
  • Ezekiel
  • Daniel
  • Hosea
  • Joel
  • Amos
  • Obadiah
  • Jonah
  • Micah
  • Nahum
  • Habakkuk
  • Zephaniah
  • Haggai
  • Zechariah
  • Malachi

New Testament

  • Matthew
  • Mark
  • Luke
  • John
  • Acts
  • Romans
  • 1 Corinthians
  • 2 Corinthians
  • Galatians
  • Ephesians
  • Philippians
  • Colossians
  • 1 Thessalonians
  • 2 Thessalonians
  • 1 Timothy
  • 2 Timothy
  • Titus
  • Philemon
  • Hebrews
  • James
  • 1 Peter
  • 2 Peter
  • 1 John
  • 2 John
  • 3 John
  • Jude
  • Revelation

About YouVersion

YouVersion is an online Bible tool that offers 41 Bible versions in over 20 languages. At YouVersion.com, you can read the Bible in an innovative format, share your Bible reading experience with your friends, create Contributions with rich media and Journal entries that are tied to passages of Scripture, or subscribe to one of our 22 Bible reading plans.

YouVersion.com has given you the ability to engage with Scripture like never before, and with YouVersion mobile you have access to the Bible, corresponding contributions, reading plans, and online community no matter where you are. Our YouVersion mobile apps put the YouVersion experience in the palm of your hand. Apps are available for the iPhone, iPod Touch, Blackberry, Android, Palm’s WebOS, Java, and the mobile web.

Learn more about our mobile Bible applications at http://youversion.com/mobile

Change Log

May 9th, 2014: 1.2.1

  • Adjusted URLs output by plugin to match the updated YouVersion url (bible.com)

May 4th, 2010: 1.2.0

  • Feature: Parses multiple scriptures inside a single [youversion] tag pair (by way of comma delimitation) – see Usage for details

Mar 27th, 2010: 1.1.0

  • Feature: Now works in both EE 1.6.x and EE 2.x

Mar 24th, 2010: 1.0.2

  • Feature: Added “class” parameter for custom defining of anchor tag classes
  • Bug: Multiple lines parsed incorrectly
  • Note: Updated README and usage docs to reflect new “class” parameter
  • Note: Changed most of the code to work with multiple matches within {exp:youversion} tags

Mar 23rd, 2010: 1.0.1

  • Fixed typo in books array

Mar 22nd, 2010: 1.0.0

  • Initial Release

About

The YouVersion ExpressionEngine plugin gives you the ability to quickly link to Bible verses using a simple tag structure that's familiar to ExpressionEngine

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages