Welcome, Guest
Username Password: Remember me

Scripture in details page
(1 viewing) (1) Guest

TOPIC: Scripture in details page

Scripture in details page 03 Apr 2008 15:22 #50

  • dhumphris
Hi Tom,

Thanks for earlier replies. Here's a small hack I just added to your views/studydetails/tmpl/default.php to add scripture into the bottom of the details page. I've added it just below the \"studytext\" output:

Re:Scripture in details page 03 Apr 2008 15:48 #51

  • Tom
  • OFFLINE
  • Administrator
  • Posts: 860
Your code or file didn't come through. Can you paste the text of just above and below your hack?

So what you are wanting is to show the $scripture variable at the bottom of the page, almost like a footer?

Tom
"You shall know the truth and the truth shall set you free." JC

Re:Scripture in details page 03 Apr 2008 16:17 #52

  • dhumphris
Okay, I've attached the file this time and you'll see the additional code between lines 665-690.

Hope you can see it this time. I'm actually calling a webservice and pulling in the actual text for the scripture reference.

Attachment default.php not found

Re:Scripture in details page 03 Apr 2008 16:51 #53

  • Tom
  • OFFLINE
  • Administrator
  • Posts: 860
That is SO COOL! I added it to the next release coming out probably within a few days.

I noticed that it only offers ESV - which is fine because that's what we use, but I'm wondering if there are similar services for other versions and we could offer that as an option.

I also added a parameter in the config.xml show_passage_view which lets the admin have the option to show or not show the passage.

I had someone request just such a thing and this works so beautifully - thanks so much!

Tom
"You shall know the truth and the truth shall set you free." JC

Re:Scripture in details page 03 Apr 2008 17:12 #54

  • dhumphris
Hi Tom,
You're very welcome. The least I could do after all your hard work!

I've changed the h3 heading, I think it looks better if you do this:

echo \"\".$scripture.\" (ESV)\";


ESV is the only translation that I can find from a reliable source so far. Let me know if you find a wider variety. Biblegateway don't offer this kind of thing.

Cheers, Douglas

Re:Scripture in details page 03 Apr 2008 18:39 #55

  • Tom
  • OFFLINE
  • Administrator
  • Posts: 860
Cool - made the change.

Tom
"You shall know the truth and the truth shall set you free." JC
Moderators: Darren Vandermyde, Kyle
Time to create page: 1.03 seconds