Sep 16 2004

Scripturizer for Javascript

Moved!

I have moved this project to my new programming/Internet blogScripturizer for Javascript.

About

This comment got me thinking – whether Scripturizer, implemented in PHP or Perl on the server side, is too difficult to use for people who have no scripting language or programming background. Dean Peter’s MovableType plugin version requires you to upload the file to your MT plugin directory, and then modify templates to invoke it. Glen Davis’ and my version for WordPress also both require uploading file(s) to WP’s plugin directory, and then activate it from inside the WP – FTP and template editing knowledge required. What about other blogging software, like TextPattern, Blosxom or Nucleus? Well, you might be able to hack the current PHP/Perl version of Scripturizer to act as a filter plugin for respective blog software, but coding knowledge required. Using PyBlosxom, Roller Weblogger or .Text? Too bad. You have to hack the regular expression yourself to port the Scripturizer over to the language the backend uses – again coding knowledge required. What about if your blog is hosted by a blog service, like Blogger or Xanga? What about if it is not a blog, but just a couple of static pages hosted on Geocity? When you have no control on the server side software – a server side solution is simply not feasible.

Thus the birth of this little script – Scripturizer for Javascript, where you can have it loaded into any web page, and this script will search for Bible references inside the document and make links to either Good News Publisher or Bible Gateway – all happening automatically on the client side. No server side programming required.

11 Comments

  1. Ian McKenzie on 17 Sep 2004 at 3:14 am #

    Great implementation. I set it up here –>>http://www.edmontontemple.com/devotionalThought/ and it worked just fine. Thanks

  2. felixt on 17 Sep 2004 at 6:24 pm #

    why no one ever thought of this before? .. good work scott!

  3. Carlos Astorga on 10 Feb 2005 at 5:27 pm #

    Thanks for the great job. How difficult would it be to made the script to hyperlink to the NET Bible? See their site here: http://www.bible.org/netbible2/index.php

    Blessings,

    Carlos

  4. Pat on 10 May 2005 at 1:20 am #

    This is really great. However, it is disabling my javascript menu structure on the page. Any ideas why?

  5. scotty on 10 May 2005 at 7:20 am #

    Pat,

    Can you show me your site? One possible cure is by setting the DOM element to be parsed and scripturized, so it does not stuff up your menu. For example, if your main content is inside

    <div id=”main-content”>

    </div>

    Then you can set up Scripturizer to only parse what’s inside “main-content”.

    <script type=”text/javascript” src=”scripturizer.js”>
    </script>
    <script type=”text/javascript”>
    Scripturizer.element = ‘main-content’;
    </script>

    Hopefully that makes sense.

  6. subq on 2 Jun 2005 at 3:27 pm #

    What file would you edit in WordPress to get this running?

  7. scotty on 2 Jun 2005 at 4:49 pm #

    You can add the <script /> to header.php in your theme.

  8. Pingback: Christianos Blog

  9. Pingback: Christianos Blog » Blog Archive » Scripturizer

  10. Pingback: ESV Bible Blog

  11. Pingback: dillydante » Blog Archive » Wordpress Modding

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>