Scripturizer is Out There
Feb 3rd, 2007 by Brian A. Thomas
I managed to find the new repository for Scripturizer, and it does work in Wordpress 2.1, which the older version did not for some reason. I am using version 1.6 Developer. A few changes to make...
Line 75:
-
<h2><?php _e('Scripturizer 1.5a', 'Scripturizer'); ?></h2>
Needs changed to say:
-
<h2><?php _e('Scripturizer 1.6 Dev', 'Scripturizer'); ?></h2>
This is a minor cosmetic change, but makes the options page show the correct version.
The big fix is lines 425 to 429 which look like this:
-
//***** Begin WSC hack
-
if ($book == ('WSC' || 'Westminster Shorter Catechism') ) {
-
$bible = 'WSC' && $translation = 'WSC';
-
}
-
//***** End WSC hack
This needs commented out, otherwise it will come out as the Westminster Shorter Catechism regardless of what you chose as the default.
-
// //***** Begin WSC hack
-
// if ($book == ('WSC' || 'Westminster Shorter Catechism') ) {
-
// $bible = 'WSC' && $translation = 'WSC';
-
// }
-
// //***** End WSC hack
Technically you don't need to comment out the lines that are already comments. I can't see yet why it defaults to the WSC when it goes through this block the logical operators seems to be correct but if we just take out the OR logical operator it works again as well, so I don't know what is going on, as in the below code:
-
//***** Begin WSC hack
-
if ($book == ('WSC')) { // || 'Westminster Shorter Catechism') ) {
-
$bible = 'WSC' && $translation = 'WSC';
-
}
-
//***** End WSC hack






