wizzfx
Forum Replies Created
-
Thanks for checking that out Jeremy. Appreciate it.
In answer to your question I’m not sure I managed to fix anything yet. I can get it to work via firefox, but only if I hit refresh after visiting the page. In safari it just doesn’t load.
Perhaps it’s a local issue with my IP, will do some further investigation and update if I find out more!
Forum: Plugins
In reply to: [File Away] Download Cart URL MaskingThanks Thom, I’ve download and have been playing with it – works perfectly!
Something else I’ve noticed while setting up things though, is that dynamic path’s work well for simple file lists, but you can’t seem to use dynamic path’s when using the playbackpath setting in the short code. The player doesn’t come up…
So for example, if the base directory is set as: “/stuff-fauserroles/downloads” and the playbackpath in my short code is set as: “/stuff-fauserroles/previews” it only outputs a normal download list without audio previews…
Not sure if it’s a bug, or perhaps it’s not possible to use dynamic pathways for audio previews?
Forum: Plugins
In reply to: [Plugin: Audio Player] Encode mp3 URLs?Right, got it working finally – it was a confusion in the script in the opening section.
$_SERVER['DOCUMENT_ROOT']."/audio/mp3/";
This was because I store my mp3’s below the webroot. If you store below the webroot, the opening line should read:
$path = "/path/below/your/web/root/where/your/mp3s/are/";
Least, it did the trick for me.
Thanks for your help!
Forum: Plugins
In reply to: [Plugin: Audio Player] Encode mp3 URLs?Dude, awesome! Thanks for sharing…
I still can’t get this working though… I wonder if it’s because I’m trying to store the mp3 files outside of the webroot… does that make a difference to your working version, if you move the files you’ve linking to, outside the webroot?
Forum: Plugins
In reply to: [Plugin: Audio Player] Encode mp3 URLs?Awesome, if you have any thoughts It’d really help me!
The PHP code reads:
<?php header('Content-type: audio/mp3'); $path='/path/to/my/files/belowthe/webroot/'; if (isset($_GET['file'])) { $filename=basename($_GET['file']); // only the "filename.ext" part if (!file_exists($path.$filename)) { // file not found die(); } } else { // no file given in URL die(); } readfile($path.$filename); // read and output file ?>
Thanks!
Forum: Plugins
In reply to: [Plugin: Audio Player] Encode mp3 URLs?That’s an interesting point about the absolute url versus one covered by a php file.
I’m trying to implement my version using a php file like this:
<script type="text/javascript"> AudioPlayer.embed("audioplayer_1", {soundFile: "/preview.php?file={title}.mp3"}); </script>
But it’s currently telling me the file is not found. I know for a fact that the file and the php file are both correct and in the right places, as using an object command finds the files. I’d just much rather use this plugin as it’s cleaner.
Thusly, is there a way to make it access mp3’s via the php file, as opposed to an absolute link?
Thanks!