[RC] Simple Online Bible Mod

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Scam Warning
User avatar
keith10456
Registered User
Posts: 2315
Joined: Thu Feb 24, 2005 6:55 pm
Contact:

[RC] Simple Online Bible Mod

Post by keith10456 »

Modification Name: Simple Online Bible Mod
Author: keith10456


Modification Description: Adds an Online Bible page to your phpBB website. Your members will be able to search and read all books of the New and Old Testament in the Bible (without leaving your site). Contains various versions/translations of the Bible in a simple, easy to use interface. Mobile friendly... The mod utilizes the bible script by Bibles.org.

Modification Version: 2.0.0


Features:
  • Easy to install. No database changes.
  • Clean easy to use user interface.
  • HTML5 / Mobile Friendly
  • Ability to search via keywords, phrases, verses, etc.
  • Easily compare verses among the various available versions.
  • Posses 'Previous' and 'Next' Chapter links for easy reading.
  • Summaries of Bible sections that helps the reader know what the groups of verses are about.
  • Bible page displays "Who's Online" info.
  • Subsilver2 support.
  • Contains all books of the Bible from the New and Old Testament.
  • Pre-installed with the following Bible translations: King James Version (KJV), New American Standard (NASB), English Standard Version (ESV), and New International Version (NIV)
Demo URL: Click here for the demo.


Modification Download: Click here to download the mod.


Online Audio Bible:
If you want an Online Audio Bible, view my Simple Audio Player Mod.


Notice: As with any mod, before you install this mod be sure to make a back-up of your phpBB files and database (this mod does not make database changes).
Last edited by keith10456 on Mon Sep 07, 2015 6:12 pm, edited 13 times in total.
User avatar
keith10456
Registered User
Posts: 2315
Joined: Thu Feb 24, 2005 6:55 pm
Contact:

Re: [RC] Simple Online Bible Mod

Post by keith10456 »

FREQUENTLY ASKED QUESTIONS


1 - Does this mod support subsilver?
Yes. The subsilver2 instructions are in the "contrib" folder of the download.


2 - How do I restrict access to the Bible page to logged-in members only?
Open: root/bible.php

Find:

Code: Select all

// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup();
After Add:

Code: Select all

if ($user->data['user_id'] == ANONYMOUS)
{
    login_box('', $user->lang['LOGIN']);
} 

3 - How do I make the "Bible" link in the overall_header viewable to logged-in members only?

Open: root/styles/prosilver/template/overall_header.html

Find:

Code: Select all

			<!-- SIMPLE ONLINE BIBLE MOD BEGIN -->
				<li class="icon-pages"><a href="{U_SIMPLE_ONLINE_BIBLE_MOD_LINK}" title="{L_SIMPLE_ONLINE_BIBLE_MOD_LINK_EXPLAIN}">{L_SIMPLE_ONLINE_BIBLE_MOD_LINK}</a></li>
				<!-- SIMPLE ONLINE BIBLE MOD END -->
Replace With:

Code: Select all

				
				<!-- SIMPLE ONLINE BIBLE MOD BEGIN -->
				<!-- IF S_USER_LOGGED_IN -->
				<li class="icon-pages"><a href="{U_SIMPLE_ONLINE_BIBLE_MOD_LINK}" title="{L_SIMPLE_ONLINE_BIBLE_MOD_LINK_EXPLAIN}">{L_SIMPLE_ONLINE_BIBLE_MOD_LINK}</a></li>
				<!-- ENDIF -->
				<!-- SIMPLE ONLINE BIBLE MOD END -->

4 - Can I remove the links that are applied to the Bible page?
No. Removing the links will violate the terms of use.


5 - How do I make the links on the Bible page open in a new window instead of the same window (so visitors won't leave my site)?

Open: root/styles/prosilver/template/bible.html

Find:

Code: Select all

<br /><p class="sobmcenter"><a href="{U_SIMPLE_ONLINE_BIBLE_MOD_INFO}">{L_SIMPLE_ONLINE_BIBLE_MOD_INFO}</a> <a href="{U_SIMPLE_ONLINE_BIBLE_MOD_INFO}">{L_SIMPLE_ONLINE_BIBLE_MOD_VERSION}</a> | <a href="{U_SIMPLE_ONLINE_BIBLE_MOD_CREDIT}">{L_SIMPLE_ONLINE_BIBLE_MOD_CREDIT}</a></p>
Replace With:

Code: Select all

<br /><p class="sobmcenter"><a href="{U_SIMPLE_ONLINE_BIBLE_MOD_INFO}" target="_blank">{L_SIMPLE_ONLINE_BIBLE_MOD_INFO}</a> <a href="{U_SIMPLE_ONLINE_BIBLE_MOD_INFO}" target="_blank">{L_SIMPLE_ONLINE_BIBLE_MOD_VERSION}</a> | <a href="{U_SIMPLE_ONLINE_BIBLE_MOD_CREDIT}" target="_blank">{L_SIMPLE_ONLINE_BIBLE_MOD_CREDIT}</a></p>
6 - How do I add this mod to a style other than prosilver?
Copy the "prosilver" folder in the download and rename it to the exact name of the style you're using.
  • Upload the copied folder to the following directory: yoursite.com/yourphpbb/styles/
  • In the install instructions, apply the edits for "overall_header.html" to the overall_header.html file of the style you're using.
  • In the install instructions, apply the edits for "stylesheet.css" to the file of the style you're using.
  • Upload the edited files. Go to the ACP, select the "Styles" tab. Refresh your "Templates", "Themes" and "Imagesets".

7 - How do I uninstall this mod?
Reverse the edits given in the install file. The edited files include:
  • yoursite.com/yourphpbb/includes/functions.php,
  • yoursite.com/yourphpbb/styles/prosilver/theme/stylesheet.css
  • yoursite.com/yourphpbb/styles/prosilver/template/overall_header.html
Delete from your server:
  • yoursite.com/yourphpbb/bible.php
  • yoursite.com/yourphpbb/language/en/mods/online_bible_lang.php
  • yoursite.com/yourphpbb/styles/prosilver/template/bible.html
  • yoursite.com/yourphpbb/styles/prosilver/theme/bible.css

8 - What versions of phpBB is this mod compatible with?
The mod was tested on versions 3.0.8, 3.0.9, 3.0.10, 3.0.11 and 3.0.12.


9 - How do I add more/different Bible translations (versions) ?

Open

Code: Select all

root/styles/yourstyle/bible.html
Find

Code: Select all

"versions": "eng-NASB,eng-KJV,eng-ESV,eng-NIV
In-Line Find

Code: Select all

eng-NIV
Add After (depending on version you want from the list below (in red))... Be sure to copy the comma (,).
  • Darby Translation: ,eng-CEVUKeng-DARBY
  • Good News Bible: ,eng-GNBDC
  • King James Version: ,eng-KJV
  • Revised Version 1885: ,eng-RV1885
  • Amplified Bible: ,eng-AMP
  • Contemporary English Version: ,eng-CEV
  • Contemporary English Version: ,eng-CEVD
  • Contemporary English Version UK: ,eng-CEVDUK
  • English Standard Version: ,eng-ESV
  • Good News Translation: ,eng-GNTD
  • The Message: ,eng-MSG
  • New American Bible, Revised: ,eng-NABRE
  • New American Standard Bible: ,eng-NASB
  • New International Version: ,eng-NIV
  • New Living Translation: ,eng-NLT
  • New Revised Standard Version: ,eng-NRSV
  • Revised Standard Version: ,eng-RSV
Last edited by keith10456 on Wed May 14, 2014 10:26 pm, edited 8 times in total.
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [RC] Simple Online Bible Mod

Post by 4_seven »

Very good idea. Praise the lord :D
Current Mods | Mod Base | php(BB) programming | No help via PM
User avatar
Kamahl19
Registered User
Posts: 1598
Joined: Tue Nov 06, 2007 3:33 pm
Location: Slovakia
Name: Martin
Contact:

Re: [RC] Simple Online Bible Mod

Post by Kamahl19 »

2 - How do I restrict access to the Bible page to logged-in members only?
rofl :lol:

Nice idea, but you should redesign it so it fit to prosilver style.
User avatar
keith10456
Registered User
Posts: 2315
Joined: Thu Feb 24, 2005 6:55 pm
Contact:

Re: [RC] Simple Online Bible Mod

Post by keith10456 »

Kamahl19 wrote:
2 - How do I restrict access to the Bible page to logged-in members only?
rofl :lol:
Why the rofl ?

Kamahl19 wrote:Nice idea, but you should redesign it so it fit to prosilver style.
I would... But the swf script wasn't written by me - so the colors of the Bible script are off. The "page" is prosilver though :)
User avatar
keith10456
Registered User
Posts: 2315
Joined: Thu Feb 24, 2005 6:55 pm
Contact:

Re: [RC] Simple Online Bible Mod

Post by keith10456 »

4_seven wrote:Very good idea. Praise the lord :D
Thanks... Amen ;)
User avatar
keith10456
Registered User
Posts: 2315
Joined: Thu Feb 24, 2005 6:55 pm
Contact:

Re: [RC] Simple Online Bible Mod

Post by keith10456 »

Modification Updated To Version 1.0.1:
Fixed a small bug on the Bible page (now centered). If you already installed the mod simply:

Open: language/en/common.php

Find:

Code: Select all

	// SIMPLE ONLINE BIBLE MOD BEGIN
	'SIMPLE_ONLINE_BIBLE_MOD_PAGE_HEADER'                  => 'Online Bible: King James Version',
	'SIMPLE_ONLINE_BIBLE_MOD_LINK'                  => 'Bible',
	'SIMPLE_ONLINE_BIBLE_MOD_LINK_EXPLAIN'            => 'Search and Read The Bible',
	'SIMPLE_ONLINE_BIBLE_MOD_INFO'                  => 'Simple Online Bible Mod v1.0.0 By Keith',
	'SIMPLE_ONLINE_BIBLE_MOD_RRO_INFO'                  => 'Bible Script By Religion Resources Online',
	// SIMPLE ONLINE BIBLE MOD END
Replace With:

Code: Select all

	// SIMPLE ONLINE BIBLE MOD BEGIN
	'SIMPLE_ONLINE_BIBLE_MOD_PAGE_HEADER'                  => 'Online Bible: King James Version',
	'SIMPLE_ONLINE_BIBLE_MOD_LINK'                  => 'Bible',
	'SIMPLE_ONLINE_BIBLE_MOD_LINK_EXPLAIN'            => 'Search and Read The Bible',
	'SIMPLE_ONLINE_BIBLE_MOD_INFO'                  => 'Simple Online Bible Mod v1.0.1 By Keith',
	'SIMPLE_ONLINE_BIBLE_MOD_RRO_INFO'                  => 'Bible Script By Religion Resources Online',
	// SIMPLE ONLINE BIBLE MOD END
Upload the files in the "root" folder of the download (replacing existing files):


Enjoy :)
User avatar
jsebean
Registered User
Posts: 378
Joined: Sat Dec 12, 2009 3:20 pm
Location: Atlantic Canada
Name: Jonah
Contact:

Re: [RC] Simple Online Bible Mod

Post by jsebean »

keith10456 wrote:
Kamahl19 wrote:
2 - How do I restrict access to the Bible page to logged-in members only?
rofl :lol:
Why the rofl ?
Maybe he meant you shouldn't restrict the bible to logged in members only, should be publicly available :P

Anyway nice contribution!
-Jonah
:lol:
User avatar
keith10456
Registered User
Posts: 2315
Joined: Thu Feb 24, 2005 6:55 pm
Contact:

Re: [RC] Simple Online Bible Mod

Post by keith10456 »

jsbean wrote:
keith10456 wrote:
Kamahl19 wrote:
2 - How do I restrict access to the Bible page to logged-in members only?
rofl :lol:
Why the rofl ?
Maybe he meant you shouldn't restrict the bible to logged in members only, should be publicly available :P

Anyway nice contribution!
I was thinking that but I wasn't sure.

For the record, I post that in all of the FAQ's of my mods.

And thanks ;)
IronDogg
Registered User
Posts: 130
Joined: Thu Sep 26, 2002 11:47 pm

Re: [RC] Simple Online Bible Mod

Post by IronDogg »

Why? What's wrong with restricting a feature to logged in members only?
User avatar
keith10456
Registered User
Posts: 2315
Joined: Thu Feb 24, 2005 6:55 pm
Contact:

Re: [RC] Simple Online Bible Mod

Post by keith10456 »

IronDogg wrote:Why? What's wrong with restricting a feature to logged in members only?
Generally speaking, nothing.
User avatar
keith10456
Registered User
Posts: 2315
Joined: Thu Feb 24, 2005 6:55 pm
Contact:

Re: [RC] Simple Online Bible Mod

Post by keith10456 »

Just a heads-up... If anyone want an Online Audio Bible, view my Simple Audio Player Mod topic. In the first post of the topic I posted the Bible audio files. Simply use the Simple Audio Player Mod with the audio files ;)
User avatar
keith10456
Registered User
Posts: 2315
Joined: Thu Feb 24, 2005 6:55 pm
Contact:

Re: [RC] Simple Online Bible Mod

Post by keith10456 »

Modification Updated To Version 1.0.2:
  • Upgrade instructions are in the "contrib" folder of the download.
  • Add - New language file to make installing the mod easier.
  • Fix - Small style change on the Bible page.
User avatar
Patrick W.
Registered User
Posts: 110
Joined: Wed Sep 26, 2007 9:02 pm

Re: [RC] Simple Online Bible Mod

Post by Patrick W. »

Hey Keith,

I found this mod though a link in your sig. I was wondering, what versions of the bible are supported for this mod? I really don't want to restrict readings to only one version. I myself like to read the NASB, NIV and ESV, depending on what I am reading and how in depth I want to go with it.
Always use the Support Board for phpBB support. One PM answers one. One post answers many.
User avatar
keith10456
Registered User
Posts: 2315
Joined: Thu Feb 24, 2005 6:55 pm
Contact:

Re: [RC] Simple Online Bible Mod

Post by keith10456 »

Patrick W. wrote:Hey Keith,

I found this mod though a link in your sig. I was wondering, what versions of the bible are supported for this mod? I really don't want to restrict readings to only one version. I myself like to read the NASB, NIV and ESV, depending on what I am reading and how in depth I want to go with it.
KJV (only)... Sorry :?
Locked

Return to “[3.0.x] MODs in Development”