Coder Social home page Coder Social logo

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

View Code? Open in Web Editor NEW
124.0 17.0 47.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 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

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

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

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

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

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?

Post validation issue

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

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

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.

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

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.

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

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?

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

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

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

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?

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/

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.

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

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

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!

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?

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

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

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. :)

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?

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?

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

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?

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.

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

Text in fields not saving

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

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: 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 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.

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.