Scripturizer in PHP

UPDATE 12/23/2004: I’ve moved my version of the code to the new WP Plugins repository, so you can download it at http://dev.wp-plugins.org/file/scripturizer/trunk/scripturizer.php

UPDATE: plans are afoot to merge the three existing codebases (Dean’s, Scott Yang’s, and this one) into a single Sourceforge project. (UPDATE 12/23/2004: nothing has really come of that–we’re all a little busy and haven’t really worked to make it happen. Oh well…)


Not realizing that Mean Dean was porting Scripturizer to PHP, I went ahead and did it so that I could begin using it on this WordPress site. At about the same time Scott Yang made one, so there are two versions out there. Sorry about that.

I originally wasn’t going to package it for release, but it turns out that I had to do it to actually use it on my site :), and so I figured I might as well put it in the public version to make it easy for anyone else to use. Also, figuring out how to use add_action was nonobvious (at least when I first did this–I believe the documentation has improved considerably), so I wanted to provide a clear example.

It extends the functionality of the original and also changes the data permanently in the user’s database (as opposed to Scott’s, which filters it on the fly). You can set mine to do that (see the source code), but Scott’s will work that way out of the box. Which you prefer is up to you. Mine is more efficient, his affects all the archives without making you manually edit anything.

Usage: just copy the source code to a file named scripturize.php in your wp-content/plugins folder. Go to your administration panel, click on Plugins, and activate it. Then just refer to the Bible in your posts. If you don’t want a Bible reference hyperlinked, be sure to enclose it in preformatting tags, like so: 

<pre>John 3:16</pre>

Changes from Dean’s original:

  • You can specify a translation you want to link to by putting the standard abbreviation after the reference like so: John 3:16, NIV or 2 Cor 5:20 (NET). This one is huge, for me.
  • Added New English Translation. I like this translation for several reasons, but mostly for its philosophical underpinnings.
  • Made syntax a little more permissive. For instance, you can now specify a reference by saying Gen. 12:1 or Gen 12:1 (period/no period).
  • Made syntax a little less permissive as regards whitespace. Just write things normally and everything will work fine (I changed this to correct some errors I was seeing wherein the link would run into the blank space after the reference).
  • The regular expressions handle linking a little bit differently. It does something more useful when confronted with a crazy reference like Rom 1:3, 5–8, 10,12 that the online Bibles don’t know what to do with.
  • As I mentioned, by default it will actually change your post as stored in your database. Forever. Irreversibly. With no backup. Just be aware of that.
  • You can now specify a default translation. It is initially set to the NIV, because I assume that’s what most people will want.

Please Report Bugs In Bug Tracker
I’d really like to know if you catch any bugs. I use this plugin myself, so bugs directly affect me! 🙂

There is a bug tracker set up at http://dev.wp-plugins.org/newticket, so please report any problems there. 

transitioning to new content management software

I’m migrating the site from Movable Type to WordPress, so please pardon any temporary funkiness. I’m also trying to reformat things to distinguish useful content from fun content using a cool technique I ran across free charade movie download .

Puncturing Inflated Grades

I just read a great essay: How to End Grade Inflation by Michael Berube (prof at Penn State).

He humorously identifies the problem: English departments have basically worked on the A/B binary system for some time: A’s and A‑minuses for the best students, B’s for everyone else and C’s, D’s and F’s for students who miss half the classes or threaten their teachers with bodily harm.

And then proposes a clever solution: What to do? If we so desired, we could recalibrate grades at Penn State, at Princeton or at any college in the country. The principle is simple enough, and it’s crucial to every diving competition: we would merely need to account for each course’s degree of difficulty.

Every professor, and every department, produces an average grade — an average for the professor over her career and an average for the discipline over the decades. And if colleges really wanted to clamp down on grade inflation, they could whisk it away statistically, simply by factoring those averages into each student’s G.P.A. Imagine that G.P.A.‘s were calculated on a scale of 10 with the average grade, be it a B‑minus or an A‑minus, counted as a 5. The B‑plus in chemical engineering, where the average grade is, say, C‑plus, would be rewarded accordingly and assigned a value of 8; the B‑plus in psychology, where the average grade might be just over B‑plus, would be graded like an easy dive, adequately executed, and given a 4.7.

I have to say, I like it. I don’t think any universities are going to go for it, but I wish they would…

iMeals

Feel constrained by your meal plan? Try what one USC frosh did

Changed Message Archive Format

I went nuts today trying to figure out a problem with this website–I couldn’t create an entry with a link to Dennis’ message. For some reason Movable Type (the software that maintains this site) wouldn’t save anything with the link text in it. It drove me up the wall!

Anyway, I wound up reconfiguring the entire way that I archive messages on this site before finally deciding to change the text directly in the database.

I mention all this to explain why the front page is all links to past messages–a temporary byproduct of the aforementioned reconfiguration. It will pass as new content is added.

Polyhedral Prophets

Usually when Christians talk about roleplaying games you can expect a lot of heat and very little light (artfully mocked by the Dead Alewives’ classic bit Dungeons and Dragons). That’s why I was so thrilled to run across the article Roleplaying the Faith which contained several fascinating links.

Roleplaying is a part of geek culture, and Stanford is a bit of a geek campus, so I thought these might interest some of you: Religion and Roleplaying, the Christian Gamers Guild, and Tracy Hickman’s essay on Ethics in Fantasy (for the record, Hickman is a Mormon).

Something Completely Unrelated to Dana

I noted earlier that one of our our alumni was a finalist in the Miss Singapore Universe competition.

The finals are Saturday. Paula and I can’t wait to find out if she’s Miss Singapore Universe. Paula was quite close to Adeline last year, and misses her so much she actually began crying while looking at photos of her online.

Anyway, I stumbled across the official page today. She’s the first gal (top left photo).

Of course, we already have two Miss Universes in our house

Top 100 April Fool&#8217;s Day Hoaxes

In honor of today’s very special nature, I thought I’d mention The Top 100 April Fool’s Day Hoaxes download sight . There’s some funny stuff there.

Baby Davis Has Arrived!

Glen & Paula had their first child today at 4:03pm. Read more and see photos!

Spring Break Filler

Hope you’re having a great spring break. Of course, if you are then you’re probably not obsessively checking this website…

Anyway, Andrew’s off to Russia and Lynette’s on her way back from Oxford. Andrew got pickpocketed in London–I hope he blogs about it.

As you’ve probably heard, alumna Adeline is a finalist in the Miss Singapore Universe competition.

Finally, if you haven’t seen the previews, there’s a new teen movie coming out called Saved that pokes fun at the Christian high school scene. Tim Bednar has an interview with the director (thanks to Andrew Careaga for the lead).