GithubHelp home page GithubHelp logo

magic-fields-team / magic-fields-2 Goto Github PK

View Code? Open in Web Editor NEW
124.0 17.0 49.0 1.12 MB

Magic Fields 2.X

Home Page: http://magicfields.org

License: GNU General Public License v2.0

PHP 77.13% CSS 12.25% JavaScript 10.62%
php wordpress-plugin custom-fields custom-taxonomies custom-post-types wordpress-admin

magic-fields-2's Introduction

Magic Fields

  • Authors: Edgar Garcia
  • Tested up to: Wordpress 4.2.2
  • Requires at least: 3.1
  • Stable tag: 2.3.3.2
  • Description: Magic Fields 2 is a feature rich Wordpress CMS plugin
  • License: GPLv2

Donations

Please consider a donation, I spend part of my free time programming in Magic Fields. Help this proyect

##Description Magic Fields 2 is a WordPress CMS plugin which is focused on improving the way how custom fields, post types and custom taxonomies are created in Wordpress.

There are 15 pre-built custom fields in Magic Fields:

  • Audio field
  • Checkbox field
  • Checkbox list field
  • Color picker field
  • Datepicker field
  • Dropdown field
  • File field
  • Image field
  • Image media field
  • Markdown editor field
  • Multiline editor field
  • Radiobutton list field
  • Related type field
  • Slider field
  • Textbox field

NOTE: Magic Fields 2 IS NOT backward compatible with MF1

##Installation Follow these steps to install MF2:

  1. Download the plugin into the /wp-content/plugins/ folder
  2. Activate MF2

Changelog

###2.3.3.2###

  • fix problem with _processed_value and images

###2.3.3.1###

  • fix Url convert to relative url, Fixes #249
  • fix from tfood to tfoot
  • remove pr in escape_data function, sorry

###2.3.3###

  • nonce was added in forms, thanks Burak Kelebek for the report
  • In import post type change wp_verify_nonce for check_admin_referer
  • check_ajax_referer was added in upload image alternative
  • Export Post Type now is json file :-)
  • JSON_PRETTY_PRINT was added in export post type
  • nonce was added all wp ajax calls

###2.3.2.4###

  • fix problem with upload file field
  • fix problem with get_image and gen_image, sorry

###2.3.2.3###

  • Patch for mf_upload.php (sanitize input), thanks @robre

###2.3.2.2###

  • better way of handle error in image thumbnails
  • fix problem of maxlength in textbox
  • fixes for localization

###2.3.2.1###

  • Change text domain for localization ( translate.wordpress.org )
  • minor fixes in css

###2.3.2###

  • fix in get data for image media (now use admin-ajax.php for request) , some server has aditional security for wp-content
  • fix warnigs in activate plugin
  • remove console.log, sorry

###2.3.1###

  • add verification in dispacher, add wpdb->prepare
  • add improvements and testing for WP 4.2.2

###2.3###

  • Fix #232 mf_register.php Warning on line 40
  • Add support for menu-icon for post type (Dashicons)
  • Update validate plugin (the previous version caused conflict in parts of WP)
  • Fixed for wp_load_image (deprecated funtion) in mf_front-end
  • Little fixes in menu post types

###2.2.2.2###

  • fix problem with editor, featured image and more
  • fix problem in delete item of custom post type

###2.2.2.2###

  • fix problem with editor, featured image and more
  • fix problem in delete item of custom post type

###2.2.1###

  • add static to public functions

###2.2###

  • Replace all .live for .on (jquery)
  • Fix issue #184 invalid html
  • Fix export import error see this page
  • Now in the term field appear also the new terms
  • Fix issue #176 Selectable variable name for a better workflow
  • Fix issue #165 If we set the post type as not public it disappears and can no longer edit it.
  • Fix issue #170 Error is not found posts ($post->ID)
  • Preparing for translations
  • Update markdownPReview, clean javascript data
  • Fix issue #170 JavaScript object 'wp' is not present on a lot of pages
  • Fix for 'Uncaught ReferenceError: wp is not defined'
  • The text in confirm-dialogs when deleting an image, image-media, file
  • Labels 'Add Another' and 'Remove' in duplicatable groups and fields
  • Add new wp 3.5 media gallery (thanks alexandergryth)
  • Fixed for wp_load_image (deprecated funtion)
  • Fix for Notice: Undefined index: post_type
  • Fix for Undefined index div_class in checkbox quantity
  • Fix max-height in options panel in post type and taxonomies
  • Updating ui.datepicker.js to 1.8.24
  • Adding backward compatibility the media upload
  • Fix problem con new media upload of WP 3.5
  • Add index in mf_post_meta for upgardes and fix in name field of index
  • Fix in color picker for duplicate action
  • Compacting color picker
  • Fix issue #137 Quotes is breaking the text on textbox field
  • Fix issue #153 Extremely slow queries to wp_X_mf_post_meta
  • Fix issue #142 Custom post type image does not display thumbnail image in admin

###2.1###

  • Now is possible choice a page template per post (when the "page attribute" is checked in the post type configuration)
  • Post type unique, now is possible create post types with only one post, (useful for create static pages)
  • adding "set_front" option at the Post type configuration page
  • New field term type.
  • Issue #158. #158
  • Issue #139. #139
  • Update the Datepicker Plugin
  • Issue #118 #118
  • And much more bugfixes

###2.0###

  • First release

##Thanks To:

magic-fields-2's People

Contributors

cmwelsh avatar davidmh avatar doctordesh avatar emeraldimp avatar gabor-udvari avatar gnuget avatar hunk avatar jb510 avatar leocaseiro avatar pictron avatar robre avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

magic-fields-2's Issues

taxonomy & post type dropdown fields

Any chance you guys could allow for a dropdown or dropdown multiselect to display custom post type and/or custom taxonomy selections? That would be very useful for building pages where the editor can select a category or post type for the loop on that page. Ideas? or is there a better way to do this?

Not finding existing custom taxonomies

Just reporting that the most recent version does not show currently registered custom taxonomies. I have several post types and taxonomies, post types are recognized just fine but no custom taxonomies found.

Found the post type creation bug as well. Will try the fix previously just added.

Glitch on Add New Link screen

I opened the "Add New Link" page in the admin dashboard by accident and found a bug in MF:

Notice: Trying to get property of non-object in /Users/cmwelsh/code/dev/myprojectname/project/html/wordpress/wp-content/plugins/Magic-Fields-2/admin/mf_post.php on line 23

WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 14]
SELECT mfpm.meta_id, mfpm.field_name, mfpm.field_count, mfpm.group_count, pm.meta_value FROM wp_mf_post_meta as mfpm LEFT JOIN wp_postmeta as pm ON ( mfpm.meta_id = pm.meta_id ) WHERE mfpm.post_id =

I will look into this later and post my findings.

Datepicker field type not functioning

When I use "get_group", my datepicker fields are returned as just "am". They are stored in the database correctly, so something must be happening when they are fetched.

A quick fix would be appreciated!

Related fields issue

Hi again,

There is no unselected state for the related field. So even though no related field is set, it will appear as if the first one is.

I consider this a bug. It would be great if the backend interface gave us the option of setting the text for the dropdown's unselected state ourselves.

Thanks!
Eivind

Feature request: Export all

Hi,

An export function that includes all post types and taxonomies would be great (instead of having to export each one individually).

And if the import function is intelligent enough to let me as a user check checkboxes for which ones I want to import, it will be pretty amazing.

Cheers,
Eivind

Redirect after save to wrong URL when WordPress in Subdirectory

I am using WordPress in a subdirectory like described here: http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory

When I go to create a custom field, the plugin is redirecting the successful save request to example.com/wp-admin/ instead of example.com/subdirectory/wp-admin/

I think there is an issue that could be fixed here with the URL generation.

siteurl is: http://example.com/subdirectory
home is: http://example.com

On my server the root folder contains just index.php at /
WordPress is installed in /subdirectory/

Return local image path with get_image

It would be really handy to return the local image path like /home/foo/wp-content/mf-files/blah.jpg so we can do other things with the image.

I needed to do it twice today, one example would be using filesize() to display the image size.

Feature request: alt image with image

I hope you'll think to introduce the alt parameter as a default for images.
It will be nice to have a default text field joined with the image field. Is it possible?

Bugfix needed

Magic Fields reports a warning in some cases in mf_front_end.php on line 558 stating an Invalid argument in foreach().

I believe this happens in cases where we have the field type as 'image' which does not have 'options' set. Thus, $params is passed as 'false' to the function.

Adding a check like the following before the foreach() on line 558 solves the issue.

if(!is_array($params)) return '';

Please look into resolving this issue in a future build.

Cheers,
Eivind

Possible bug: 404 on post type URL rewrites

Hey guys,

When I enable URL rewrite on my posts the permalinks throw 404s. When I disable it, they start working again.

I'm not sure if I'm doing something wrong or if there is a bug. I figured I'd report it anyway.

Cheers,
Eivind

Bug report: Changing a variable name causes all values to disappear

Hi,

This bug is similar to the one I just posted. When we change a variable name, the database should be updated in a way that preserves the values that already exist for that name. The way it is now, the variables that used to exist for that field just disappear.

So the database will need to be updated upon changing the name of a field's variable. If not, it will not only erase a lot of hard work, it will also clutter the database with redundant content.

Cheers,
Eivind

REDUX: I upgraded to the latest beta build and all write panels disappeared

Hi guys,

I thought this issue was solved, but I must have just messed with the files. It's not solved.

With the old filebase I see one set of custom post types and with the new, I see another. I checked the database for inconsistencies and realized that you have changed the way you serialize the post type info in the _posttypes table's argument field.

See this image: http://files.sigarett.com/mf2/mf2_debug_1.png

The produkt_1 table entry is created with the new filebase, all the other ones are created with the old filebase.

We can rewrite the arguments field to upgrade our old custom post types to correspond with the new filebase, but I wonder if you changed anything else as well?

And are you planning to change more of these things? If you do, obviously previous filebases stop working entirely. And in that case, I would REALLY appreciate if you informed those of us who are betatesting. We are building a large webpage with experimental technology so it is a bit of a precarious process. :-) eek

Eivind

Redirect de MF no esta funcionando

cuando tratas de editar un post type que no esta en el sistema en la funcion edit_post_type hace un redirect, pero algo esta mal, me sale el mensaje
"Warning: Cannot modify header information - headers already sent by (output started at /Users/sites/mf2/wp-admin/menu-header.php:89) in /Users/sites/mf2/wp-includes/pluggable.php on line 897"

recuerdo que la probe cuando la puse, y estaba funcionado buen.

Text in fields not saving

When I make textfield, multibox etc... and write some text in disappears when I publish the post/page

Set post type as homepage?

Hi, I don't know if it's a bug or lack of functionality. In MF 1 it could be possible to create a page and add custom fields to this. In this way I cant set this as homepage. Now I can't do this. How to?

Feature request: Sortable field duplicates

Hey,

We can sort group duplicates in the UI. I love this function. It is very important from a usability point of view. Equally important - ALMOST equally important - is sortable field duplicates.

I would very much like to see this in the future. As it is now, I must create workarounds using groups for just one field or I must put more work on my client (cut/delete the content of one field, move it to another etc).

Cheers,
Eivind

Posts are not saving in MF2

My problem, which was reported here ( #26 ) and was officially closed has returned. I downloaded the latest beta version, installed it alongside WPML Multilingual CMS 2.3.4, and WPML String Translation 1.2.6. Initially it seemed to work, posts were been saved, but now they do not. Maybe I configured something wrong but for the life of me cannto get MF2 to work properly now. Any help would be much appreciated..

Ta

Genereal problem with MF2

Hi,

I'm working really intensely with MF2 these days and besides enjoying the new functions a lot I'm starting to realize there is a general flaw in the codebase.

This flaw means that for many settings, whenever I change them they don't apply to the posts and taxonomies that have already been created. The settings are only active for future posts and taxonomies.

This is a serious issue which means difficulty restructuring a website which has already got a substantial database (it must probably be manually updated with custom SQL calls or PHPMyadmin work).

I'm sure this is not a huge challenge for you and it is IMO an essential update to make this version release ready.

Thanks,
Eivind

Feature request - Nested groups

I was wondering would it be possible to add nested groups feature. Magic fields 2 has all the features except that nested groups. Or its already available there? Am i missing something.

This is what i'm trying to implement.

Main group: Movies
Group has some sub groups like Information,imdb information and other groups. Each of these sub groups has some fields.

Now is it possible to duplicate the main movies group?

Can't insert image in multiline field

I'm trying to insert an image into a multiline field using the Add an Image button in the visual editor, but the 'Insert into Post' button is not available. I'm using WP 3.2.1 with the latest MF2 dev version and no other plugins active.

ps. very nice work so far

Move fields between groups

It would be nice to be able to move already created fields between groups so that you dont have to create the field again just to use it in another group

Related field type not WPML aware

Hi, when using WPML the related field type shows all languages.
I have found a solution for this by adding the argument 'suppress_filters=0' to get_posts in related_type_field.php, in the function display_field:

$options = get_posts( sprintf("post_type=%s&numberposts=-1&order=%s&orderby=%s&suppress_filters=0",$type,$order,$field_order) );

Is this something you can incorporate?

Assign custom fields to certain pages only

I am looking to assign Magic Fields fields to certain Pages. The variables that need to be edited depend on the page template being used. Right now the solution is to have a separate field group per page template and then just leave all of the other field groups blank, but this is getting crowded and not so elegant. Any suggestions?

Positioning of Visual Editor in Multiline Field is off

When choosing visual for a multiline textbox, the box appears to the right of the visual and html buttons and subsequently partly falls outside the box it is in. On a 2 column admin screen layout the box will partially overlap the right column. Seems a simple question of adding a clear:both; css style to the box

WP 3.2.1 with no other plugins activated

Unable to echo custom fields in a Group

is the code I am using to try and echo two custom fields. These fields are not able to be duplicated. As far as I can see, and based on using previous versions. This should be working?

Post validation issue

Please remove post validation for drafts. Validate the post only when a user click "publish" or "submit for review" button

Feature request: Write panel icons

Hey guys,

I don't know if this is the right place for a user request.

What I would like is for every Write Panel to come with the option to specify a custom icon image, giving me the opportunity to replace the pin with say a music or a cd icon. That would help the UI immeasurably.

This would be a great feature I think.

Cheers,
Eivind

Unable to use fields unless Custom Post Type is publicly accessible

I have a custom post type that I'm using to create a quick custom list.

public function init() {
    register_post_type($this->postType,
        array(
            'labels' => array(
                'name' => __('Historic Championships'),
                'singular_name' => __( 'Historic Championships' )
            ),
            'public' => false,
            'show_ui' => true,
            'has_archive' => false,
            'supports' => array('title', 'page-attributes'),
        )
    );
}

I can't seem to add and edit Magic Fields on this post type unless I change public to true. Is this a bug, or intentional? I would appreciate some clarification on this behavior. Thanks. :)

Import is not working

Warning: unserialize() expects exactly 1 parameter, 2 given in /home/sigarett/domains/sigarett.com/public_html/bacardi/wp-content/plugins/Magic-Fields/admin/mf_admin.php on line 109

Warning: unlink() [function.unlink]: No such file or directory in /home/sigarett/domains/sigarett.com/public_html/bacardi/wp-content/plugins/Magic-Fields/admin/mf_posttype.php on line 778

Warning: Cannot modify header information - headers already sent by (output started at /home/sigarett/domains/sigarett.com/public_html/bacardi/wp-content/plugins/Magic-Fields/admin/mf_admin.php:109) in /home/sigarett/domains/sigarett.com/public_html/bacardi/wp-includes/pluggable.php on line 934

Some kind of thumbnail for file field

When using the the file field its not obvious if the field already has a value when editing the page.
There is a box for a thumbnail (like the 'image' field) but is empty regardless of whether the field has a value set.

Perhaps display the file path or a WP Media style icon in the box to show if the field has a value.

It seems I can't create page write panels with MF 2

Hey guys,

It seems that you have removed the feature from Magic Fields in which I can create write panels of the page type. I can't find a way to do it anywhere in MF2. It's all centered around custom post types.

That's a great setback in one area of the product and I would really hate to see it go. In many ways, it would thwart the CMS capabilities of the product.

Would love to hear your thoughts on this.

Eivind

Después de crear una taxonomía sale un Notice

Después que crear una taxonomía me sale este error:

Notice: Undefined index: show_in_menu in /Users/davidvaldez/Sites/wordpress/wp-content/plugins/Magic-Fields/mf_register.php on line 62

Estoy en esta revisión: 30629ac

Creating field link error

While creating a new field for a group, working in localhost, if clicking on "This group haven't any custom field yet, create one here" i reach a not found page.

More settings wanted (you took out some great ones)

Hi guys,

I think you removed too many settings.

I really liked these

  • Hide posts
  • Hide pages

These are great if I intend to use Magic Fields as a CMS system. Oftentimes, users of our systems will create posts instead of the correct item under the relevant write panel/custom post type and then they will wonder why things aren't working.

Since it is strictly speaking not possible to use MF2 to as a full CMS system now that you have removed pages from it, the "hide pages" feature isn't that important. But the reintroduction of pages would change that of course!

Another big no no is removing the feature where we can assign a post to a write panel. You are now creating an ecosystem in which it becomes impossible to install Magic Fields on a site which has been running for a while. I recon it is very important to have some sort of way to migrate normal posts to custom post types.

As it is, I want to install MF2 on one page, but I can't since I can't connect the posts which are there to the custom post types.

This is HUGE. huuuuuuuge

alright, :-)

Eivind

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.