Jump to content


- - - - -
Photo

Media


The Media Manager in IP.Content is meant to be a helpful tool that allows you to quickly upload common file types you might use while making a webpage. The Media Manager is a web interface to a folder on your webserver, so if you find yourself unable to upload a file through the ACP interface (for instance, if it is too big) you can still upload it via FTP to this folder and manage it via the ACP.

When IP.Content is initially installed, you will need to rename media_path.dist.php in your forum root directory (if the script is unable to do it automatically) to media_path.php. This file stores the path and url to your media directory. If you wish to continue using the default ccs_files directory, you should not need to make any edits to this configuration file. If you wish to use a different directory for your files, however, you will need to update this configuration file to reflect the new location.

Example: You could create an "assets" folder in the root of your site (be sure you make the folder writable if you intend to manage the files via the ACP Media Manager), and then edit the media_path.php like so:

<?php

$path	= "/path/to/assets";
$url	= 'http://domain.com/assets';

define( 'CCS_MEDIA', $path );
define( 'CCS_MEDIA_URL', rtrim( $url, " \n\r\t/" ) );


The file and path is configured via the flat file only for security purposes. You can be sure that your media file management is relegated to the directory specified, as the path to the media directory cannot be changed without FTP access.

From within the media manager you can
  • Upload files: Click the "Upload File" button at the top right, select a file, and click "Upload".
  • Delete files: Click the button next to a file and choose "Delete File", or check off the files you wish to remove, choose "Delete Files" from the dropdown at the bottom of the page, and click "Go".
  • Create folders: Click the "Add Folder" button, fill in the form on the resulting page, and click "Save".
  • Rename folders: Click the button to the right of a folder and click "Edit Folder Name".
  • Empty folders: Remove all files and folders within a folder by clicking the button to the right of a folder and clicking "Empty Folder".
  • Delete folders: Click the button to the right of a folder and click "Delete Folder"
  • Move files and folders: You can move files and folders to other folders by clicking the button to the right of a file or folder and clicking "Move File" (or "Move Folder"), or by checking all of the files and folders you wish to move, choosing "Move Files" from the dropdown at the bottom of the screen, and clicking "Go". You will be asked what folder you want to move the items to on the resulting page.
The media manager, as you can see, is meant to be a simple tool to help you manage files that you might wish to embed within your pages or templates. If you get any errors while adding, moving or removing files and folders, be sure that the media folder (as configured in media_path.php) is chmod 0777 and is within your base directory (if your host has enabled open_basedir - you can check with your host if you are not sure).

One last tip: to quickly get the full URL to a file that is accessible via the Media Manager, simply click on the file name(or right click on the file name, and choose to copy the link location).



0 Comments


Developer Docs · Error Codes