PDA

View Full Version : Integration with vBulletin - Integrating Bible Super Search with vBulletin


PGAmerica
05-29-2008, 10:00 PM
This will add a Bible Super Search to your forums. This is not so much a modification
or hack as it is a tutorial. It does not require you to edit any files or templates. It
does require you to create 1 php file and 1 template.

If you don't want to create the php file or the template, I have added them to this post.

Credits: The Bible Super Search program I used is from biblesupersearch.com (http://www.biblesupersearch.com) and is
free for all. I used the instructions by Gary King entitled "How to create your own (https://vborg.vbsupport.ru/showthread.php?t=62164)
vBulletin-powered page! (https://vborg.vbsupport.ru/showthread.php?t=62164)" alongside a script at the Dynamic Drive (http://www.dynamicdrive.com/dynamicindex17/iframessi2.htm) site to make this
work. Thanks goes to Digital Jedi (https://vborg.vbsupport.ru/member.php?u=164758) for sending me the links for this.
------------------------------
NOTES:
This document assumes that you have installed the Bible Super Search program. If
you have not, please go to www.biblesupersearch.com (http://www.biblesupersearch.com), download it and get it
running on your site. Once that is done, go to Step 1 in this document.

This document also assumes that you have placed the "Bible Super Search" program
in the "forums/bible/BibleSuperSearch" folder. If you have not, just change every
reference to "bible/BibleSuperSearch/" to the path of your program.

Demo (http://www.hidingplace.com/forums/Bible_SuperSearch_vb.php)

INSTALLATION INSTRUCTIONS
Step 1: Make a new template named "Bible_SuperSearch" and put the following in it.
Note: You can alse cut and paste from the "Bible_SuperSearch_template.txt" file that I have made available in this post.

$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$vboptions[bbtitle]</title>
$headinclude
<script type="text/javascript">

/***********************************************
* IFrame SSI script II- ? Dynamic Drive DHTML code library (http://www.dynamicdrive.com)
* Visit DynamicDrive.com for hundreds of original DHTML scripts
* This notice must stay intact for legal use
***********************************************/

//Input the IDs of the IFRAMES you wish to dynamically resize to match its content height:
//Separate each ID with a comma. Examples: ["myframe1", "myframe2"] or ["myframe"] or [] for none:
var iframeids=["Bible_SuperSearch"]

//Should script hide iframe from browsers that don't support this script (non IE5+/NS6+ browsers. Recommended):
var iframehide="yes"

var getFFVersion=navigator.userAgent.substring(navigat or.userAgent.indexOf("Firefox")).split("/")[1]
var FFextraHeight=parseFloat(getFFVersion)>=0.1? 500 : 0 //extra height in px to add to iframe in FireFox 1.0+ browsers

function resizeCaller() {
var dyniframe=new Array()
for (i=0; i<iframeids.length; i++){
if (document.getElementById)
resizeIframe(iframeids[i])
//reveal iframe for lower end browsers? (see var above):
if ((document.all || document.getElementById) && iframehide=="no"){
var tempobj=document.all? document.all[iframeids[i]] : document.getElementById(iframeids[i])
tempobj.style.display="block"
}
}
}

function resizeIframe(frameid){
var currentfr=document.getElementById(frameid)
if (currentfr && !window.opera){
currentfr.style.display="block"
if (currentfr.contentDocument && currentfr.contentDocument.body.offsetHeight) //ns6 syntax
currentfr.height = currentfr.contentDocument.body.offsetHeight+FFextr aHeight;
else if (currentfr.Document && currentfr.Document.body.scrollHeight) //ie5+ syntax
currentfr.height = currentfr.Document.body.scrollHeight;
if (currentfr.addEventListener)
currentfr.addEventListener("load", readjustIframe, false)
else if (currentfr.attachEvent){
currentfr.detachEvent("onload", readjustIframe) // Bug fix line
currentfr.attachEvent("onload", readjustIframe)
}
}
}

function readjustIframe(loadevt) {
var crossevt=(window.event)? event : loadevt
var iframeroot=(crossevt.currentTarget)? crossevt.currentTarget : crossevt.srcElement
if (iframeroot)
resizeIframe(iframeroot.id);
}

function loadintoIframe(iframeid, url){
if (document.getElementById)
document.getElementById(iframeid).src=url
}

if (window.addEventListener)
window.addEventListener("load", resizeCaller, false)
else if (window.attachEvent)
window.attachEvent("onload", resizeCaller)
else
window.onload=resizeCaller

</script>
</head>
<body>
$header

$navbar

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat">World English (WEB) Bible</td>
</tr>
<tr>
<td class="alt1"><iframe id="Bible_SuperSearch" src="bible/BibleSuperSearch/bible_supersearch.php?interface=user_friendly1" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" vspace="0" hspace="0" style="overflow:visible; width:100%; display:none"></iframe></td>
</tr>
</table>

$footer
</body>
</html>
Note on above template code: This code is designed the use the "Friendly1"
interface. You can use the interface of your choice by replacing "user_friendly1" with
any of the interfaces that came with the Bible Super Search program. The current
available choices are: advanced, classic, compact_book_browsing, compact_simple,
parallel, parallel2, user_friendly1 & user_friendly2. The program even allows you to
create your own interface. If you do this, just put in the name of the file (minus the .php) you created.

Step 2: Create a file named "Bible_SuperSearch_vb.php" and place the following into it:
Note: You can also just use the "Bible_SuperSearch_vb.php" file that I have made available in this post.
<?php

// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);

// #################### DEFINE IMPORTANT CONSTANTS #######################
define('NO_REGISTER_GLOBALS', 1);
define('THIS_SCRIPT', 'Bible_SuperSearch'); // change this depending on your filename

// ################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array(

);

// get special data templates from the datastore
$specialtemplates = array(

);

// pre-cache templates used by all actions
$globaltemplates = array(
'Bible_SuperSearch',
);

// pre-cache templates used by specific actions
$actiontemplates = array(

);

// ######################### REQUIRE BACK-END ############################
require_once('./global.php');

// ################################################## #####################
// ######################## START MAIN SCRIPT ############################
// ################################################## #####################

$navbits = array();
$navbits[$parent] = 'Bible Super Search';

$navbits = construct_navbits($navbits);
eval('$navbar = "' . fetch_template('navbar') . '";');
eval('print_output("' . fetch_template('Bible_SuperSearch') . '");');

?>

Step 4: Upload the newly created file into your forum root folder.
Step 5: Edit the "navbar" template

Search for:
<td class="vbmenu_control"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td>And add this after it:
<td class="vbmenu_control"><a href="Bible_SuperSearch_vb.php">Bible Super Search</a></td>That's it. Let me know if you need help.
--------------------------------------------------
Addon:
I have used this exact same code to put html Bibles from ebible.org on my site. Here are some instructions to help you do that.
Go to ebible.org (http://ebible.org) and get the bible of your choice.
Make it work
Create the template I mentioned in Step 1 above
Note: Change the name of the template to reflect the bible version you are adding.
Change all references in the template that says "Bible_SuperSearch" to "Bible_Insert the Version Here" (I used "Bible_KJV" for my KJV bible and "Bible_Web" for my World English bible)
Modify the iframe statement in the template to point to the php file you are about to create.
Create the file I mentioned in Step 2 above
Note: Change the filename to reflect your bible version (I used "Bible_KJV_vb.php" for my KJV bible and "Bible_WEB_vb.php" for my World English bible.
Modify all references to 'Bible Super Search' to 'Bible Insert the Version Name Here'
Modify all references to Bible_SuperSearch to the name of the template you just created.
Now follows steps 4 & 5 above
Note: Make sure to modify your link to point to the newly created php file.That should about cover it.

You can get additional bibles at: gregwolf.com (http://www.gregwolf.com/bibles.htm) and ebible.org (http://ebible.org). I am sure there are many other sites as well. Here is just a few free html bibles I found online. Many of these will require you to edit the html code so that they behave and look the way you wish them too.

English
ASV (American Standard Version) Bible (http://ebible.org/asv/asvhtm.zip)
Catholic Douay Rheims Bible 1899 (http://www.gregwolf.com/download/Douay_Rheims_1899.zip)
Catholic Douay Rheims Bible 1899 (Large Print) (http://www.gregwolf.com/download/lp-Douay_Rheims_1899.zip)
Easton's 1897 Bible Dictionary (http://www.gregwolf.com/download/ebd.zip)
KJV (King James Version) Bible from edible.org (http://ebible.org/kjv/kjvhtm.zip) or gregwolf.com (http://www.gregwolf.com/download/kjv.zip)
KJV (King James Bible: Large Print) (http://www.gregwolf.com/download/lp-kjv.zip)
Matthew Henry's Complete Commentary (http://www.gregwolf.com/download/mhc-complete.zip)
WEB (World English Bible) Bible (ttp://ebible.org/web/webhtm.zip)
WEB:ME (World English Bible: Messianic Edition) (http://ebible.org/hnv/hnvhtm.zip)

French
1910 Louis Segond Version de la Bible Sacr?e (http://www.gregwolf.com/download/fr1910ls.zip)
1910 Louis Segond Version de la Bible Sacr?e (Large Print) (http://www.gregwolf.com/download/lpfr1910ls.zip)

Portuguese
B?blia Sagrada (http://www.gregwolf.com/download/pt-bible.zip)
B?blia Sagrada (Large Print) (http://www.gregwolf.com/download/lp-pt-bible.zip)

Spanish
LA BIBLIA Versi?n Reina-Valera de 1909 (http://www.gregwolf.com/download/sp1909rv.zip)
LA BIBLIA Versi?n Reina-Valera de 1909 (Large Print) (http://www.gregwolf.com/download/lpsp1909rv.zip)

PGAmerica
05-31-2008, 06:03 PM
If you used this, I would appreciate it if you would not only click the "Install" link, but also post a message with a link to the site using it.

samsci
05-31-2008, 07:48 PM
This is something I am definately interested in. Once I can figure out how to get the Bible Supersearch to see the database, I will be adding this.

samsci
05-31-2008, 09:05 PM
I got the bible software installed, but when I try to access the Bible Super Search from my site, I get the following error:

Warning: require_once(./global.php) [function.require-once]: failed to open stream: No such file or directory in /home/prophecy/public_html/bible/BibleSuperSearch/bible_supersearch.php on line 32

Fatal error: require_once() [function.require]: Failed opening required './global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/prophecy/public_html/bible/BibleSuperSearch/bible_supersearch.php on line 32

samsci
06-01-2008, 12:55 AM
Was able to get everything installed and it works beautifully. This is an excellent mod and anyone who has a Christian based web site, I would highly recommend it. :up:

Jeff

www.prophecylive.com

PGAmerica
06-01-2008, 02:02 AM
Was able to get everything installed and it works beautifully. This is an excellent mod and anyone who has a Christian based web site, I would highly recommend it.
Well, this is not really my mod at all. I am just good at writing instructions and spelling things out. I am glad you are making use of it.

MikeHolohan
06-01-2008, 04:53 AM
checking it out now...

Rickeo
06-01-2008, 11:53 AM
Wonerful mod :) installing :D:D

Will post back :)

God Bless you

Rick

MikeHolohan
06-01-2008, 12:37 PM
Works well! thanks for the hack... Installed...

Now where can I get more bibles for this?

Mike.

PGAmerica
06-01-2008, 05:36 PM
Now where can I get more bibles for this?

I have updated the first post to show some online free html bible links. Please, if you have more to add, share them with us all.

MikeHolohan
06-02-2008, 07:29 AM
1. Go to ebible.org and get the bible of your choice.
2. Make it work...



This is where i am having the problem...

PGAmerica
06-02-2008, 12:59 PM
Hmmm, the html bibles at ebible.org only require you to upload them to your server in order to work.

What problem are you having?

MikeHolohan
06-03-2008, 05:03 PM
Hmmm, the html bibles at ebible.org only require you to upload them to your server in order to work.

What problem are you having?

Ah ok, that was the problem, I didn't know what to do with them...

thanks, Mike.

Digital Jedi
06-04-2008, 01:23 AM
I see you found another use for the script combo. Pretty nifty.

PGAmerica
06-04-2008, 03:40 AM
I am nothing if not adaptable. Thanks for the help.

intricatic
06-18-2008, 01:32 PM
Nifty. I currently have it running on my site (http://www.christcenteredforums.com).

PGAmerica
06-18-2008, 02:15 PM
Glad it worked. It looks good on your site too.

revmitchell
07-25-2008, 04:09 AM
Not working for me all I get is a blank page:


http://www.pastors-source.com/vb/Bible_SuperSearch_vb.php

Any thoughts?

Digital Jedi
07-26-2008, 02:59 AM
Not working for me all I get is a balnk page:


http://www.pastors-source.com/vb/Bible_SuperSearch_vb.php

Any thoughts?
Make sure you your template name is exactly right, and that you've included it in all of your styles.

revmitchell
07-26-2008, 12:53 PM
Make sure you your template name is exactly right, and that you've included it in all of your styles.



Maybe I have done this wrong. I made a new template via vba cmps. How do you make a new template?

Digital Jedi
07-28-2008, 05:06 AM
Maybe I have done this wrong. I made a new template via vba cmps. How do you make a new template?
Yeah, that likely won't work. vBa only makes templates for use with vBa. Any template you make with it, no matter what you name it, will have the prefix adv_portal_ tacked onto the name. Your PHP file will be looking for a template with the exact name Bible_SuperSearch, but your template is probably called adv_portal_Bible_SuperSearch, so your template isn't being found.

Create your template using the Style Manager.

Admin CP >>> Styles & Templates >>> Style Manger

Click the drop down menu beside one of your styles and select Add New Template and create your template there. You'll need to add that template to each one of your styles, provided you use more then one and you don't use child styles.

revmitchell
07-28-2008, 11:18 AM
Alright I got that fixed. Now I have a different problem I dont know how to explain it take a look:


http://www.pastors-source.com/vb/Bible_SuperSearch_vb.php

Digital Jedi
07-28-2008, 01:22 PM
It's not finding the bible/BibleSuperSearch/bible_supersearch.php file that came with Bible Super Search. The tutorial presumes you have it in that specific directory, and relative to your forum directory. Which directory did you put Super Search in when you first installed it?

revmitchell
07-28-2008, 05:33 PM
http://www.pastors-source.com/biblesupersearch//Bible_SuperSearch_vb.php

This creates this error:

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/httpd/vhosts/pastors-source.com/httpdocs/biblesupersearch/Bible_SuperSearch_vb.php on line 2

Parse error: syntax error, unexpected T_STRING in /home/httpd/vhosts/pastors-source.com/httpdocs/biblesupersearch/Bible_SuperSearch_vb.php on line 2

What have I done wrong?

Digital Jedi
07-28-2008, 11:04 PM
It looks like you may have deleted a ' when you edited your PHP file. Can we take a look your PHP and template code?

revmitchell
08-01-2008, 03:24 AM
I have attached the php file here is the temp file:


$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$vboptions[bbtitle]</title>
$headinclude
<script type="text/javascript">

/***********************************************
* IFrame SSI script II- ? Dynamic Drive DHTML code library (http://www.dynamicdrive.com)
* Visit DynamicDrive.com for hundreds of original DHTML scripts
* This notice must stay intact for legal use
***********************************************/

//Input the IDs of the IFRAMES you wish to dynamically resize to match its content height:
//Separate each ID with a comma. Examples: ["myframe1", "myframe2"] or ["myframe"] or [] for none:
var iframeids=["Bible_SuperSearch"]

//Should script hide iframe from browsers that don't support this script (non IE5+/NS6+ browsers. Recommended):
var iframehide="yes"

var getFFVersion=navigator.userAgent.substring(navigat or.userAgent.indexOf("Firefox")).split("/")[1]
var FFextraHeight=parseFloat(getFFVersion)>=0.1? 500 : 0 //extra height in px to add to iframe in FireFox 1.0+ browsers

function resizeCaller() {
var dyniframe=new Array()
for (i=0; i<iframeids.length; i++){
if (document.getElementById)
resizeIframe(iframeids[i])
//reveal iframe for lower end browsers? (see var above):
if ((document.all || document.getElementById) && iframehide=="no"){
var tempobj=document.all? document.all[iframeids[i]] : document.getElementById(iframeids[i])
tempobj.style.display="block"
}
}
}

function resizeIframe(frameid){
var currentfr=document.getElementById(frameid)
if (currentfr && !window.opera){
currentfr.style.display="block"
if (currentfr.contentDocument && currentfr.contentDocument.body.offsetHeight) //ns6 syntax
currentfr.height = currentfr.contentDocument.body.offsetHeight+FFextr aHeight;
else if (currentfr.Document && currentfr.Document.body.scrollHeight) //ie5+ syntax
currentfr.height = currentfr.Document.body.scrollHeight;
if (currentfr.addEventListener)
currentfr.addEventListener("load", readjustIframe, false)
else if (currentfr.attachEvent){
currentfr.detachEvent("onload", readjustIframe) // Bug fix line
currentfr.attachEvent("onload", readjustIframe)
}
}
}

function readjustIframe(loadevt) {
var crossevt=(window.event)? event : loadevt
var iframeroot=(crossevt.currentTarget)? crossevt.currentTarget : crossevt.srcElement
if (iframeroot)
resizeIframe(iframeroot.id);
}

function loadintoIframe(iframeid, url){
if (document.getElementById)
document.getElementById(iframeid).src=url
}

if (window.addEventListener)
window.addEventListener("load", resizeCaller, false)
else if (window.attachEvent)
window.attachEvent("onload", resizeCaller)
else
window.onload=resizeCaller

</script>
</head>
<body>
$header

$navbar

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat">World English (WEB) Bible</td>
</tr>
<tr>
<td class="alt1"><iframe id="Bible_SuperSearch" src="bible/BibleSuperSearch/bible_supersearch.php?interface=user_friendly1" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" vspace="0" hspace="0" style="overflow:visible; width:100%; display:none"></iframe></td>
</tr>
</table>

$footer
</body>
</html>

Digital Jedi
08-01-2008, 04:22 AM
Woah, something completely garbled your PHP file. I know some HTML editors do that after viewing them and saving. You'll definitly need to download it again and replace it.

revmitchell
08-01-2008, 04:31 AM
Woah, something completely garbled your PHP file. I know some HTML editors do that after viewing them and saving. You'll definitly need to download it again and replace it.


I have downloaded it three (3) times. After I delete all the old files. And I get the same results every time. And I make no changes or even attempt to make no changes to the php file.

Digital Jedi
08-01-2008, 05:19 AM
Do you use any download acceleration software?

revmitchell
08-01-2008, 05:23 AM
Do you use any download acceleration software?


No not at all. I do use 7zip to open it.

Digital Jedi
08-01-2008, 05:27 AM
Try downloading Zip Genius (http://www.zipgenius.it/eng/index.php) and see if you run into the same problem. It's free and functionally the same as something like WinZip. Maybe we can track down the source of your problem.

revmitchell
08-01-2008, 05:47 AM
Try downloading Zip Genius (http://www.zipgenius.it/eng/index.php) and see if you run into the same problem. It's free and functionally the same as something like WinZip. Maybe we can track down the source of your problem.


There is no download link on that site

Digital Jedi
08-01-2008, 01:15 PM
They do seem to be hiding it for some reason: http://www.download.com/ZipGenius-Standard-Edition/3000-2250_4-10179818.html

revmitchell
08-04-2008, 06:37 AM
How is this php file?

Digital Jedi
08-04-2008, 06:54 AM
That one looks good to me. Have you implemented it yet?

revmitchell
08-04-2008, 07:03 AM
Yes U uploaded it I am not sure what to do from here

Digital Jedi
08-04-2008, 07:43 PM
Redo the steps for install and use that file for the PHP file and see if you get the same problems. I think part of the problem was that your PHP file was getting corrupted somehow.

PGAmerica
08-11-2008, 06:44 PM
Rev, 2 things

You want to put Bible_SuperSearch_vb.php in your "vb" folder (this is your forum root).
You want to modify the link in your navbar to refer to "/vb/Bible_SuperSearch_vb.php" becasue on your homepage, it going to your hosting root folder.I am sorry that I have not been around to help you. Thank you Digital Jedi for stepping in. If you need help with this, I can probably just do it for you. It is upto you.

Send me a PM and I will see what I can do.

Chadi
08-27-2008, 12:18 AM
Thanks for the mod.

I cannot for the life of me figure out how to adjust the *default* font size/color for the standard text and output (results for searches).

I played around with the css but nothing kicked in it seems and the html is outdated, sloppy from the original supersearch tool.

I'm using the compact theme and this is the compact_book_browsing.css portion for font size

a.f-large{font-size:14pt;}
a:hover.f-large{}
a:visited.f-large{}

a.f-medium{font-size:12pt;}
a:hover.f-medium{}
a:visited.f-medium{}

a.f-small{font-size:10pt;}
a:hover.f-small{}
a:visited.f-small{}

Chadi
08-28-2008, 04:39 AM
edit: sorry my mistake, disregard problem with missing browse by book options.

Would appreciate help on modifying the style of the drop down menus (including font/colors/borders).

I cannot figure out what files/css portion to edit for this.

Chadi
09-10-2008, 03:35 AM
Any help on this appreciated. Thanks in advance :)

Great work PG.

Praise Jesus Christ for His awesomeness, He is alive!

Holy Bible
09-10-2008, 12:03 PM
Excellent mod. Installed.

Thank you for providing us this great tool for the only GOD inspired Holy Bible

PGAmerica
09-10-2008, 02:06 PM
Excellent mod. Installed.

Thank you for providing us this great tool for the only GOD inspired Holy Bible
It was a Godsend to me when I got my answer for this. Thank you for your kind words.

I cannot for the life of me figure out how to adjust the *default* font size/color for the standard text and output (results for searches).
I did not write the BibleSearch program and am not very good with css. However, I will have a look. No guarantees.

If there is anybody here that is good with css, maybe they can have a look. The css file he is referring to looks like this
q/* At-Rules */
@charset "iso-8859-1";

/* Bible SuperSearch
// Bible SuperSearch Version 1.0.00
// The free, open source, PHP and MySQL web-based
// Bible Reference retrevial and search utility
//
// Copyright (C) 2006 Luke Mounsey
// www.BibleSuperSearch.com
// www.Alive-in-Christ.com
//
// bible_stylesheet.css
// This contains all Cascading Stylesheet information needed
// for Bible SuperSearch formatting and displaying Bible Verses
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License included in the file
// "license.txt" for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

// Bible_Stylesheet.css Version 0.5
*/

/* Formatting for verses and default formatting for everythign else */
body {margin:0; text-align: left; font-family:Arial, sans-serif;}

/* Default Links */
A:link {color:navy; text-decoration:underline;}
A:visited {color:navy;}
A:active {color:navy;}

/* Help link */
A.helplink{color:lightblue;text-decoration:underline;}

/* Bible SuperSearch info */
span.info{font-size:70%;}

/* "center" shortcut */
.center{text-align:center;}

/* centers tables and divs */
.element_center{margin-left:auto; margin-right:auto;}

/* Title - appears at TOP of page, ie Bible SuperSearch */
.title {font-size:18.0pt; color:darkorange; text-align:center;}

/* BOOK LIST*/

/* Area limitation for the book list*/
div.booklist{text-align:justify; width:81%; line-height:3; margin:auto;}

/* Formatting for book link TEXT This "span" SURROUNDS the book link*/
span.booklink{background-color:tan; padding:7; margin:5; margin-top:20; text-decoration:none;font-family:serif}

/* Formatting for book LINK */
a.book_link{text-decoration:none;}

/* Area limitation for verse list*/
p.verse, div.verse {margin-left:.5in; margin-right:.5in}

/* Heading for Old and New Testaments for book list */
.testamentheader{font-family:Old English Gothic, Old English; text-align:center; font-size:120%}
/* VERSE DISPLAY */

/* Header reference for multiple verses or whole book */
div.passage_header{font-weight:bold;font-size:110%;text-align:center;}

/* Reference for individual verses */
span.ver_ref{font-weight:bold;}

/* Verse references for ranges, whole chapters and books */
span.ran_ref{font-weight:bold}

/* Chapter headings for full book display */
div.chapter, td.chapter{text-decoration:underline}

/* Simulates a real link for JavaScript popup "help"*/
.link{text-decoration:underline; color:navy; cursor:pointer;}

/* Highlighting for searches */
span.hl{font-weight:bold;}

/* Context Links for individual verses */

a.ct{text-decoration:none;color:black;}
a:hover.ct{text-decoration:underline overline;}

/* Styles for table (nice) formatting */
.t_text{text-align:justify;vertical-align:top;}
.t_verse{text-align:right;vertical-align:top;width:20px;font-size:70%;}
.s_verse{text-align:justify;vertical-align:top;}

/* FORMATTING BUTTONS */
a.forma{}

a.f-style{}
a:hover.f-style{}
a.visited.f-style{}

a.f-large{font-size:14pt;}
a:hover.f-large{}
a:visited.f-large{}

a.f-medium{font-size:12pt;}
a:hover.f-medium{}
a:visited.f-medium{}

a.f-small{font-size:10pt;}
a:hover.f-small{}
a:visited.f-small{}

a.f-serif{font-family:serif;}
a:hover.f-serif{}
a:visited.f-serif{}

a.f-sans{font-family:sans-serif;}
a:hover.f-sans{}
a:visited.f-sans{}

a.f-mono{font-family:monospace; font-size:13pt;}
a:hover.f-mono{}
a:visited.f-mono{}

/* FORMS */

/* General forms /*

/* Text boxes */
.text_box{}
/* Passage and search queries*/
.query{width:200; }

/* Drop-down menus */
.drop_down{}

/* NEW MATERIAL */

/* Search type drop down */
.searchtype{width:107px;}

/* Book list drop down */
.book_list{width:125px;}

/* Labels for radio buttons and check boxes */
/* (Text for search type, Whole words only */
.label{font-size:80%; font-family:Arial; color:white;}

/* Bible version (drop-down menu) */
.bible_version{width:240px}

/* Buttons */
.button{font-family:Arial, sans-serif;font-size:9pt;padding:0;margin:0;vertical-align:center;}
/* this controls various aspects of different sized buttons,
so they all look identical */

.button_small{width:50px; padding:0;}
.button_med{width:80px;}

/* Pagination */
div.page{text-align:center;font-weight:bold; }
a:link.page{text-decoration:none;}
a:visited.page{text-decoration:none;}
a:hover.page{text-decoration:none; color:darkorange;background-color:navy;}

/* "edit this request" */
div.request, span.request{background:white; border:1px solid; border-color:darkorange;padding-left:3;padding-right:3; font-size:10pt;}
/* "edit this request" link */
a:link.request{color:black; text-decoration:none;}
a:visited.request{color:black; text-decoration:none;}
a:hover.request{color:navy; text-decoration:underline;}

/* INTERFACE SPECIFIC FORMATTING
/* These stylesheets are for the "Classic" (Alive-in-Christ.com) interface */
/* Title */
.classic_title{padding:-1;margin:0;position:relative;top:0;}

/* Outer table */
.classic_outer_table{
margin-left:auto; margin-right:auto; background-image: url('bible_images/background_classic.jpg');
background-position:ncenter;
background-repeat:no-repeat;position:absolute;
top:0; left:0; padding:0; padding-top:0; width:100%;
margin-right:0; HEIGHT:132;
}

/* Table row that contains the title */
.classic_title_row{text-align:center; spacing:0;padding:0; height:10px;}

/* Form envelope, (div, p or table cell) */
.classic_form{vertical-align:top;padding-bottom:0; spacing-bottom:0;}
/* Table cell with look up and Bible Version */
.classic_table2_lookup{vertical-align:top; text-align:right; color:white;}
/* Table cell with search and search options */
.classic_table2_search{vertical-align:top;padding-bottom:0; spacing-bottom:0;}
/* Table cell containing last search info */
.classic_table2_editsearch{padding-left:10px;}


/* remove ALL below in distribution version!!*/
div.homelink {text-align:center;}

A:link.homelink {color:navy;}
A:visited.homelink {color:navy;}
A:active.homelink {color:navy;}

div.introverse {color:#003300; font-weight:bold;}
span.header, div.header {color: #ff6600; font-size: 10.0pt; font-weight: bold}

.product_header, p.product_name{color:red; text-align:center; font-size:200%;}
p.product_description{margin-left:auto; margin-right:auto; width:700;color:darkred;}

div.download{margin-left:auto; margin-right:auto; width:600; text-align:justify; background-color:lightgreen;padding:5px;}
span.download_title{font-weight:bold;}
.faq{margin-left:50; margin-right:50;}
.welcome{margin:15; margin-left:50; margin-right:50; text-align:justify;}
td.index{vertical-align:top; padding:5;}
.article{margin-left:45; margin-right:45;}

gibby540
09-29-2008, 01:50 AM
Very nice! *installed*

www.lampstandstudy.com

How do you change the background color of the search page?

Pixel-Peeps
09-29-2008, 02:01 AM
Good work be useful but my forum probably wouldn't need this.

PGAmerica
09-29-2008, 02:27 PM
How do you change the background color of the search page?
I do not rightly know. However, in the "BibleSuperSearch" folder there is an "interface" folder. In there you will find a css file for the interface you have chosen. Maybe that will help.

gibby540
09-29-2008, 03:32 PM
OK, thanks.

basketmen
10-16-2008, 06:53 PM
argh guys i still cannot install biblesupersearch.com software, because my hostname is mysql.mydomain.com and not localhost



i get this error when i want to installing http://www.domain.com/bible/BibleSuperSearch/bible_install.php

Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /home/.juice/basketmen/domain.com/bible/BibleSuperSearch/bible_mysql.php on line 68
Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)




i had try change localhost to mysql.mydomain.com bible_mysql.php, bible_inst_login.php and bible_inst_manager.php, but still not solve the problem, its still says cannot connect to the mysql host



please help guys what i miss or i need to change, i had read the instruction careful but still no luck

PGAmerica
10-16-2008, 08:54 PM
argh guys i still cannot install biblesupersearch.com software, because my hostname is mysql.mydomain.com and not localhost.

[quote=basketmen;1646556]i get this error when i want to installing http://www.domain.com/bible/BibleSuperSearch/bible_install.php

Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /home/.juice/basketmen/domain.com/bible/BibleSuperSearch/bible_mysql.php on line 68
Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

i had try change localhost to mysql.mydomain.com bible_mysql.php, bible_inst_login.php and bible_inst_manager.php, but still not solve the problem, its still says cannot connect to the mysql host

please help guys what i miss or i need to change, i had read the instruction careful but still no luck

Mine is not localhost either. The installation is supposed to overwrite your bible_login.php file with a new one, therefore prompting you for your database info.

You can try renaming bible_login_demo.php to bible_login.php, edit the file and put in the following information.

<?php
// Enter your MySQL login information below
$host="Put Your DB Address Here";
$user="Put Your DB Username Here";
$password="Put Your DB Password Here";
$db="Put Your DB Name Here";
?>

If that does not work, I can poke at it for you. You would need to pm me the pertinent info tho. (FTP, DB, ACP, etc).

basketmen
10-17-2008, 07:22 AM
[quote=basketmen;1646556]argh guys i still cannot install biblesupersearch.com software, because my hostname is mysql.mydomain.com and not localhost.



Mine is not localhost either. The installation is supposed to overwrite your bible_login.php file with a new one, therefore prompting you for your database info.

You can try renaming bible_login_demo.php to bible_login.php, edit the file and put in the following information.

<?php
// Enter your MySQL login information below
$host="Put Your DB Address Here";
$user="Put Your DB Username Here";
$password="Put Your DB Password Here";
$db="Put Your DB Name Here";
?>

If that does not work, I can poke at it for you. You would need to pm me the pertinent info tho. (FTP, DB, ACP, etc).
thank you, it works now using that methode

gbu

Mellymonster
10-26-2008, 05:55 PM
I keep getting this when I go to the page

Not Found
The requested URL /forum/bible/BibleSuperSearch/bible_supersearch.php was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/1.3.41 Server at gods4me.com Port 80

PGAmerica
10-27-2008, 02:51 PM
The only thing that can mean is that you did not upload BibleSuperSearch into this directory. Are you forums in the /forum folder?

Stefanus
01-15-2009, 03:53 PM
If you used this, I would appreciate it if you would not only click the "Install" link, but also post a message with a link to the site using it.

Great mod. Installed (http://www.wendag.com/forum/Bible_SuperSearch_vb.php).

Thanks,
Stefanus