Difference between revisions of "Zipping Content"

From TMM Wiki
Jump to navigationJump to search
 
Line 3: Line 3:
 
}}
 
}}
  
CARMA can create a [http://en.wikipedia.org/wiki/ZIP_(file_format) ZIP file]
+
[[CARMA]] contains a feature that allows you to create a [http://en.wikipedia.org/wiki/ZIP_(file_format) .ZIP file] of any gallery content or individual content on your site.
of any gallery or content on your site. The following three options
 
change what content gets put in the ZIP file:
 
  
* galid: the ID of the [[Gallery|gallery]] you wish to zip. (Required)
+
== Setting Up Zip ==
* num: the id number of the specific images or video clips. (Optional)
 
* type: the [[CARMA]] video format. (Required for video sets)
 
  
== Examples ==
+
In order to use this feature, you must have PHP's Zip function installed on your server.
* <a href="zip.php?galid=2&type=wmv_high"> -- All the wmv_high video clips in video set 2
+
 
* <a href="zip.php?galid=2&num=0&type=wmv_high"> -- The first clip of type wmv_high and in video set 2
+
After you have installed Zip on your server, you must set its path in the [[CARMA Configuration Admin|Configuration Admin]]. This option can be found under "Image/Video Manipulation" in the [[CARMA Configuration Admin|Configuration Admin]], and is called "Zip". The default path set in the configuration file is ''/usr/local/bin/zip''.
 +
 
 +
== Using Zip ==
 +
 
 +
The following three variables determine what content will get put in your ZIP file:
 +
 
 +
* '''galid''' - The ID number of the gallery you wish to make into a zip file. (Required)
 +
* '''num''' - The ID number of the specific images or video clips you wish to put in your zip file. (Optional)
 +
* '''type''' - The type of video format found in [[CARMA]] for videos you wish to zip. (Required for video sets)
 +
 
 +
=== Examples ===
 +
 
 +
The following examples demonstrate how to set links to your zip files using the above variables:
 +
 
 +
* <a href="zip.php?galid=2&type=wmv_high"> -- All of the available "wmv_high" format video clips in video set 2
 +
* <a href="zip.php?galid=2&num=0&type=wmv_high"> -- The first clip in video set 2 that uses the "wmv_high" video format type
 
* <a href="zip.php?galid=3&num=1,2,3"> -- Images one, two, and three from gallery three
 
* <a href="zip.php?galid=3&num=1,2,3"> -- Images one, two, and three from gallery three
 
== Note ==
 
You must have the program, zip, installed on your server and you must
 
set the path to zip in the [[Configuration Admin]]. The default path set in
 
the configuration is ''/usr/local/bin/zip''.
 

Latest revision as of 11:22, 2 October 2010

CARMA
Extras
The Support Admin
Admin Areas
CARMA Home
Pseudo Streaming
Flash Player
Using mp4 Videos
Zipping Content
Third Party Content
X-Sendfile
Xmoov-php
TMMid

CARMA contains a feature that allows you to create a .ZIP file of any gallery content or individual content on your site.

Setting Up Zip

In order to use this feature, you must have PHP's Zip function installed on your server.

After you have installed Zip on your server, you must set its path in the Configuration Admin. This option can be found under "Image/Video Manipulation" in the Configuration Admin, and is called "Zip". The default path set in the configuration file is /usr/local/bin/zip.

Using Zip

The following three variables determine what content will get put in your ZIP file:

  • galid - The ID number of the gallery you wish to make into a zip file. (Required)
  • num - The ID number of the specific images or video clips you wish to put in your zip file. (Optional)
  • type - The type of video format found in CARMA for videos you wish to zip. (Required for video sets)

Examples

The following examples demonstrate how to set links to your zip files using the above variables:

  • <a href="zip.php?galid=2&type=wmv_high"> -- All of the available "wmv_high" format video clips in video set 2
  • <a href="zip.php?galid=2&num=0&type=wmv_high"> -- The first clip in video set 2 that uses the "wmv_high" video format type
  • <a href="zip.php?galid=3&num=1,2,3"> -- Images one, two, and three from gallery three