Simple Download Monitor - Version 2.1

Version Description

  • Minor bug fixes with the stylesheet file URL.
Download this release

Release Info

Developer mra13
Plugin Icon 128x128 Simple Download Monitor
Version 2.1
Comparing to
See all releases

Code changes from version 2.0 to 2.1

Files changed (3) hide show
  1. langs/SDM.po +1 -1
  2. main.php +10 -6
  3. readme.txt +8 -1
langs/SDM.po CHANGED
@@ -1,6 +1,6 @@
1
  msgid ""
2
  msgstr ""
3
- "Project-Id-Version: simple_download_monitor\n"
4
  "POT-Creation-Date: 2013-11-01 01:22-0500\n"
5
  "PO-Revision-Date: 2013-11-01 01:24-0500\n"
6
  "Last-Translator: \n"
1
  msgid ""
2
  msgstr ""
3
+ "Project-Id-Version: simple-download-monitor\n"
4
  "POT-Creation-Date: 2013-11-01 01:22-0500\n"
5
  "PO-Revision-Date: 2013-11-01 01:24-0500\n"
6
  "Last-Translator: \n"
main.php CHANGED
@@ -3,14 +3,18 @@
3
  * Plugin Name: Simple Download Monitor
4
  * Plugin URI: http://www.tipsandtricks-hq.com/development-center
5
  * Description: Easily manage downloadable files and monitor downloads of your digital files from your WordPress site.
6
- * Version: 2.0
7
  * Author: Tips and Tricks HQ, Ruhul Amin, Josh
8
  * Author URI: http://www.tipsandtricks-hq.com/development-center
9
  * License: GPL2
10
  */
11
 
 
 
 
 
12
  global $sdm_db_version;
13
- $sdm_db_version = '1.0';
14
 
15
  register_activation_hook(__FILE__, 'sdm_install_db_table' );
16
  function sdm_install_db_table() {
@@ -98,7 +102,7 @@ class simpleDownloadManager {
98
  // These scripts are needed for the media upload thickbox
99
  wp_enqueue_script('media-upload');
100
  wp_enqueue_script('thickbox');
101
- wp_register_script('sdm-upload', WP_PLUGIN_URL.'/simple_download_monitor/js/sdm_admin_scripts.js', array('jquery','media-upload','thickbox'));
102
  wp_enqueue_script('sdm-upload');
103
 
104
  // Pass postID for thumbnail deletion
@@ -121,7 +125,7 @@ class simpleDownloadManager {
121
  public function sdm_admin_styles() {
122
 
123
  wp_enqueue_style('thickbox'); // Needed for media upload thickbox
124
- wp_enqueue_style('sdm_admin_styles', WP_PLUGIN_URL.'/simple_download_monitor/css/sdm_admin_styles.css'); // Needed for media upload thickbox
125
  }
126
 
127
  public function sdm_register_post_type() {
@@ -812,7 +816,7 @@ function sdm_create_shortcode( $atts ) {
812
  */
813
  add_action( 'wp_enqueue_scripts', 'sdm_wp_scripts' );
814
  function sdm_wp_scripts() {
815
- wp_enqueue_style( 'sdm-styles', WP_PLUGIN_URL. '/simple_download_monitor/css/sdm_wp_styles.css' );
816
  }
817
 
818
  function handle_sdm_download_via_direct_post()
@@ -970,7 +974,7 @@ if($tiny_button_option != true) {
970
  }
971
  function sdm_downloads_add_button( $plugin_array ) {
972
 
973
- $plugin_array['sdm_downloads'] = WP_PLUGIN_URL. '/simple_download_monitor/tinymce/sdm_editor_plugin.js';
974
  return $plugin_array;
975
  }
976
  function sdm_downloads_register_button( $buttons ) {
3
  * Plugin Name: Simple Download Monitor
4
  * Plugin URI: http://www.tipsandtricks-hq.com/development-center
5
  * Description: Easily manage downloadable files and monitor downloads of your digital files from your WordPress site.
6
+ * Version: 2.1
7
  * Author: Tips and Tricks HQ, Ruhul Amin, Josh
8
  * Author URI: http://www.tipsandtricks-hq.com/development-center
9
  * License: GPL2
10
  */
11
 
12
+ define('WP_SIMPLE_DL_MONITOR_DIR_NAME', dirname(plugin_basename(__FILE__)));
13
+ define('WP_SIMPLE_DL_MONITOR_URL', plugins_url('',__FILE__));
14
+ define('WP_SIMPLE_DL_MONITOR_PATH',plugin_dir_path( __FILE__ ));
15
+
16
  global $sdm_db_version;
17
+ $sdm_db_version = '2.1';
18
 
19
  register_activation_hook(__FILE__, 'sdm_install_db_table' );
20
  function sdm_install_db_table() {
102
  // These scripts are needed for the media upload thickbox
103
  wp_enqueue_script('media-upload');
104
  wp_enqueue_script('thickbox');
105
+ wp_register_script('sdm-upload', WP_SIMPLE_DL_MONITOR_URL.'/js/sdm_admin_scripts.js', array('jquery','media-upload','thickbox'));
106
  wp_enqueue_script('sdm-upload');
107
 
108
  // Pass postID for thumbnail deletion
125
  public function sdm_admin_styles() {
126
 
127
  wp_enqueue_style('thickbox'); // Needed for media upload thickbox
128
+ wp_enqueue_style('sdm_admin_styles', WP_SIMPLE_DL_MONITOR_URL.'/css/sdm_admin_styles.css'); // Needed for media upload thickbox
129
  }
130
 
131
  public function sdm_register_post_type() {
816
  */
817
  add_action( 'wp_enqueue_scripts', 'sdm_wp_scripts' );
818
  function sdm_wp_scripts() {
819
+ wp_enqueue_style( 'sdm-styles', WP_SIMPLE_DL_MONITOR_URL. '/css/sdm_wp_styles.css' );
820
  }
821
 
822
  function handle_sdm_download_via_direct_post()
974
  }
975
  function sdm_downloads_add_button( $plugin_array ) {
976
 
977
+ $plugin_array['sdm_downloads'] = WP_SIMPLE_DL_MONITOR_URL. '/tinymce/sdm_editor_plugin.js';
978
  return $plugin_array;
979
  }
980
  function sdm_downloads_register_button( $buttons ) {
readme.txt CHANGED
@@ -67,7 +67,7 @@ You can check the download stats from the "Downloads->Logs" menu. It shows the n
67
 
68
  1. Go to the Add New plugins screen in your WordPress admin area
69
  1. Click the upload tab
70
- 1. Browse for the plugin file (simple_download_monitor.zip)
71
  1. Click Install Now and then activate the plugin
72
 
73
  == Frequently Asked Questions ==
@@ -82,11 +82,18 @@ For screenshots please visit the plugin page
82
 
83
  == Changelog ==
84
 
 
 
 
85
  = 2.0 =
86
  * Complete new architecture for the download monitor plugin
87
  * You can download the old version with old architecture here:
88
  http://wordpress.org/plugins/simple-download-monitor/developers/
89
 
 
 
 
 
90
  == Upgrade Notice ==
91
 
92
  Download monitor 2.0 uses a completely new architecture (it is much simpler and user friendly) for configuring and monitoring downloads. Read the usage section to understand how it works.
67
 
68
  1. Go to the Add New plugins screen in your WordPress admin area
69
  1. Click the upload tab
70
+ 1. Browse for the plugin file (simple-download-monitor.zip)
71
  1. Click Install Now and then activate the plugin
72
 
73
  == Frequently Asked Questions ==
82
 
83
  == Changelog ==
84
 
85
+ = 2.1 =
86
+ * Minor bug fixes with the stylesheet file URL.
87
+
88
  = 2.0 =
89
  * Complete new architecture for the download monitor plugin
90
  * You can download the old version with old architecture here:
91
  http://wordpress.org/plugins/simple-download-monitor/developers/
92
 
93
+ = 0.24 and before =
94
+ * The old architecture changelog can be found inside the zip file here:
95
+ http://downloads.wordpress.org/plugin/simple-download-monitor.0.24.zip
96
+
97
  == Upgrade Notice ==
98
 
99
  Download monitor 2.0 uses a completely new architecture (it is much simpler and user friendly) for configuring and monitoring downloads. Read the usage section to understand how it works.