pageMash > Page Management - Version 1.1.4

Version Description

Download this release

Release Info

Developer jmash
Plugin Icon wp plugin pageMash > Page Management
Version 1.1.4
Comparing to
See all releases

Code changes from version 1.1.3 to 1.1.4

Files changed (3) hide show
  1. README.txt +10 -2
  2. pagemash.js +1 -1
  3. pagemash.php +8 -4
README.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: JoelStarnes
3
  Tags: order pages, ajax, re-order, drag-and-drop, admin, manage, page, pages, sidebar, header, hide,
4
  Requires at least: 2.1
5
  Tested up to: 2.5
6
- Stable tag: 1.1.3
7
 
8
  Organise page order and manage page structure with this simple drag-and-drop Ajax interface.
9
 
@@ -36,8 +36,13 @@ The code here is very simple and flexible, for more information look up `wp_list
36
 
37
  If you have any questions or comments, please drop me an email: http://joelstarnes.co.uk/contact
38
 
 
 
 
 
 
39
  = Do I need any special code in my template =
40
- No. You no longer need to add the pageMash parameter as you did with the previous versions [<1.0.2]. You can leave the code in as it will do no harm, but it's a good idea to keep your template clean of unnecessary code.
41
 
42
  = Which browsers are supported =
43
  Any good up-to-date browser should work fine. I test in Firefox, IE7, Safari and Opera. (NB in IE7 you need to use the page name as a drag handle.)
@@ -51,6 +56,9 @@ Any good up-to-date browser should work fine. I test in Firefox, IE7, Safari and
51
 
52
  ==Change Log==
53
 
 
 
 
54
  * 1.1.3
55
  * Fixed hide bug that appeared on some systems
56
 
3
  Tags: order pages, ajax, re-order, drag-and-drop, admin, manage, page, pages, sidebar, header, hide,
4
  Requires at least: 2.1
5
  Tested up to: 2.5
6
+ Stable tag: 1.1.4
7
 
8
  Organise page order and manage page structure with this simple drag-and-drop Ajax interface.
9
 
36
 
37
  If you have any questions or comments, please drop me an email: http://joelstarnes.co.uk/contact
38
 
39
+ = None of it's working =
40
+ The most likely cause is that you have another plugin which has included an incompatible javascript library onto the pageMash admin page.
41
+
42
+ Try opening up your WP admin and browse to your pageMash page, then take a look at the page source. Check if the prototype or scriptaculous scripts are included in the header. If so then the next step is to track down the offending plugin, which you can do by disabling each of your plugins in turn and checking when the scripts are no longer included.
43
+
44
  = Do I need any special code in my template =
45
+ No. As of v1.0.2 you no longer need to add any code to your template. PageMash adds a filter to the wp_list_pages() function and will also work just fine with the pages widget.
46
 
47
  = Which browsers are supported =
48
  Any good up-to-date browser should work fine. I test in Firefox, IE7, Safari and Opera. (NB in IE7 you need to use the page name as a drag handle.)
56
 
57
  ==Change Log==
58
 
59
+ * 1.1.4
60
+ * Add config option to show debug info.
61
+
62
  * 1.1.3
63
  * Fixed hide bug that appeared on some systems
64
 
pagemash.js CHANGED
@@ -52,7 +52,7 @@ var SaveList = function() {
52
  new Ajax('../wp-content/plugins/pagemash/saveList.php', {
53
  method: 'post',
54
  postBody: 'm='+Json.toString(theDump),
55
- // update: "debug_list",
56
  onComplete: function() {
57
  $('update_status').setText('Database Updated');
58
  new Fx.Style($('update_status'), 'opacity', {duration: 500}).start(0,1).chain(function() {
52
  new Ajax('../wp-content/plugins/pagemash/saveList.php', {
53
  method: 'post',
54
  postBody: 'm='+Json.toString(theDump),
55
+ update: "debug_list",
56
  onComplete: function() {
57
  $('update_status').setText('Database Updated');
58
  new Fx.Style($('update_status'), 'opacity', {duration: 500}).start(0,1).chain(function() {
pagemash.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: pageMash
4
  Plugin URI: http://joelstarnes.co.uk/pagemash/
5
  Description: pageMash > pageManagement [WP_Admin > Manage > pageMash]
6
  Author: Joel Starnes
7
- Version: 1.1.3
8
  Author URI: http://joelstarnes.co.uk/
9
 
10
  CHANGELOG:
@@ -21,6 +21,7 @@ Release: Date: Description:
21
  1.1.1 29 Apr 2008 Fix a bug with console.log for safari, removed php code from js&css scripts to fix error
22
  1.1.2 24 May 2008 Added Expand all | Collapse all buttons
23
  1.1.3 04 Jun 2008 Fixed hide bug that appeared on some systems
 
24
 
25
  */
26
  #########CONFIG OPTIONS############################################
@@ -36,6 +37,9 @@ $renamePagesFeature = true; /*[deafult=true]*/
36
  $CollapsePagesOnLoad = false; /*[deafult=true]*/
37
  /* Collapse all parent pages on load */
38
 
 
 
 
39
  ###################################################################
40
  /*
41
  INSPIRATIONS/CREDITS:
@@ -106,13 +110,13 @@ function pageMash_getPages($post_parent){
106
  }
107
 
108
  function pageMash_main(){
109
- global $excludePagesFeature, $excludePagesList;
110
  if(!is_array(get_option('exclude_pages'))) $excludePagesList=array(); else $excludePagesList = get_option('exclude_pages'); //if it's empty set as an empty array
111
  ?>
112
- <div id="debug_list"></div>
113
  <div id="pageMash" class="wrap">
114
  <div id="pageMash_checkVersion" style="float:right; font-size:.7em; margin-top:5px;">
115
- version [1.1.3]
116
  </div>
117
  <h2 style="margin-bottom:0; clear:none;">pageMash - pageManagement</h2>
118
  <p style="margin-top:4px;">
4
  Plugin URI: http://joelstarnes.co.uk/pagemash/
5
  Description: pageMash > pageManagement [WP_Admin > Manage > pageMash]
6
  Author: Joel Starnes
7
+ Version: 1.1.4
8
  Author URI: http://joelstarnes.co.uk/
9
 
10
  CHANGELOG:
21
  1.1.1 29 Apr 2008 Fix a bug with console.log for safari, removed php code from js&css scripts to fix error
22
  1.1.2 24 May 2008 Added Expand all | Collapse all buttons
23
  1.1.3 04 Jun 2008 Fixed hide bug that appeared on some systems
24
+ 1.1.4 05 Jun 2008 Add config option to show debug info.
25
 
26
  */
27
  #########CONFIG OPTIONS############################################
37
  $CollapsePagesOnLoad = false; /*[deafult=true]*/
38
  /* Collapse all parent pages on load */
39
 
40
+ $ShowDegubInfo = false; /*[deafult=false]*/
41
+ /* Show server response debug info */
42
+
43
  ###################################################################
44
  /*
45
  INSPIRATIONS/CREDITS:
110
  }
111
 
112
  function pageMash_main(){
113
+ global $excludePagesFeature, $excludePagesList, $ShowDegubInfo;
114
  if(!is_array(get_option('exclude_pages'))) $excludePagesList=array(); else $excludePagesList = get_option('exclude_pages'); //if it's empty set as an empty array
115
  ?>
116
+ <div id="debug_list"<?php if(false==$ShowDegubInfo) echo' style="display:none;"'; ?>></div>
117
  <div id="pageMash" class="wrap">
118
  <div id="pageMash_checkVersion" style="float:right; font-size:.7em; margin-top:5px;">
119
+ version [1.1.4]
120
  </div>
121
  <h2 style="margin-bottom:0; clear:none;">pageMash - pageManagement</h2>
122
  <p style="margin-top:4px;">