Plugin Directory

Changeset 152535


Ignore:
Timestamp:
09/06/2009 05:22:33 PM (17 years ago)
Author:
misanthrop
Message:

Version 1.0.7

Location:
wp-download-codes/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • wp-download-codes/trunk/README.txt

    r151836 r152535  
    11=== Plugin Name ===
     2
    23Contributors: misanthrop
     4
    35Donate link: http://wordpress.org/extend/plugins/wp-download-codes/
     6
    47Tags: download, download code, code generator
     8
    59Requires at least: 2.5
     10
    611Tested up to: 2.8.4
    7 Stable tag: 1.0.6
     12
     13Stable tag: 1.0.7
     14
     15
    816
    917The plugin enables to generation and management of download codes for .zip files. It was written to enable the free download of records and CDs with dedicated codes printed on the cover of the releases or on separate download cards.
    1018
     19
     20
    1121== Description ==
     22
     23
    1224
    1325The plugin enables to generation and management of download codes for .zip files. It was written to enable the free download of records and CDs with dedicated codes printed on the cover of the releases or on separate download cards.
    1426
     27
     28
    1529With the plugin you can:
    1630
     31
     32
    1733*   Create and manage **releases**, which are items bundled as zips (e.g. digital versions of vinyl albums) to be downloaded with download codes.
     34
    1835*   Specify the allowed number of downloads for each release.
     36
    1937*   Create alphanumeric **download codes** for each release using a prefix for each code. The number of characters can be specified for each code.
     38
    2039*   Review downloads codes and set them to "final" when you want to use and distribute them.
     40
    2141*   Export final download codes in a plain list.
     42
    2243*   Analyze the use of the download codes.
     44
     45
    2346
    2447== Installation ==
    2548
     49
     50
    26511. Upload the `wp-download-codes` folder to the `/wp-content/plugins/` directory.
     52
    27531. Activate the plugin through the 'Plugins' menu in WordPress.
     54
    28551. Create a folder within the `wp-content` directory and upload one or several zip files via FTP.
     56
    29571. Go to the 'Settings' page and enter the zip folder specified above.
     58
    30591. Create a new release and assign a valid zip file to it.
     60
    31611. Create download codes for the release via 'Manage codes' and make them final.
     62
    32631. Put `[download-code id="xyz"]` in a page or post, where "xyz" is the ID of the respective release.
     64
     65
    3366
    3467== Frequently Asked Questions ==
    3568
     69
     70
    3671= Can I have download forms for several releases? =
     72
     73
    3774
    3875No, currently each download code form must have assigned the ID of a specific release.
    3976
     77
     78
    4079= Why do I have to upload the zip files via FTP?  =
    4180
     81
     82
    4283Most providers do not allow an upload quota which is sufficient to upload larger zip files. Therefore, an option using an upload form has not been considered yet.
     84
     85
    4386
    4487== Screenshots ==
    4588
    4689
     90
     91
     92
    4793== Changelog ==
    4894
     95
     96= 1.0.7 =
     97
     98* Fixed different behavior of upload path determination (absolute, relative).
     99
     100
    49101= 1.0.6 =
     102
    50103* Fixed side effects to media library.
    51104
     105
     106
    52107= 1.0.5 =
     108
    53109* Added header for information about the length of the downloaded file.
     110
    54111* Fixed deletion of session.
    55112
     113
     114
    56115= 1.0.4 =
     116
    57117* Fixed "Make final" functionality for WP 2.7.
     118
    58119* Introduced differentiation between absolute and relative upload paths.
    59120
     121
     122
    60123= 1.0.3 =
     124
    61125* Added "mp3" to the allowed file types.
     126
    62127* Reworked constraints for fields on 'Manage Releases'.
    63128
     129
     130
    64131= 1.0.2 =
     132
    65133* Bug fix: (Existing) zip folders below the upload directory can now be selected via drop-down.
     134
    66135* Bug fix: On the 'Manage Codes' page, the non-existence of releases was handled (link to 'Add new release' sub page was displayed').
    67136
     137
     138
    68139= 1.0.1 =
     140
    69141* Improved editing and addition of releases.
     142
    70143* Corrected setting of options during initialization.
    71144
     145
     146
    72147= 1.0.0 =
     148
    73149* Initial version.
    74150
     151
     152
    75153== Arbitrary section ==
     154
  • wp-download-codes/trunk/dc_functions.php

    r148897 r152535  
    6060        }
    6161        else {
    62             return $wp_upload_dir['basedir'] . $upload_path . '/' . get_option( 'dc_zip_location' );
     62            return $wp_upload_dir['basedir'] . '/' . get_option( 'dc_zip_location' );
    6363        }
    6464    }
  • wp-download-codes/trunk/wp-download-codes.php

    r151836 r152535  
    11<?php
     2
    23/*
     4
    35Plugin Name: WP Download Codes
     6
    47Plugin URI: http://wordpress.org/extend/plugins/wp-download-codes/
     8
     9
    510
    611Description: The plugin enables to generation and management of download codes for .zip files. It was written to enable the free download of records and CDs with dedicated codes printed on the cover of the releases or on separate download cards.
    712
    8 Version: 1.0.6
     13
     14
     15Version: 1.0.7
     16
    917Author: misanthrop
     18
    1019Author URI: http://www.misantropolis.de
     20
     21
    1122
    1223    Copyright 2009 Armin Fischer  (email : misantropolis@gmail.com)
    1324
     25
     26
    1427    This program is free software; you can redistribute it and/or modify
     28
    1529    it under the terms of the GNU General Public License as published by
     30
    1631    the Free Software Foundation; either version 2 of the License, or
     32
    1733    (at your option) any later version.
    1834
     35
     36
    1937    This program is distributed in the hope that it will be useful,
     38
    2039    but WITHOUT ANY WARRANTY; without even the implied warranty of
     40
    2141    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     42
    2243    GNU General Public License for more details.
    2344
     45
     46
    2447    You should have received a copy of the GNU General Public License
     48
    2549    along with this program; if not, write to the Free Software
     50
    2651    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    2752
     53
     54
    2855/**
     56
    2957 * Inclusion of administration, template and general functions.
     58
    3059 */
    3160
     61
     62
    3263   include( 'dc_administration.php' );
     64
    3365   include( 'dc_template.php' );
     66
    3467   include( 'dc_functions.php' );
    3568
     69
     70
    3671/**
     72
    3773 * Addition of dc functions to hooks.
     74
    3875 */
    3976
     77
     78
    4079if (is_admin()) {
     80
    4181   // Create administration menu
     82
    4283   add_action('admin_menu','dc_admin_menu');
    43 }
    44 else {
    45    // Sending headers for download of files
    46    add_action( 'send_headers', 'dc_headers');
     84
    4785}
    4886
     87else {
     88
     89   // Sending headers for download of files
     90
     91   add_action( 'send_headers', 'dc_headers');
     92
     93}
     94
     95
     96
    4997// Shortcode for [download-code id="..."]
     98
    5099add_shortcode( 'download-code', 'dc_download_form' );
    51100
     101
     102
    52103// Activation of plugin
     104
    53105register_activation_hook( __FILE__, 'dc_init' );
    54106
     107
     108
    55109// Uninstallation of plugin
     110
    56111if ( function_exists('register_uninstall_hook') )
     112
    57113    register_uninstall_hook(__FILE__, 'dc_uninstall');
     114
    58115 ?>
Note: See TracChangeset for help on using the changeset viewer.