Welcome, Guest
Username Password: Remember me

Writing the podcast XML
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Writing the podcast XML

Writing the podcast XML 03 Jun 2009 07:37 #919

A couple months ago, y'all fixed a bug in the podcast code, where it was choking on ampersands in the description. (It wasn't encoding them to "&amp ;", so we ended up with invalid XML.) You fixed it in the Podcast Publish plugin, version 1.3.

But the "Write XML" button in the main Bible Study interface is still writing it the old way. That means I can't update the podcast manually with the button. I figured out a hacky way to do it--I go into the plugin, and I turn on the Testing mode, then turn it off again. (That forces the plugin to write the XML.) But now I'm starting to train other people to add sermons to our archive, and I want to be able to tell them to go hit the Write XML button.

Would it be possible for you to update the main Bible Study podcast-writing, before the next major update? Or at least send me the necessary file directly?
Last Edit: 03 Jun 2009 07:38 by Tim Margheim.

Re:Writing the podcast XML 03 Jun 2009 11:15 #920

  • Tom
  • OFFLINE
  • Administrator
  • Posts: 860
Here is the controller file that operates the XML Write button. I don't think it will cause problems with version 6.0.11a but save the old one just in case. I believe Darren fixed the problem in this controller. Rename it to .php before putting it in: /administrator/components/com_biblestudy/controllers/

Tom

File Attachment:

File Name: podcastedit.txt
File Size: 10764
"You shall know the truth and the truth shall set you free." JC
Last Edit: 03 Jun 2009 11:17 by Tom.

Re:Writing the podcast XML 04 Jun 2009 13:45 #921

Thanks!

Do you mean, put it there using a direct FTP into the server? Or is there a way to do that through the Joomla Administrator control panel?

Re:Writing the podcast XML 05 Jun 2009 07:30 #924

  • Tom
  • OFFLINE
  • Administrator
  • Posts: 860
Yes, via ftp.
"You shall know the truth and the truth shall set you free." JC

Re:Writing the podcast XML 07 Jun 2009 15:42 #927

OK, I renamed the existing podcastedit.php to podcastedit.php.bak, and I uploaded the one you gave me.

But it didn't fix the problem. And something wonky is going on.

When I write the XML and check the results, the problem isn't fixed. The ampersands are still present, so the replacement isn't happening. But I looked at the PHP you gave me, and I definitely see the line for the replacement:
$title = str_replace('&',"and",$title);

I also tried adding the improvements I mentioned here, and those aren't showing up either.

Not only that--in this PHP file, the link and comment fields are being filled with the Study URL. But the XML file ends up with the mp3 link in those fields!

I'm attaching the PHP with my modifications.

Attachment podcastedit-72cbd1b022109dc3f458276a6d2d4760.txt not found

Attachments:
  • Page:
  • 1
Moderators: Darren Vandermyde, Kyle
Time to create page: 0.67 seconds