I'm playing around with Drupal 7, and was wondering, will there be a D7 version of this module made available in the near future? I realize that Drupal 7 is not in Beta format, even, yet, but it sure does seem to work very good for an Alpha level product.

Comments

MikeLee_Birdy’s picture

Yes. I'll develop Bible module for D7. But I'll wait until final release. If you got any ideas should put in the next version, please suggest so that I can put them together.

kjv1611’s picture

I did have one thought - and honestly, I don't know if there would be a way to fix this at all.

On my church's website, I am using the Bible module for Bible verses. For one thing, it sometimes works correctly, and other times, it does not. The part I'm talking about is using the Bible filter to show a pop-up of the Bible text whenever someone hovers over a verse reference. It may be that some books don't have their full names in the text file that it's based off of, while others do. I know I've looked there before to find what shortcut was being used for a book.

The main thing I'd want to try and clear up (if at all possible) is that if I have the Bible input filter enabled on a content type, and I enter a time value in what would be considered normal format, such as say 6:30am, then the Bible filter takes that, and makes it look like it's a Bible reference when in fact it is not. I realize that this may not be something possible to change. It'd have to be ignored on the fly or else just not use the Bible filter in the given content type.

I thought I'd mention that as one thought to at least look at. I don't expect it could be fixed easily if at all.

Thanks for all of your efforts on this module.

bryan.scott’s picture

Subscribe

dbt102’s picture

subscribe

drewkeller’s picture

subscribe

MikeLee_Birdy’s picture

Status: Active » Closed (fixed)

Dear all:
A flawed version is released. Please refer http://drupal.org/node/1033928 .
MikeLee

drewkeller’s picture

StatusFileSize
new77.74 KB
new60.64 KB

I had started porting it to D7 already. I tried Mike's version and it seemed to be having a bunch of errors that I had already fixed in mine. So at least it seems I have got farther than Mike so far. I think I have pretty much everything working except for some ajax things.

My local WAMP installation seems to be really slow with importing the context files and a few times only partially completed imports, so I have added some logic to check the status of the import. There is also an option for increasing the execution time on the import page (so you don't have to edit code to change it as described in the FAQ). The check of the import uses an extra variable at the top of the .bc or .sn file so it knows how many items are supposed to be imported. You can add the appropriate number as follows (I've only used these three files so far). You can still import a file without this number -- you'll just get a warning that says there was no indication of how many items were expected to import and will show the number of items that were imported.

For King James...

*Bible
#shortname, fullname, language, total verses
KJV|King James Version|eng|31102

For King James with Strong's numbers (not sure why there's an extra verse compared to the normal KJV)...

*Bible
#shortname, fullname, language, total verses
KJVSN|King James Strong Number Version|eng|31103

For the SN file...

*SN
English Strong Number,eng,14168

Edit: I should mention that I could not figure out how to get D7 to allow .bc and .sn file types. I tried adding the extensions to the allowed media types configuration, but it didn't seem to make any difference. I had to add .txt to the filename for them to be accepted to import.

dbt102’s picture

Issue tags: +Bible D7

I'm quite interested at this point (having used the D6 version very effectively for my church site) in D7 Bible module and excited about the recent progress in this regards. I've post a parallel comment at http://drupalbible.mikelee.idv.tw/?q=node/25797 . I did try this loading this newer bible.zip and had the same issues as commented @ Mike's site node 25797.

Are you two coordinating your efforts? Seems like this Issue "Version: (6.x-1.3)" and "Status: (closed(Fixed)) " should get updated or new issues started?

MikeLee_Birdy’s picture

Status: Closed (fixed) » Needs work

Dear Sir:
Thanks to drewkeller. Your great work help me in developing D7 Bible module. I've finish half modification, but I still wondering some small function. I'll release a version recently for you. Thanks for all comments.
MikeLee

MikeLee_Birdy’s picture

Version: 6.x-1.3-alpha1 » 7.x-0.1-alpha2
Status: Needs work » Needs review

Dear All:
The modified release is ready. Please refer http://drupal.org/node/1041588 .
Some known issues:
1. WebImport function is not ready. I have to test more.
2. Filter function is not tested.
3. Most sql commands are not shifted to D7 API format.
MikeLee

dbt102’s picture

Erased alpha1 and installed alpha2. Error message on load, but module appears to have installed OK. Enabled a few blocks. Can't see how to install the .bc files. Is this ready to install the bible data files yet?

MikeLee_Birdy’s picture

Dear Sir:
Install .bc file, there's 2 methods to go:
1. Download .bc file. You can get .bc files form http://drupalbible.mikelee.idv.tw/?q=node/2 . Then goto config page to import file.
2. Just use webimport functoin. This part will finish these days.
MikeLee
ps. You commented "Error message on load", can you give me the message so that I can trace?

dbt102’s picture

StatusFileSize
new75.17 KB

Dear Mike, Thanks for your comment

I've printed out a pdf ( see attached) of screen shot where I'm looking for config page so I can import the .bc file. Maybe I'm looking in the wrong place? For my D7 dev install I'm looking at http://d7.localhost:8082/admin/config . This using Safari on new MacBookPro.

On the attached file, I was expecting to see and area called "Church" with a "Bible" link to configure... What would the URI be to config direct? or maybe config is buried on config screen I'm looking at?

Best Regards,

Dave

MikeLee_Birdy’s picture

StatusFileSize
new127.79 KB

Dear Sir:
I guess it's because D7 changed the module setting path. Please see attach picture. That is:
1. Select module on the top of administrative menu.
2. Go to Bible Module, and you'll find Configuration link.
3. That's it...
MikeLee

ps. I can not check-in Drupal-CVS yesterday. Webimport is ready, and also in Configuration page.

dbt102’s picture

Dear Sirs...

Yes. As you said in item 2. I go to configuration link, and click, but the next screen does not have bible configuration options...

MikeLee_Birdy’s picture

Dear Sir:
Or....Just try admin/config/bible ?
MikeLee

dbt102’s picture

no. admin/config/bible does not get me to a bible config screen

I has only admin permissions selected so I changed them to all permissions selected.

Now when I select configure I get the following message...

PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'd7rc1.bible_sn_list' doesn't exist: SELECT * FROM {bible_sn_list}; Array ( ) in bible_admin_list() (line 671 of /Users/xxxxxxx/Sites/drupal-7.0-rc1/sites/all/modules/bible/bible.module).

MikeLee_Birdy’s picture

Dear Sir:
Sorry for late reply. The message should be install-time error. Please try to un-install and re-install again. Can you remove bible module from Administrator page?
MikeLee

dbt102’s picture

Hi,

I just tried uninstalling, and was able to do this successfully. However, when I reinstalled, it threw the same error message...

PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'd7rc1.bible_sn_list' doesn't exist: SELECT * FROM {bible_sn_list}; Array ( ) in bible_admin_list() (line 671 of /Users/xxxxxxxxx/Sites/drupal-7.0-rc1/sites/all/modules/bible/bible.module).

MikeLee_Birdy’s picture

StatusFileSize
new931 bytes

Dear Sir:
I've check file bible.install, there's schema for "bible_sn_list" table already. I put bible.install for your reference.
Can you check bible tables in mysql after uninstall bible module?
MikeLee

kjv1611’s picture

I've just tried the one from the module page on a new drupal 7 test site, and after install, got a couple errors... of course, forgot to take them down.

However, since that (and I don't recall whether it happened before or not), I can't get to the permissions page for the whole site. I also cannot find any config options by link or by address (admin/people/permissions) for the Bible module.

Here is the error I'm getting now on the permissions page:

Fatal error: Unsupported operand types in .../modules/user/user.admin.inc on line 697
dbt102’s picture

Version: 7.x-0.1-alpha2 » 7.x-0.1-alpha3

I tried installing alpha3 and got the following message, which is the same I got when trying to install the previous version

PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'd7rc1.bible_sn_list' doesn't exist: SELECT * FROM {bible_sn_list}; Array ( ) in bible_admin_list() (line 671 of /......./sites/all/modules/bible/bible.module

So I tried dropped the two bible tables in the database and tried a fresh reinstall, which then throws to following errors and won't complete the installation

Notice: Undefined index: log in update_authorize_install_batch_finished() (line 236 of /.../modules/update/update.authorize.inc).
Warning: Invalid argument supplied for foreach() in update_authorize_install_batch_finished() (line 236 of /.../modules/update/update.authorize.inc).
Notice: Undefined index: log in update_authorize_install_batch_finished() (line 277 of /.../modules/update/update.authorize.inc).
Notice: Undefined index: tasks in update_authorize_install_batch_finished() (line 278 of /.../modules/update/update.authorize.inc).
Installation failed! See the log below for more information.

MikeLee_Birdy’s picture

Dear Sir:
I cannot found other ideas to modify this. Please help me some work:

1. Can you review mysql tables after install bible.module? To see if there's not exists bible related tables. There should have: bible_list, bible_book_name, bible_context, bible_sn_list, bible_strongnumber, bible_userprofile

2. Can you describe your environment? Linux+apache+mysql ?

MikeLee

dbt102’s picture

I checked the bible related tables and they do exist, as you have listed in post#23

I am working from a DAMP stack (as per Acquia-drupal) installed as 'localhost' on a new MacBook Pro

dbt102’s picture

Version: 7.x-0.1-alpha3 » 7.x-0.1-alpha5

Loaded the alpha5 release using the d7update tool. It seemed to load up OK. Then I enabled all bible related blocks. Can't configure (download the .bc files). Here is the messages I receive when I try

Notice: Undefined variable: biblelist in _bible_get_bible_list() (line 2570 of /Users/x/Sites/drupal-7.0-rc1/sites/all/modules/bible/bible.module).
You haven't imported any bibles to your site.
Notice: Undefined variable: biblelist in _bible_get_bible_list() (line 2570 of /Users/x/Sites/drupal-7.0-rc1/sites/all/modules/bible/bible.module).
You haven't imported any bibles to your site.
Notice: Undefined variable: biblelist in _bible_get_bible_list() (line 2570 of /Users/x/Sites/drupal-7.0-rc1/sites/all/modules/bible/bible.module).
You haven't imported any bibles to your site.
Notice: Undefined variable: biblelist in _bible_get_bible_list() (line 2570 of /Users/x/Sites/drupal-7.0-rc1/sites/all/modules/bible/bible.module).
You haven't imported any bibles to your site.
Status message
Please import bibles from here.
Please import bibles from here.
Please import bibles from here.
Please import bibles from here.

MikeLee_Birdy’s picture

Dear Sir:
Thanks. I've fixed these bugs and make a new release bible 7.x-0.1-alpha6. Please ref http://drupal.org/node/1106250 .
MikeLee

dbt102’s picture

Version: 7.x-0.1-alpha5 » 7.x-0.1-alpha6

Yes, the alpha6 release helped me to get the Bible Module installed on D7. Thank you very much for this!

MikeLee_Birdy’s picture

Status: Needs review » Closed (fixed)