Script for migrating from Flutter V 1.1 and 1.0,1.2 and 1.3, and 1.4.5

Hi Folks.

Edgar wrote a script for  migrating from the last version of flutter (v1.0 or v 1.1)  to magic fields (v 1.1).

You can download the script from here:

http://gist.github.com/198537

or from here:

http://magicfields.org/wp-content/uploads/2009/09/migra.txt

How use it.

Just follow the next steps:

Download the script here you have a raw version.

Make a backup of your database (for any unexpected bug).

Unactive flutter

Put the script in your parent folder (where you has the wp-config.php and all these stuff)

Rename the script from migra.txt to migra.php

Enter to  http://yoursite.tld/migra.php

And its all,  this script change all reference from flutter to magic fields.

Change the name of your  folder  files_flutter to files_mf

Put the Magic fields plugin in your plugins folder.

In your admin area active Magic Fields.

And its done.

UPDATE:

for the version 1.2 of Magic Fields uses this script. http://gist.github.com/227581

UPDATE:

for the version 1.3 of Magic Fields uses this script. http://gist.github.com/284805

UPDATE:

for the version 1.4.5 of Magic Fields uses this script. http://gist.github.com/558207



Magic Fields 1.1 was released

In these release we continue focus in make Magic Fields more stable and lightweight.

Files like prototype,jquery and jquery.ui.core.js already exists in wordpress and was removed of the magic fields.

We started to take in account the performance in the frontend and was reduced the queries in a 30% when is called any custom field value. this is not enough but is a start.

Now the datepicker used in the date custom field is the jquery’s date picker, in this way we use the jquery, jquery-ui to already has wordpress and was removed ~700 lines of code with this change.

Was added a feature for the functions used in the frontend (get,get_image and get_audio) for we can used it outside of the loop.

Download  Magic fields 1.1

more detailed list of changes below.

Change Log:

  • Remove a bunch of obsolete files and Code
  • Fix bug #172 of flutter’s tracker (http://bit.ly/4iQf95) thanks to Pixelate
  • Fix issue related with the Listbox field type
  • 30% less queries in the functions of front-end [get, get_image, get_audio]
  • Fix bug #185 of flutter’s tracker (http://bit.ly/kcOPb)
  • Fix bug #201 of flutter’s tracker (http://bit.ly/UAeEz)
  • Fix of some paths for works fine at windows server.
  • Adding a new function called gen_image ( more info about how use it, soon)
  • Removing all the short-tags of php.
  • Now is used the jquery ui datepicker for the Date custom field
  • Now you can use getimage, getaudio, and gen_image outside of the loop. ( more info soon )
  • Fix some issues related with the import/export of writepanels.
  • Fix the uninstall proccess.
  • Little fix in the Edit In Place editor.
  • Fix in Assing Custom Write panel.

Types of Custom Fields.

In Magic Fields, there are 12 types of “fields”. Below is a detailed explanation of each “field” and how to use them in WordPress.

Please note that the code used to display each “MagicField” must be inside one of the WordPress loops. E.g. In the default theme, “the_content();” is displayed within the “single.php” file – please see the image below:

single

Textbox.

Textbox


Usage:

echo get(‘field_name’);

Return:  String.

Multiline.

For this field, the same filters used for “the_content();” may be applied using “shortcode“. Please see the images below:

multiline

shortcode

Usage:

echo get(‘field_name’);

Return: String.

Checkbox.

checkbox

Usage:

$value = get('field_name');

if($value){  /*Something*/ }

Return: Bool.

Checkbox List

check_box_list

Usage :

$my_list = get(‘field_name’);

foreach($my_list as $element){

echo   $element;

}

Return: Array

DropDown List

check_box_list

Usage:

$my_option = get(‘checkbox’);

echo  $my_option;

Return: String

ListBox

Add New Post ‹ Magic Fields — WordPress

Usage:

$my_list = get(‘field_name’);

foreach($my_list as $element){

echo   $element;

}

Return: Array

Images

image-1

Usage:

$my_image_url = get(‘field_name’);

/**

* With this method is returned the absolute url

* of the image

**/


get_image(‘field_name’);

/**is returned the image tag of html**/

Return: String

Date

date2

date

Usage:

$my_date = get(‘field_name’);

Return: String. (Return the date in the same format  to was selected when was created the custom field, actually exists 8 differents formats of dates)

Audio

Audio

Usage:

$mp3_url = get(‘field_name’);

/**

* With this method return

* the absolute url of the image

**/


echo get_audio(‘field_name’);

/**

*With this method return a flash player

* for the user can ear the song

**/

Color Picker

color_picker1

colorpicker2

Usage:

$color = get(‘field_name’);

Return : String  (hexadecimal number of the Color )

Slider

slider

Usage:

$value = get(‘field_name’);

Return: String.


Support Group For magic fields.

Edgar the last night create a google group for give support of magic fields. Please if you have some doubt,suggestion or your need support don’t hesitate to publish a message.

The  google group is:

http://groups.google.com/group/magic-fields