Welcome, Guest
Username Password: Remember me

Use AVR for all media
(1 viewing) (1) Guest
  • Page:
  • 1
  • 2

TOPIC: Use AVR for all media

Use AVR for all media 03 Nov 2009 02:42 #1280

Hi!
When I check the box enabling All Videos Reloaded for all media files, it works well on audio and video files, but it does not work on pdf files! Indeed the component seems to consider pdf as audio or video and makes a call for AVR on them, which gives an ugly result on the web page:
{pdfremote popup="true" divid="23"}mysite.com/path/to/amazing_grace.pdf{/pdfremote}
Please help!

Re: Use AVR for all media 03 Nov 2009 07:29 #1285

  • Eugen
  • OFFLINE
  • Moderator
  • Posts: 147
Hmm, I know there has been some issues with PDFs ...try search the forms for the past discussion about it. If I'm not mistaken, however, pdf generation works ok when the pdf is actually the "study text".

Re: Use AVR for all media 03 Nov 2009 08:05 #1287

  • Tom
  • OFFLINE
  • Administrator
  • Posts: 860
We didn't anticipate the use of pdf files as media, then using AVR for all media. It's possible we can put in a filter so that if a media file has the extension .pdf then AVR doesn't process it and the link is simply a direct link.

We'll take a look at that.

Best practice would be to allow Joomla to create the pdf via the button in the studydetails view from the studytext.

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

Re: Use AVR for all media 03 Nov 2009 09:04 #1288

  • Eugen
  • OFFLINE
  • Moderator
  • Posts: 147
You can also try using docMan, and link it to a study using the docMan integrated feature. You must have the docMan component for this to work, however.

extensions.joomla.org/extensions/82/details

Re: Use AVR for all media 03 Nov 2009 10:36 #1290

  • Tom
  • OFFLINE
  • Administrator
  • Posts: 860
I placed some code into the helper files that generate the media table. If Use AVR is checked (for all studies or a single media file) and the file extension is pdf, doc, or txt - the component will return a direct link to the file. AVR is not designed for text files, only digital media.

Put these in /components/com_biblestudy/helpers

Rename to .php first.

This will become a part of 6.1 RC5 eventually

Tom

File Attachment:

File Name: mediatable-20091103.txt
File Size: 13314
"You shall know the truth and the truth shall set you free." JC

Re: Use AVR for all media 03 Nov 2009 10:37 #1291

  • Tom
  • OFFLINE
  • Administrator
  • Posts: 860
Second file:

File Attachment:

File Name: filepath.txt
File Size: 1264
"You shall know the truth and the truth shall set you free." JC
  • Page:
  • 1
  • 2
Time to create page: 0.60 seconds