• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Want to use Bible Scripturizer Javascript using Xenforo?

#1
Okay ... need some help ... I have limited coding experience but I would like to use the following javascript described here in our Xenforo site...

Scripturizer for Javascript finds Bible passage references in a web page, and creates links to either Good News Publisheror Bible Gateway — all done on the web browser with no server-side programming required.
Link:

http://scott.yang.id.au/code/scripturizer-js/

The goal is to have all bible reference on site pages and user's posts create these links ...

Where would I place the code?
 
#6
I looked at their example page:

http://scott.yang.id.au/file/scripturizer/scripturizer-test.html

They added the script to the head. You can use the page_container_js_head template for that.

Make sure you have uploaded the scripturizer.js file to your server. And be sure to adjust the script src if needed.
Tried adjusting the src to various locations I've uploaded the script ... and no luck...
Tested the javascript in an html page and it works ...

Is there another place I can try inserting the script code ???
 
#7
Tried adjusting the src to various locations I've uploaded the script ... and no luck...
Tested the javascript in an html page and it works ...

Is there another place I can try inserting the script code ???
Okay some progress ... when I inserted the script code in the page_container_body ... I am able to get it to work on pages I've created ..

It does not seem to work on posts/messages in forum discussions ... how should I go about this?
 

Jake Bunce

XenForo moderator
Staff member
#10
You have the script way down at the bottom of the body. Try adding it to the head by using the page_container_js_head template.
 

Jake Bunce

XenForo moderator
Staff member
#12
Well I don't see any superficial problems. The script is in the source. The src is correct. Can you contact the author for support?