Support Forum ยป User Profile

Forum Replies Created

Viewing 15 posts - 31 through 45 (of 57 total)
  • Author
    Posts
  • in reply to: Exiting Image field delete when update #7734
    Infolu OfficialInfolu Official
    Participant

    Hi Anh Tran, for me it works perfectly with the update thanks for this.

    in reply to: Problems with image type field #7733
    Infolu OfficialInfolu Official
    Participant

    Hello Anh Tran, is working with the update thanks for this.

    in reply to: Label overlapping radio when using validation #7732
    Infolu OfficialInfolu Official
    Participant

    Hello Anh Tran, is working with the update thanks for this.

    in reply to: Exiting Image field delete when update #7680
    Infolu OfficialInfolu Official
    Participant

    Hello same problem that I'm having reported in post https://support.metabox.io/topic/problems-with-image-type-field/#post-7679

    when using the fild type "image" field my images are being deleted, this happens when using the version of metabox 4.12.5.

    Thank you for looking at this.

    in reply to: Problems with image type field #7679
    Infolu OfficialInfolu Official
    Participant

    hello, I think I did not correctly share my problem, I'm not talking about the field 'type' => 'image_select', but the field 'type' => 'image', where updating a post is deleted, this happens when using or metabox 4.12.5.

    thank you

    in reply to: Problems with image type field #7500
    Infolu OfficialInfolu Official
    Participant

    Hi, thanks for the support. But I am using the field image and not image_select, in the example above was generated by the metabox generator online, I did not see what is missing, can you give me an example of what is missing so that when updating a post I do not lose the already registered image?

    in reply to: Problems with image type field #7479
    Infolu OfficialInfolu Official
    Participant

    Complementing, I am using version 4.9 of wordpresss and this only happens with version 4.12.5 of metabox, with version 4.12.4 I do not have the problem presented.

    [21-Nov-2017 19:14:07 UTC] PHP Warning: Invalid argument supplied for foreach() in framework\metabox\4.12.5\inc\fields\image-select.php on line 32

    [21-Nov-2017 19:14:07 UTC] PHP Stack trace:

    in reply to: Help Update option value #4329
    Infolu OfficialInfolu Official
    Participant

    in reply to: Problem with metabox group #4024
    Infolu OfficialInfolu Official
    Participant

    Anh Tran Any news on this?

    in reply to: Problem with metabox group #3994
    Infolu OfficialInfolu Official
    Participant

    Exactly, use the init is causing problems for me. in the example above when I change to admin_init just solving the problem with metabox-group.

    in reply to: Problem with metabox group #3982
    Infolu OfficialInfolu Official
    Participant

    The image is not loaded up
    http://imgur.com/a/k99JC
    http://imgur.com/a/PiBBK

    In my tests I edited the inc/core.php file

    /**
    	 * Register hooks.
    	 */
    	public function __construct()
    	{
    		$plugin = 'meta-box/meta-box.php';
    		add_filter( "plugin_action_links_$plugin", array( $this, 'plugin_links' ) );
    		add_action( 'plugins_loaded', array( $this, 'load_textdomain' ) );
    		//EDIT init per admin_init
            add_action( 'init', array( $this, 'register_meta_boxes' ) );
            add_action( 'init', array( $this, 'register_wpml_hooks' ) );
            add_action( 'edit_page_form', array( $this, 'fix_page_template' ) );
    	}

    per

    /**
    	 * Register hooks.
    	 */
    	public function __construct()
    	{
    		$plugin = 'meta-box/meta-box.php';
    		add_filter( "plugin_action_links_$plugin", array( $this, 'plugin_links' ) );
    		add_action( 'plugins_loaded', array( $this, 'load_textdomain' ) );
    		//EDIT init per admin_init
            add_action( 'admin_init', array( $this, 'register_meta_boxes' ) );
            add_action( 'admin_init', array( $this, 'register_wpml_hooks' ) );
    		add_action( 'edit_page_form', array( $this, 'fix_page_template' ) );
    	}

    switching to init per admin_init the error disappears

    Infolu OfficialInfolu Official
    Participant

    Perfect worked for me thanks.

    Infolu OfficialInfolu Official
    Participant

    Hi I think that I now had not been tested in this way, let's rephrase my problem then

    the metabox plugin is loaded internally in my plugin example

    my-plugin> frameworks> meta-box-master

    Ie after the last updates the plugin is not being charged with a suplimento another plugin
    https://metabox.io/faq/
    =================================================
    Can I include into my premium plugins themes / plugins?

    Yes, absolutely. You can use plugins in your premium, commercial products, but you have to keep credit to me the the author of the plugin.
    =================================================

    Today I carry the meta-box-master
    so in my
    require_once plugin ('4.8.7 / meta-box.php');
    require_once('mb-settings-page/mb-settings-page.php');
    require_once('meta-box-group/meta-box-group.php');
    require_once('meta-box-tabs/meta-box-tabs.php');

    ie the problem is being load within a plugin

    Infolu OfficialInfolu Official
    Participant

    Hi Anh Tran,unfortunately for me not work, I'm Environment
    Below
    metabox-master (Release does not have the correction of maps)
    metabox 1.1.3 pages settings
    wordpress 4.6
    It only works with the changes I mentioned above in core.php files and meta-box.php

    Infolu OfficialInfolu Official
    Participant

    In my tests I edited the inc/core.php file

    	/**
    	 * Register hooks.
    	 */
    	public function __construct()
    	{
    		$plugin = 'meta-box/meta-box.php';
    		add_filter( "plugin_action_links_$plugin", array( $this, 'plugin_links' ) );
    		add_action( 'plugins_loaded', array( $this, 'load_textdomain' ) );
    		//EDIT init per admin_init
            add_action( 'init', array( $this, 'register_meta_boxes' ) );
            add_action( 'init', array( $this, 'register_wpml_hooks' ) );
            add_action( 'edit_page_form', array( $this, 'fix_page_template' ) );
    	}

    PER

    	/**
    	 * Register hooks.
    	 */
    	public function __construct()
    	{
    		$plugin = 'meta-box/meta-box.php';
    		add_filter( "plugin_action_links_$plugin", array( $this, 'plugin_links' ) );
    		add_action( 'plugins_loaded', array( $this, 'load_textdomain' ) );
    		//EDIT init per admin_init
            add_action( 'admin_init', array( $this, 'register_meta_boxes' ) );
            add_action( 'admin_init', array( $this, 'register_wpml_hooks' ) );
    		add_action( 'edit_page_form', array( $this, 'fix_page_template' ) );
    	}

    and edited the file inc / metabox.php

    In the master version file has been removed to the lower part

    	/**
    	 * Get field class name. Only for backward compatibility.
    	 * @param array $field Field array
    	 * @return string Field class name
    	 */
    	public static function get_class_name( $field )
    	{
    		return RWMB_Field::get_class_name( $field );
    	}

    For me it worked the above modifications

Viewing 15 posts - 31 through 45 (of 57 total)