Forum Replies Created

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Author SilbinaryWolf

    (@silbinarywolf)

    Mind being more specific?

    Plugin Author SilbinaryWolf

    (@silbinarywolf)

    Hi Elba00,

    I’m quite sure on what you’re asking. Ultimate Metabox tabs doesn’t function on Category/Taxonomy editing pages, only on post types.

    Provide a screenshot the scenario if you can.

    Cheers, Jake.

    Plugin Author SilbinaryWolf

    (@silbinarywolf)

    I’m not sure what you mean. The dropdown box only automatically grabs div id names for certain plugins. If you made your own metabox, you need to make Div ID be the same as the div ID of your metabox.

    Plugin Author SilbinaryWolf

    (@silbinarywolf)

    You do not the Options Page plugin for this to work. I’ll work on a patch to fix this, in the meantime, replace the file code with this. (simply adding the class_exists() check)

    if (class_exists('acf_options_page'))
    {
    
    class umt_acf_options_page extends acf_options_page
    {
    	var $umt;
    
    	function __construct($parent)
    	{
    		$this->umt = $parent;
    
    		// Setup Addon
    		global $acf;
    		if (isset($acf->options_page))
    		{
    			// call the original acf_options_page constructor
    			parent::__construct($acf);
    
    			// setup initiation procedure
    			add_action('init',array($this,'init'),99);
    
    			// setup register options page init
    			add_action('admin_init',array($this,'umt_admin_init'));
    		}
    		else
    		{
    			trigger_error("ACF Options Page support for Ultimate Metabox Tabs has become broken. Please contact the developer. For now, disable the extension.");
    		}
    	}
    
    	function init()
    	{
    		global $acf;
    		// remove the admin menu hook
    		remove_action('admin_menu', array($acf->options_page,'admin_menu'));
    
    		// override the original options page
    		$acf->options_page = $this;
    	}
    
    	function admin_body_class($classes)
    	{
    		$classes = str_replace(" umt_no_margin","",$classes);
    		return $classes;
    	}
    
    	function umt_admin_init()
    	{
    		// register metatabs page
    		umt_register_settings_page($this->umt_slug,$this->umt_name);
    	}
    
    	function admin_head() {
    		$this->umt->metatab_load_settings_page($this->umt_slug);
      		$this->umt->admin_head();
    
    		add_filter('admin_body_class',array($this,'admin_body_class'));
    
    		parent::admin_head();
    	}
    
    	function admin_print_scripts() {
    		$this->umt->metatab_load_settings_page($this->umt_slug);
    		parent::admin_print_scripts();
    		// remove original filter, only if on the 'options page'
    		remove_filter('richedit_pre', array($this->umt,'richedit_pre'),99);
    
      		$this->umt->admin_print_scripts();
    	}
    
    	function admin_print_styles() {
    		parent::admin_print_styles();
    		$this->umt->admin_print_styles();
    	}
    
    	function html()
    	{
    		parent::html();
    		// append metabox tabs
    		$this->umt->metatab_create();
    	}
    }
    }
    Plugin Author SilbinaryWolf

    (@silbinarywolf)

    I’ve increased the title field to 75% (from 50%) and set the ‘Update’ button to scale to the text.

    View post on imgur.com

    In your screenshot the user interface CSS looks broken, what’s up with that?

    The update should be available shortly.

    Plugin Author SilbinaryWolf

    (@silbinarywolf)

    Hi Bluoma,

    I’m not getting any such errors and everything seems to be working fine for me.

    Can you send me a list of all the plugins you have active and what steps I can take to reproduce the bug?

    Cheers, Jake.

    Plugin Author SilbinaryWolf

    (@silbinarywolf)

    Hi Mic0000,

    I’ve been working on the plugin and it’s near its next version. I’ve included a “Patcher” which effectively modifies the wordpress admin code to add a new hook.

    This effectively lifts Metabox tabs out from inside the content box and puts it where it needs to be. This should increase compatibility with a lot of plugins. I’ve tested it with qTranslate and it sits nicely at the top of the page, without any extra javascript needed.

    I may however add a javascript version in the future so that the patcher isn’t a requirement.

    It should be out within the next 2 hours.

    Cheers, Jake.

    Plugin Author SilbinaryWolf

    (@silbinarywolf)

    Hi Mic0000,

    I’ll take a look at it in 2-3 days. I’m in the middle of exams for university, so I can’t get on fixing this immediately.

    Hopefully I’ll have a solution created by Wednesday (GMT+10) at the latest. (approx 80 hours from now)

    Cheers, Jake

    Plugin Author SilbinaryWolf

    (@silbinarywolf)

    Hi Sweet Homes,

    The creator of that plugin has used the admin_body_class hook incorrectly and the error is his/her fault.

    Replace admin_class in codepress-admin-columns.php with:

    function admin_class($classes)
    	{
    		global $current_screen;
    
    		// we dont need the 'edit-' part
    		$screen = str_replace('edit-', '', $current_screen->id);
    
    		// media library exception
    		if ( $current_screen->base == 'upload' && $current_screen->id == 'upload' ) {
    			$screen = 'media';
    		}
    
    		// link exception
    		if ( $current_screen->base == 'link-manager' && $current_screen->id == 'link-manager' ) {
    			$screen = 'links';
    		}
    
    		// loop the available types
    		foreach ( $this->get_types() as $type => $label ) {			
    
    			// match against screen or wp-screen
    			if ( $type == $screen || $type == "wp-{$screen}" )
    				return $classes . " cp-{$type}";
    		}
    		return $classes;
    	}

    I’ve posted a topic on the support section of his plugin, telling him how to fix it.

    Cheers, Jake.

    Plugin Author SilbinaryWolf

    (@silbinarywolf)

    Hi Sireneweb,

    I’m sorry to disappoint you but WPML isn’t freeware and I haven’t needed to use it in my line of work as of yet.

    As such, I’m not going to spend $30 for a feature request by one user. It would require that you donate a license to me or the cost of the plugin, only then could I add WPML into Metabox Tabs.

    If you do decide to donate though, be aware that WPML support will be added for free in future versions for all to use. I want to keep this plugin open and free as it’s feature-set isn’t worth purchasing and also not lock extra functionality out for other users.

    Cheers, Jake.

    Plugin Author SilbinaryWolf

    (@silbinarywolf)

    Hi James,

    The tab should show up fine (It does support more than 2!), providing the the metaboxes exist on the page. Make sure your Third tabs metaboxes display on that post type.

    I know there might be some issues with my metabox validation here, so can you provide details on what you were doing exactly (Plugins used, metaboxes), so that I can try testing UMT under the same conditions.

    If you’re using ACF, make sure that the ACF metabox is actually available on the page.

    Cheers, Jake.

    Plugin Author SilbinaryWolf

    (@silbinarywolf)

    Hi Sireneweb,

    I’ll definitely have a look at WPML next week, for the time being I’m a bit swamped with university study.

    It shouldn’t be too difficult to implement however, so for the time being sit tight.

    I assume you want this implemented so the Metatab Group names can be easily translated?

    Plugin Author SilbinaryWolf

    (@silbinarywolf)

    You want acf_4 in one group, and acf_5 in another group.

    Each group is a different tab, and if only one tab is found (in your case, you’ve only made one tab), then metabox tabs doesn’t show up.

    If you referred to how the screenshots did it, you would have had no issues.

    As the first 2 screenshots show it in action, and the 3rd screenshot shows the configuration.

    I hope this helps you.

    Plugin Author SilbinaryWolf

    (@silbinarywolf)

    Did you read the installation guide at all? It’s not simple plug and play plugin and requires some developmental knowledge. (Such as use of inspect element to obtain the div id of a metabox)

    For the DIV ID, if you simply want to sort your ACF metaboxes, find the post id of your ACF field, then use it as follows “acf_<postid>”, so for example you might write acf_9, if your using the ACF metabox that is post number 9.

    In future versions, I’ll probably add a selection box so you can just easily select the ACF field you want to tab but for now, you’ll have to do it the manual way, it supports ALL types of metaboxes, not only ACF.

Viewing 14 replies - 1 through 14 (of 14 total)