Jamroom Logo Jamroom 5 Core
is now Open Source!
Follow Jamroom on Twitter!

Video Chart Variables Index Jamroom Application Bridges

Overview

The Jamroom Media File Slurper (slurp.php) is a script that will allow your users to grab a media file from a remote server by entering the URL to the media file.  The File will be placed in the Artists "uploads" directory, and can then be imported into their Control Panel.

Configuration

Configuring the Jamroom Audio File Slurp script is easy - just make sure you have the “Allow Imports” setting set to “yes” in the Jamroom Quota(s) that you would like to enable this feature for. When the slurp.php script “grabs” a file from the web, it will drop it in the jamroom/uploads/(band_id) directory. This means that the file, after slurping, will then become available to be “imported” as a new media item

Creating the Jamroom Custom Button

To allow your users to access the slurp script, simply create a Jamroom Custom Button with the following:

  • Button Label - “slurp a file” (or whatever you would like it to say in the Artist Menu.
  • Button URL - enter: slurp.php?mode=menu
  • Button Quota - select the quota(s) you would like this Custom Button to be available for.
  • Hide Button - leave unchecked or the button will not be visible.

That’s it - save your new Custom Button and the “slurp” function will be available from the Artist Menu.

Usage

Now that you have the new “Slurp” button available from the Artist Menu, using it is easy. When you click on the new “slurp a file” button, you will be presented with a small form that allows you to define the:

  1. Audio File Name - this will be the local file name that will be written in the artists jamroom/uploads directory.
  2. Audio File URL - this is the URL to the audio file.
Note: The URL will be required to end in a format that is allowed for your system - i.e. “mp3”. The Slurp script will NOT work on a URL that points to a script, etc. For example, a url like “http://somesite.com/files/audio.mp3would work, whereas “http://somesite.com/audio/getfile.php” would not work.

After entering correct values for both forms, press submit. The slurp script will now attempt to “grab” the remote file and copy it in to the Artist’s uploads directory. Once successful the new audio file will be made available in the drop-down list of files that can be imported from the Create and Modify Song screens.

That’s all there is to it - happy slurping!


Video Chart Variables page 82 of 171 Jamroom Application Bridges
Solutions Products Support Community Company
Social Media Platform
Social Networking Software
Musician Website Manager
Community Builder
Jamroom 5
Jamroom 5 Modules
Jamroom Marketplace
Support Forum
Documentation
Support Center
Contact Support
Community Forum
Member Sites
Developers
About Us
Contact Us
Privacy Policy
©2003 - 2024 The Jamroom Network