Permalink
Browse files

Merge branch 'master' of git://github.com/hunk/Magic-Fields

  • Loading branch information...
2 parents 976ea9e + b8fa58f commit 08acfa6ee0c3fa44aa88a17aa332ec9120894b09 @traversal committed Nov 23, 2010
Showing with 89 additions and 12 deletions.
  1. +3 −4 MF_Constant.php
  2. +1 −1 Main.php
  3. +4 −2 RCCWP_Application.php
  4. +1 −1 RCCWP_CustomGroup.php
  5. +37 −1 README.markdown
  6. +43 −3 readme.txt
View
@@ -25,16 +25,16 @@
define("MF_URI_RELATIVE", 'wp-content'.$mfpath[1]);
define("PHPTHUMB",MF_URI."thirdparty/phpthumb/phpThumb.php");
-if(!is_wp30()) {
+//if(!is_wp30()) {
//prefix all tables
if(isset($current_blog)){
$mf_prefix=$wpdb->base_prefix;
}else{
$mf_prefix=$wpdb->prefix;
}
-}else{
+/*}else{
$mf_prefix = $wpdb->get_blog_prefix();
-}
+}*/
// -- Tables names
// Panels - Groups - Fields
@@ -54,7 +54,6 @@
// Extra information about post meta values.
define('MF_TABLE_POST_META', $wpdb->prefix . 'mf_post_meta');
-
// Post Type table
define('MF_TABLE_POSTTYPES_TAXONOMIES', $wpdb->prefix. 'mf_posttypes_taxonomies');
View
@@ -4,7 +4,7 @@
Plugin URI: http://magicfields.org
Description: Create custom write panels and easily retrieve their values in your templates.
Author: Hunk and Gnuget
-Version: 1.4.5
+Version: 1.5.1
Author URI: http://magicfields.org
*/
View
@@ -12,8 +12,8 @@ class RCCWP_Application
function AddColumnIfNotExist($db, $column, $column_attr = "VARCHAR( 255 ) NULL" ){
$exists = false;
- $columns = mysql_query("show columns from $db");
- while($c = mysql_fetch_assoc($columns)){
+ $columns = @mysql_query("show columns from $db");
+ while($c = @mysql_fetch_assoc($columns)){
if($c['Field'] == $column){
$exists = true;
break;
@@ -144,6 +144,7 @@ function Install(){
display_order int(11),
capability_name varchar(255) NOT NULL,
type varchar(255) NOT NULL,
+ expanded tinyint NOT NULL DEFAULT 1,
PRIMARY KEY (id) ) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci";
$qst_tables[] = "CREATE TABLE " . MF_TABLE_GROUP_FIELDS . " (
@@ -189,6 +190,7 @@ function Install(){
panel_id int(11) NOT NULL,
name varchar(255) NOT NULL,
duplicate tinyint(1) NOT NULL,
+ expanded tinyint,
at_right tinyint(1) NOT NULL,
PRIMARY KEY (id) ) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci";
View
@@ -21,7 +21,7 @@ class RCCWP_CustomGroup
* @param unknown_type $at_right a boolean indicating whether the group should be placed at right side.
* @return the id of the new group
*/
- function Create($customWritePanelId, $name, $duplicate, $expanded, $at_right)
+ function Create($customWritePanelId, $name, $duplicate, $expanded = 1, $at_right = 0)
{
require_once('RC_Format.php');
global $wpdb;
View
@@ -2,7 +2,7 @@
* Authors: [Edgar Garcia](http://hunk.com.mx "Hunk"), [David Valdez](http://gnuget.org "Gnuget")
* Contributors: [Astrata Software](http://astrata.mx) [Travis Hensgen](http://traversal.com.au/), [Jeff Minard](http://jrm.cc/ "Jeff Minard"), [Carlos Mendoza](http://http://github.com/kaziel/Magic-Fields "Carlos Mendoza"), Michael Bayard, [Doc4](doc4design.com/ "Doc4")
* Tested up to: Wordpress 2.9
-* Stable tag: 1.4
+* Stable tag: 1.5.1
* Description: Magic Fields is a feature rich WordPress CMS plugin.
## Description
@@ -18,6 +18,42 @@ Follow the following steps to install this plugin.
## Changelog ##
+###1.5.1###
+ * Fixed critical bug in Multisite version and a few more fixes
+
+###1.5###
+ * Related Field Types: Extra selections are now available ‘All Posts AND Pages’ and ‘All Posts AND Pages with Write Panel’.
+ * Added extra CSS class to Write Panel main menus, based on the sanitized write panel name. E.g. the Menu item for panel named ‘Home Page’ will get the extra class ‘mf-menu-home-page’. Ths allows alternative menu images to be attached to the write panel. Currently this is only possible by having an admin CSS file added through a WordPress ‘admin_head’ filter function in your functions.php
+ * Added caching feature to support mostly used functions like get() and get_group();
+ * Count down feature for inputs and textareas showing characters left in twitter style.
+ * Now displaying Categories in hierarchy in the Write Pannel.
+ * Issue 34 fixed
+ * Issue 53 Fixed
+ * Issue 50 Fixed
+ * Issue 57 Fixed
+ * Issue 65 Fixed
+ * New way to sort the order of the fields in the write panel
+ * New Template API Functions: gen_image_for, get_group_with_options,get_group_with_prefix,get_flat_group,get_flat_group_with_prefix
+ * gen_image_for: Gets a generated image for a field value that’s already known, as is the case for values from the “get_group” function.
+ * get_group_with_options: a function that allows certain options to be passed in to make front end code a bit cleaner. Refer to code comments for more details.
+ * Added 'Name (order)' column to the grid, which displays the code-friendly name of the field followed by the field order number in brackets
+ * revamped the entire ui for add posts in the write panels
+ * When CREATING a field, Magic Fields now suggests an appropriate name for the field after the label is entered or changes. This is based on removing all special characters, converting to lowercase, and converting spaces to underscores. Also, if the field is part of a group, the (singularized) group name is appended to the beginning, which ensures it is unique across the set of fields. For example, if we have a group named ”Image Assets” and label a new field “File”, Magic Fields will suggest the field name should be “image_asset_file”.
+ * When CHANGING a field, magic fields can suggest a field name based on the rules above by clicking the "suggest" button.
+ * Tidied up the user interface for (expanded) magic fields groups, which now includes nicer bevels for field groups, better spacing, and nicer icons from the Fugue collection by Yusuke Kamiyamane ( http://p.yusukekamiyamane.com/ )
+ * The terminology for “Duplicating” magic fields groups has been changed to ”Add Another [Item]“, or “Remove [Item]“.
+ * Collapsible fields feature, where magic fields groups are collapsed down into a compact read-only group summary. Clicking group summaries will expand the group for editing. By default, any field groups and data that already exist will be loaded as a summary, meaning that pages and posts edit screens are generally MUCH shorter than before. This also makes it far easier to re-order items within each group, since the group summaries are always only about 150 pixels high.
+ * Group summaries make use of the jScrollPane plug-in from Kevin Luck ( http://jscrollpane.kelvinluck.com/ ) to provide a much neater horizontal scrollbar for long group summaries. These are much smaller and tidier than the native OS widgets.
+ * A new “Magic Fields” attributes panel is now available that allows you to change the write panel for a given page/post.
+ * Added an alternative AJAX file uploader that supports drag and drop, adds an ajax progress spinner, and provides a more consistent file upload UI across all browsers based on Valum’s AJAX uploader ( http://valums.com/ajax-upload/ ). This uploader also improves performance DRAMATICALLY for large numbers of fields, since it does not use an iframe for every file-based field.
+ * AJAX Uploader no longer adds a timestamp prefix to uploaded files, instead saving the file to the server as a lowercase sanitized version of the original file name.
+ * Enhanced the layout of file upload controls, audio controls, image controls for the new uploader.
+ * TinyMCE initilisation has been deferred until the user expands a group summary, to improve load performance.
+ * Enhanced the form validation routines to be more robust, and work correctly with the group summaries. Any fields with errors will have their group summary expanded automatically so that the user can see the errors. Also added a little warning box inside the “Publish” panel when there are validation errors so that it’s easier to see that fields are missing (since they might be scrolled out of view at the bottom).
+ * Added a much improved color picker by Stefan Petre ( http://www.eyecon.ro/colorpicker/ ) which uses a Photoshop-style color picker allowing you to select many more colors than before. This has been slightly customised to work better in the context of magic fields.
+ * Added a “loading data” spinner for the initial load of a group summary.
+
+
###1.4.5###
* Issue 17 fixed. http://bit.ly/b8AMUQ
* Issue 6 fixed. http://bit.ly/cFV9bi
View
@@ -1,10 +1,10 @@
=== Magic Fields ===
-Contributors: hunk (http://hunk.com.mx), Gnuget (http://gnuget.org)
+Contributors: hunk, Gnuget, Astrata Software (http://astrata.mx), Travis Hensgen (http://traversal.com.au)
Tags: custom write panel, custom, write panel, cms, magic fields
-Tested up to: Wordpress 2.9
+Tested up to: Wordpress 3.0.1
Requires at least: 2.9
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=edgar%40programador%2ecom&lc=GB&item_name=Donation%20Magic%20Fields&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHostedGuest
-Stable tag: 1.4.5
+Stable tag: 1.5.1
Description: Magic Fields is a feature rich WordPress CMS plugin.
== Description ==
@@ -28,6 +28,41 @@ Follow the following steps to install this plugin.
== Changelog ==
+= 1.5.1 =
+ * Fixed critical bug in Multisite version and a few more fixes
+
+= 1.5 =
+ * Related Field Types: Extra selections are now available ‘All Posts AND Pages’ and ‘All Posts AND Pages with Write Panel’.
+ * Added extra CSS class to Write Panel main menus, based on the sanitized write panel name. E.g. the Menu item for panel named ‘Home Page’ will get the extra class ‘mf-menu-home-page’. Ths allows alternative menu images to be attached to the write panel. Currently this is only possible by having an admin CSS file added through a WordPress ‘admin_head’ filter function in your functions.php
+ * Added caching feature to support mostly used functions like get() and get_group();
+ * Count down feature for inputs and textareas showing characters left in twitter style.
+ * Now displaying Categories in hierarchy in the Write Pannel.
+ * Issue 34 fixed
+ * Issue 53 Fixed
+ * Issue 50 Fixed
+ * Issue 57 Fixed
+ * Issue 65 Fixed
+ * New way to sort the order of the fields in the write panel
+ * New Template API Functions: gen_image_for, get_group_with_options,get_group_with_prefix,get_flat_group,get_flat_group_with_prefix
+ * gen_image_for: Gets a generated image for a field value that’s already known, as is the case for values from the “get_group” function.
+ * get_group_with_options: a function that allows certain options to be passed in to make front end code a bit cleaner. Refer to code comments for more details.
+ * Added 'Name (order)' column to the grid, which displays the code-friendly name of the field followed by the field order number in brackets
+ * revamped the entire ui for add posts in the write panels
+ * When CREATING a field, Magic Fields now suggests an appropriate name for the field after the label is entered or changes. This is based on removing all special characters, converting to lowercase, and converting spaces to underscores. Also, if the field is part of a group, the (singularized) group name is appended to the beginning, which ensures it is unique across the set of fields. For example, if we have a group named ”Image Assets” and label a new field “File”, Magic Fields will suggest the field name should be “image_asset_file”.
+ * When CHANGING a field, magic fields can suggest a field name based on the rules above by clicking the "suggest" button.
+ * Tidied up the user interface for (expanded) magic fields groups, which now includes nicer bevels for field groups, better spacing, and nicer icons from the Fugue collection by Yusuke Kamiyamane ( http://p.yusukekamiyamane.com/ )
+ * The terminology for “Duplicating” magic fields groups has been changed to ”Add Another [Item]“, or “Remove [Item]“.
+ * Collapsible fields feature, where magic fields groups are collapsed down into a compact read-only group summary. Clicking group summaries will expand the group for editing. By default, any field groups and data that already exist will be loaded as a summary, meaning that pages and posts edit screens are generally MUCH shorter than before. This also makes it far easier to re-order items within each group, since the group summaries are always only about 150 pixels high.
+ * Group summaries make use of the jScrollPane plug-in from Kevin Luck ( http://jscrollpane.kelvinluck.com/ ) to provide a much neater horizontal scrollbar for long group summaries. These are much smaller and tidier than the native OS widgets.
+ * A new “Magic Fields” attributes panel is now available that allows you to change the write panel for a given page/post.
+ * Added an alternative AJAX file uploader that supports drag and drop, adds an ajax progress spinner, and provides a more consistent file upload UI across all browsers based on Valum’s AJAX uploader ( http://valums.com/ajax-upload/ ). This uploader also improves performance DRAMATICALLY for large numbers of fields, since it does not use an iframe for every file-based field.
+ * AJAX Uploader no longer adds a timestamp prefix to uploaded files, instead saving the file to the server as a lowercase sanitized version of the original file name.
+ * Enhanced the layout of file upload controls, audio controls, image controls for the new uploader.
+ * TinyMCE initilisation has been deferred until the user expands a group summary, to improve load performance.
+ * Enhanced the form validation routines to be more robust, and work correctly with the group summaries. Any fields with errors will have their group summary expanded automatically so that the user can see the errors. Also added a little warning box inside the “Publish” panel when there are validation errors so that it’s easier to see that fields are missing (since they might be scrolled out of view at the bottom).
+ * Added a much improved color picker by Stefan Petre ( http://www.eyecon.ro/colorpicker/ ) which uses a Photoshop-style color picker allowing you to select many more colors than before. This has been slightly customised to work better in the context of magic fields.
+ * Added a “loading data” spinner for the initial load of a group summary.
+
= 1.4.5 =
* Issue 17 fixed. http://bit.ly/b8AMUQ
* Issue 6 fixed. http://bit.ly/cFV9bi
@@ -131,3 +166,8 @@ here: http://bit.ly/2KJwh3)
* Fix the uninstall proccess.
* Little fix in the Edit In Place editor.
* Fix in Assing Custom Write panel.
+
+== Upgrade Notice ==
+
+= 1.5 =
+Revamped all the UI of Magic fields

0 comments on commit 08acfa6

Please sign in to comment.