Difference between revisions of "Zipping Content"
From TMM Wiki
Jump to navigationJump to searchTMMStephenY (talk | contribs) |
|||
Line 3: | Line 3: | ||
}} | }} | ||
− | CARMA | + | [[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. | ||
− | |||
− | + | == Setting Up Zip == | |
− | |||
− | |||
− | == 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 | + | 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 | ||
− | |||
− | |||
− | |||
− | |||
− |
Latest revision as of 11:22, 2 October 2010
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