• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
Audio Plus

Audio Plus 1.8

No permission to download

AndyB

Well-known member
#1
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...
 
#4
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.
 

adwolf1

Active member
#9
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?
 

Alfa1

Well-known member
#16
My feature request for this addon is to bring support for this audio player to the Resource Manager. The media gallery would also work.
 

Claudio

Well-known member
#19
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:

Claudio

Well-known member
#20
@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.