Just used a Bible reference for the first time in a forum post and, lo and behold, my reference to Ephesians 6:4 is showing me Galatians 6:4 in the popup. http://questgamers.org/cms/node/51

Comments

MikeLee_Birdy’s picture

Dear Sir:
I've found the bug. Please modify bible.module in line 36 to
$book_namelist .= 'Jos|Josh|Joshua;';
Notice that in the tail should be ;'; rather than '; only.
Thanks for this report.
MikeLee

modulo49’s picture

Made the change, cleared the cache, works just fine now. Thanks for the quick response. Quick question, is it possible to alter the search so that it doesn't find words embedded in other words ie. a search for 'test' results in a verse with 'eatest'?

MikeLee_Birdy’s picture

Dear Sir:
Yes. There's a simple but not a good way to go:
Modify bible.module in line 1730, find this line:
$wherestr .= " UPPER(context) LIKE '%". strtoupper($kw). "%'";
change to:
$wherestr .= " context REGEXP '[[:<:]]". $kw. "[[:>:]]'";
But this can only work on English-like bibles. Some Chinese-like bibles would not work.
MikeLee

modulo49’s picture

Status: Active » Closed (fixed)