Magic Fields 1.2 was released
Magic fields 1.2 is out and this is our first release with new features.
In this entry we will speak a little about to what is new in this version, we hope to you enjoy this new release
New Features.
Condense Menu mode.
In our first release a lot of people ask us for add the “condense” feature made by Doc4 (http://bit.ly/8Gy9q) and now this feature is part of the Magic Fields.
And we added a little improvement for this new mode, when the user see the “edit” page while has the “condense menu” mode active will be appear a new column with the name of which write panel belongs the post.
New Functions for get data in the frontend.
One of the weak points of the last version was the performance. For get the values of a Duplicate group was neccesary did a bunch of calls of the “get” function. So in this new version was added new ways to get the data.
get_field_duplicate: When we has a duplicate field with many values now we can get the data in this way:
In this image we has a duplicate field with some values:
And in the theme we can get this values using this:
And we will get this result:
get_group: In a duplicate group with many fields like this:
And in the theme we can get this values using this:
And we will get this result:
gen_image: Now is possible create new thumbs of our images dynamically for example if we has a image custom field.
We can do something like this:
Using this code:
Add a new option for hide non-standart content in Post panel.
normally in the edit page in the Post panel appears all the posts created with and without writepanels, with this option we can only display the posts created without write panels.
Tooltip feature.
Sometimes can be confused for the clients knows for what is each custom field in the write panel now we can add a message and this will be appear as a tooltip in our custom field page.
We want say thanks.
In this last month many people help us to improve Magic Fields and we want say thanks to them
- Jeff Minard: Helped us adding new features and fixing bugs.
- Michael Bayard: For the Magics Field Logo.
- Carlos Mendoza: For the new help text feature.
- Doc4: For the Condense Menu mode.
- Sascha Schwartz: Donation
- Dan Armstrong: Donation
Giving Support to Wordpress MU.
In this release we wanted add support to Wordpress MU unfortunately we can’t finish to test in deep the support for Wordpress Mu, but we has a beta version, if you has time to help us, please download this package and test it
Any bug to you found it let us know in the support group.
You can download the beta version here: Magicfields-wpmu-beta









Gnuget (David V) is a Web developer since 2002 working under wordpress the last year.


danielo
31 Oct, 2009
WE (users) do say thanks!
Brandon
17 Nov, 2009
Thanks so much for this plugin!
I have question… when you are setting up a new ‘Write Panel’ for a ‘Page’ and there is an option for ‘Assigned Theme’ where you can choose a default template… would it be possible to also give the option to choose an assigned Parent Page here?
That would be really helpful, or maybe there is a way to do this I’m not aware of. Thanks.
hunk
18 Nov, 2009
Hi Brandon check this message http://groups.google.com/group/magic-fields/browse_thread/thread/c2432347ed4a1c86
Thanks Brandon and Danielo.
leland
19 Nov, 2009
whats coming up for the next release? Would it be possible to allow the admin box title that says “magic fields custom fields” on the write panel to be renamed to something useful so as not to confuse the publisher?
Gnuget
19 Nov, 2009
Hi,
In the new release comming up with a alot of new features i think to the best way to know exactly what’s is new is looking the last commits in the github repository:
http://github.com/gnuget/Magic-Fields/commits/master
About to change the name in the admin box for now is not possible but in the next release if you only create fields inside of groups (don’t leave any field without a group) the “magic fields custom fields” box don’t will be displayed in this way you can hide this box and only display your groups.
if you can’t wait until the next version, check the details of this change here:
http://github.com/gnuget/Magic-Fields/commit/99e79cfcc8229e9ed78c5a9c793efac3ad59a904
Patrick
24 Nov, 2009
hello, a question about the new get data function.
what would I have to do to query duplicate boxes containing duplicate fields?
I tried this but it does not but out he value of the duplicate fields correct:
$fields = get_group(‘Veranstaltungsbox’);
foreach($fields as $field){
echo $field['datum'][1].” “.$field['veranstaltungsort'][1].” “;
$fields2 = get_field_duplicate(’sitzplatz’);
foreach($fields2 as $field2) {
echo $field2.”";
}}
Would really appreciate some help.
thanks.
hunk
24 Nov, 2009
$fields = get_group(’Veranstaltungsbox’);
foreach($fields as $field){
echo $field['datum'][1].” “.$field['veranstaltungsort'][1].” “;
foreach($field['sitzplatz'] as $field2) {
echo $field2.””;
}}
Patrick
25 Nov, 2009
Thank you for the quick response. Great help.
Sebastiaan
25 Nov, 2009
Hello graet plugin mij question is this:
How can i duplicate this group?
Hier kunt u het grote beeld plaatsen (698 pixels)
Hier kunt u het kleine beeld uploaden (300 pixels)
Plaats hier de tekst voor onder het plaatje
Thx for the help
Sebastiaan
25 Nov, 2009
I think this is a better view:
$fields = get_group(‘WerkOverzicht’);
foreach($fields as $field){
echo $field['BeeldGroot'][1].” —-> “.$field['BeeldKlein'][1].” —-> “.$field['TekstBeeld'][1].”";
}
BeeldGroot and BeeldKlein are images what do i have to give for $field tag?
Thx for the help
hunk
25 Nov, 2009
Hi Sebastian
you can use some this:
echo $field['BeeldGroot'][1]['t'].” —-> “.$field['BeeldKlein'][1]['t'].” —-> “.$field['TekstBeeld'][1].””;
OR
echo $field['BeeldGroot'][1]['o'].” —-> “.$field['BeeldKlein'][1]['o'].” —-> “.$field['TekstBeeld'][1].””;
use pr($fields); o print_r($fields); for see the content of the array.
Eivind F S
26 Nov, 2009
I’m loving the plugin and now I have a feature request that would really take the plugin into a big league CMS tool: Let us define a field that displays options based on PHP code.
Say I wanted a dropdown list in my write panel to display a set of different background images based on a an automated listing of the images available in my images folder. That would be an amazing addition to this plugin that would help people who use the plugin for CMS design a great deal.
I would be willing to pay for this functionality.
Eivind F S
26 Nov, 2009
Just to emphasize, the point would be that I would be writing the code to fill the dropdown list myself – I don’t want this particular functionality (listing of images) as a field type.
Sebastiaan
26 Nov, 2009
Hi Hunk,
Thx for the fast answer.
When i use this code:
echo $field['BeeldGroot'][1]['t'].” —-> “.$field['BeeldKlein'][1]['t'].” —-> “.$field['TekstBeeld'][1].””;
i can see the image links of “BeeldGroot” and “BeeldKlein”. But is it possible to see them not as a link to the file but the real image?
thx for the help
Sebastiaan
26 Nov, 2009
A other question.
Is it possible to put a Css class around the 3 objects?
And how can i do this?
thx
Paul
26 Nov, 2009
Hi,
I’ve created image field and tried to upload image and every time i got the message “Upload Unsuccessful!” (it doesn’t matter if I upload from disk or upload from web)
thx for help…
hunk
26 Nov, 2009
Hi Sebastian.
try:
echo “
echo “
echo “
echo $field['TekstBeeld'][1];
echo “
“;
['t'] is for thumbnail (options of fields w,h,custom)
['o'] is for original image .
hunk
26 Nov, 2009
Sebastiaan check the link for the code http://gist.github.com/243567
terryteo
6 Dec, 2009
hi there, noticed a small bug with the date functions.
line 108 of RCCWP_CustomFieldPage.php
option value=”Y-d-m”
should be:
option value=”Y-m-d”
Gnuget
6 Dec, 2009
Hi terryteo.
I will add this fix in the next release.
Thanks
terryteo
6 Dec, 2009
awesome. if it is possible for the date select to be improved to include a time selector, that would be a huge bonus. also, it would be good to have the option to store the date and time as ISO 8601 which (only works in php5 though). ISO date has the format character of “c”.
thanks again!
acebone
6 Mar, 2010
Hi! Looks great!
One question though – I have created a page-write panel called Curriculum Vitae.
It holds a group cvEntry (duplicatable)
cvEntry has two fields: cvEntryYear (custom dropdown) and cvEntryText (multi-line text), both are non-duplicatable
When I try to get the values in my template – i use this code:
$fields = get_group(‘cvEntry’);
foreach($fields as $field){
echo $field['field1'][1].” —-> “.$field['field2'][1].”";
}
I get “Warning: Invalid argument supplied for foreach() etc…”
When I try to echo or print_r $fields, it seems that $fields is empty.
I am certain that it is not an issue with capitalization – I doublechecked that.
I am using MF 1.3.1 downloaded from within the Wordpress plug-in manager. and Wordpress 2.9.1
Any ideas?
acebone
6 Mar, 2010
Well – there is nothing wrong with the get_group function.
When I created the writepanel, I started of with it being of type ‘post’, and it should have been a page, so I corrected it.
After that some weird things happened with the ’slug’ – it kept adding 1 (curriculum-vitae-1,curriculum-vitae-2,curriculum-vitae-3 etc…)
The reason that get_group didn’t work is that while the writepanel was attached to post->id 12, all slugs pointed to post->id 6. No wonder get_group couldn’t find any panels/fields in 6, when they were all in 12.
I am sorry that I cannot reproduce the exact steps to trigger this behaviour. I made a dump of the DB, that I’d be happy to send to you if it would be any help.