Audio Plus

Audio Plus 1.8

No permission to download

AndyB

Well-known member
AndyB submitted a new resource:

Audio Plus - Audio player which plays attached .mp3 audio files.

Description:

Audio player which plays attached .mp3 audio files.

(Example of Audio Plus player in a post)

View attachment 97948

Features:
  • Automatically inserts an audio player for each .mp3 attachment.
How to use:
  1. Create a post.
  2. Upload a .mp3 audio file using the "Upload a File" button.
  3. Save Changes.
  4. Audio player is automatically inserted into message.
  5. Click play button to listen to audio.
Installation:...

Read more about this resource...
 
Will certainly have to check this out. Looks cool :)

Will this add the audio player to any previous posts with .mp3 attachments?
 
Hi Andy!

I tried this Andy and it installed; but there is no player to press play on.

Could you clarify what you mean with "first two variables" please?

Also where exactly do you place this misc folder:
a) before "forum" or
b) parallel to "forum" or
c) into "forum" in a path=root/hpttdocs/forum/andy

<?php

// define tmpUrl
$tmpUrl = 'http://www.example.com/tmp/';

// define tmpPath
$tmpPath = '/home/path/public_html/tmp/';

//########################################
// Chrome and Firefox can run attachment
// URL's directly. If another browser we
// need to download the attachment
// and save it to the /tmp/ folder where
// we use the <audio> tag to play it.
//########################################

// get url
$url = $_GET['url'];



Thanks, Tony B.

Set up:



    • Create a /misc/ folder in your web root and set permissions to 0777.
    • Upload the following file from the Andy/AudioPlus/ folder to your /misc/ folder:

      audio_plus.php
    • Edit the /misc/audio_plus.php file and update the first two variables.
    • In the Admin Control Panel, update "Maximum Attachment File Size (KB)" to 3072, this will allow a maximum of 3MB audio files to be uploaded.
    • In the Admin Control Panel, update "Allowed Attachment File Extensions" to include mp3 files.
 
Andy -- having a little problem getting this to work. Perhaps this is because we are an https only site?

When the post goes up, i get:

Warning: file_get_contents(https://www.odwire.org/attachments/attachment-name-mp3.6575/): failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden in /srv/www/host/public_html/misc/audio_plus.php on line 47

The perms look right:
drwxrwsrwx 2 www-data www-data 4096 Apr 9 22:30 tmp
drwxrwsrwx 2 www-data www-data 4096 Apr 9 22:12 misc

and the paths set in the misc file are right:
// define tmpUrl
$tmpUrl = 'https://www.mysite.com/tmp/';

// define tmpPath
$tmpPath = '/srv/www/host/public_html/tmp/';

All I can think of is that because it is https, it is bombing?
 
I would love this to have usergroup permissions to allow some usergroups to use it and not others.
 
My feature request for this addon is to bring support for this audio player to the Resource Manager. The media gallery would also work.
 
Andy -- having a little problem getting this to work. Perhaps this is because we are an https only site?

When the post goes up, i get:

Warning: file_get_contents(https://www.odwire.org/attachments/attachment-name-mp3.6575/): failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden in /srv/www/host/public_html/misc/audio_plus.php on line 47

The perms look right:
drwxrwsrwx 2 www-data www-data 4096 Apr 9 22:30 tmp
drwxrwsrwx 2 www-data www-data 4096 Apr 9 22:12 misc

and the paths set in the misc file are right:
// define tmpUrl
$tmpUrl = 'https://www.mysite.com/tmp/';

// define tmpPath
$tmpPath = '/srv/www/host/public_html/tmp/';

All I can think of is that because it is https, it is bombing?
Same error. Did you fix it?

Edit: file_get_contents must be enabled on hosting
 
Last edited:
@AndyB do you know if there is any way to start loading the .mp3 file once the play button is pressed? If you attach three mp3 files they will be loaded at the same time and there is no way to stop them.
 
Back
Top Bottom