The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Integrating Bible Super Search with vBulletin Details »» | |||||||||||||||||||||||||||
Integrating Bible Super Search with vBulletin
Developer Last Online: Apr 2015
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 and is free for all. I used the instructions by Gary King entitled "How to create your own vBulletin-powered page!" alongside a script at the Dynamic Drive site to make this work. Thanks goes to Digital Jedi 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, 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 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. Code:
$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(navigator.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+FFextraHeight; 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. Code:
<?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: Code:
<td class="vbmenu_control"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td> Code:
<td class="vbmenu_control"><a href="Bible_SuperSearch_vb.php">Bible Super Search</a></td> -------------------------------------------------- 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.
You can get additional bibles at: gregwolf.com and 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 Catholic Douay Rheims Bible 1899 Catholic Douay Rheims Bible 1899 (Large Print) Easton's 1897 Bible Dictionary KJV (King James Version) Bible from edible.org or gregwolf.com KJV (King James Bible: Large Print) Matthew Henry's Complete Commentary WEB (World English Bible) Bible WEB:ME (World English Bible: Messianic Edition) French 1910 Louis Segond Version de la Bible Sacr?e 1910 Louis Segond Version de la Bible Sacr?e (Large Print) Portuguese B?blia Sagrada B?blia Sagrada (Large Print) Spanish LA BIBLIA Versi?n Reina-Valera de 1909 LA BIBLIA Versi?n Reina-Valera de 1909 (Large Print) Show Your Support
|
Comments |
#32
|
||||
|
||||
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.
|
#33
|
|||
|
|||
Quote:
There is no download link on that site |
#34
|
||||
|
||||
They do seem to be hiding it for some reason: http://www.download.com/ZipGenius-St...-10179818.html
|
#35
|
|||
|
|||
How is this php file?
|
#36
|
||||
|
||||
That one looks good to me. Have you implemented it yet?
|
#37
|
|||
|
|||
Yes U uploaded it I am not sure what to do from here
|
#38
|
||||
|
||||
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.
|
#39
|
|||
|
|||
Rev, 2 things
Send me a PM and I will see what I can do. |
#40
|
||||
|
||||
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{} |
#41
|
||||
|
||||
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. |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|