Featured Posts

What Those on the Right Seem to be Ignoring Later today, more details about the torture the US did on detainees will be released. Those on the right are upset. They think that if the world knows what we did in detail it will threaten our national...

Readmore

Using GeoBeagle I made my first Wiki entry/edit today over at Cacheopedia. I made an entry on how to use GeoBeagle. Hopefully others will come along and help fill in what I left out.

Readmore

Obama Attacks Bush While Announcing a Bush Like Program,... In a case of the pot calling the kettle black, Obama, standing in front of the Constitution of the United States, rightfully attacked Bush for his policies regrading detainees. Bush and Cheney and all...

Readmore

  • Prev
  • Next

Editing Scripturizer

Posted on : 17-01-2005 | By : Brian A. Thomas | In : PHP, Programming

2

I had to edit the PHP code in Scripturizer to make it validate as XHTML.
The problem is that some of the sites use an ampersand (&) as part of their URL. XHTML doesn’t allow that in the code, and the & needs changed to &. A subtle difference to be sure, and what comes up on the address bar is still the same. However, it is a simple fix. So far all I fixed are ones going through Biblegateway, which is the one I would normally use.
On version 1.5, my copy has line 157 reading as follows:
$link = "http://biblegateway.com/bible?version=$translation&passage=";
I changed that to:
$link = "http://biblegateway.com/bible?version=$translation&
and viola, it now validates as XHTML.

Share and Enjoy:
  • del.icio.us
  • digg
  • YahooMyWeb
  • Facebook
  • MySpace
  • TwitThis
  • E-mail this story to a friend!
  • Google
  • Live
  • Technorati
  • Yahoo! Buzz

Comments (2)

Good observation. I’ll fix that right away.

Glad to be of help.

Write a comment

Advertise Here