Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 31 through 45 (of 93 total)
  • Author
    Posts
  • in reply to: Loading within plugin #3616
    carassiuscarassius
    Participant

    Once per plugin, but across multiple plugins

    in reply to: Extending meta_boxes arrays #3500
    carassiuscarassius
    Participant

    Ok so I tried going the parent route

    these are my main functions to add the menu pages and the fields

    // Create Extensions Page
    function bl_extensions_options_page( $settings_pages )
    {
    	$settings_pages[] = array(
    		'id'            => 'builder-extensions',
    		'option_name'   => 'builder_extensions',
    		'menu_title'    => __( 'Page Builder Extensions', 'fl-builder' ),
    		'icon_url'      => 'dashicons-images-alt',
    		'submenu_title' => __( 'General', 'fl-builder' ), // Note this
    	);
    	return $settings_pages;
    }
    add_filter( 'mb_settings_pages', 'bl_extensions_options_page' );
    
    // Add Fields to Extensions Page
    function bl_extensions_options_meta_boxes( $meta_boxes )
    {
    	$meta_boxes[] = array(
    		'id'             => 'options',
    		'title'          => __( 'Extensions Options', 'fl-builder' ),
    		'settings_pages' => 'builder-extensions',
            
    		'fields'         => array(            
    			array(
    				'name' => __( 'Panel Name', 'fl-builder' ),
    				'id'   => 'branding',
    				'type' => 'text',
    				'std'  => 'Extensions',
    			),
                
    			array(
    				'name' => __( 'Enable Bootstrap', 'fl-builder' ),
    				'id'   => 'bootstrap',
    				'type' => 'checkbox',
    			),            
    		),
            
    	);
    	return $meta_boxes;
    }
    add_filter( 'rwmb_meta_boxes', 'bl_extensions_options_meta_boxes' );

    and then to try an extend it I added this to the next plugin

    // Create Extensions Page
    function animated_text_settings_page( $settings_pages )
    {
    	$settings_pages[] = array(
    		'id'          => 'animated-text-module',
    		'option_name' => 'builder_extensions',
    		'menu_title'  => __( 'Animated Text', 'fl-builder' ),
    		'parent'      => 'builder-extensions',
    	);	
    	return $settings_pages;
    	
    }
    add_filter( 'mb_settings_pages', 'animated_text_settings_page' );
    
    // Add Fields to Extensions Page
    function animate_module_fields( $meta_boxes )
    {
    	$meta_boxes[] = array(
    		'id'             => 'animated_text',
    		'title'          => __( 'Animated Text Options', 'fl-builder' ),
    		'settings_pages' => 'animated-text-module',
            
    		'fields'         => array(            
    			array(
    				'name' => __( 'Custom Field', 'fl-builder' ),
    				'id'   => 'my_custom_field',
    				'type' => 'text',
    			),       
    		),
            
    	);
    	return $meta_boxes;
    }
    add_filter( 'rwmb_meta_boxes', 'animate_module_fields' );

    The issue with this setup is that the Animated Text appears as a sub menu to the parent item, but when I click on it, it takes me to a 404 page like this for example http://mydomain.com/wp-admin/animated-text-module

    in reply to: Seem to be having issues in child theme #3496
    carassiuscarassius
    Participant

    Whilst you are around, is there a way to make the tabs extensible?

    I was trying this

    $meta_boxes[] = array(
    		'id'             => 'options',
    		'title'          => __( 'Extensions Options', 'fl-builder' ),
    		'settings_pages' => 'builder-extensions',
            'tabs'           => array(
                'general'    => array(
                    'label'  => __( 'General', 'fl-builder' ),
                    'icon'   => 'dashicons-admin-tools',
                ),
                'popup'    => array(
                    'label'  => __( 'OnClick Popup', 'fl-builder' ),
                    'icon'   => 'dashicons-admin-plugins',
                ),
                do_action('extensions_tabs'),
            ),
    in reply to: Seem to be having issues in child theme #3494
    carassiuscarassius
    Participant

    Well, the issue only occurs for themes it seems, because it does not have an issue when I use settings in plugins.

    in reply to: Seem to be having issues in child theme #3492
    carassiuscarassius
    Participant

    Did you ever get DesktopServer working to configure metabox to work with it?
    On my Linux system I have switched over to VVV, but still using DS on my office Windows machine

    in reply to: Seem to be having issues in child theme #3425
    carassiuscarassius
    Participant

    awesome, cheers

    in reply to: Seem to be having issues in child theme #3423
    carassiuscarassius
    Participant

    Well, think I will switch to using customizer controls for now seems as doesnt work with DS

    in reply to: Seem to be having issues in child theme #3421
    carassiuscarassius
    Participant

    If I can work out how to get a LAMP stack or VVV running on Arch Linux, I would probably ditch Windows and DS for good...

    But I am not that smart lol

    in reply to: Seem to be having issues in child theme #3420
    carassiuscarassius
    Participant

    Yeah runs xampplite I believe, could it be a php version issue?

    in reply to: Seem to be having issues in child theme #3418
    carassiuscarassius
    Participant

    I did that with no luck, but I have found the problem but not sure if I can fix it

    I just uploaded the theme to a live site and it worked, so it appears to be an issue when working locally within DesktopServer...

    Any thoughts on what the conflict may be then?

    in reply to: Seem to be having issues in child theme #3416
    carassiuscarassius
    Participant

    I have no errors with debug set true if that is what you mean

    in reply to: Seem to be having issues in child theme #3413
    carassiuscarassius
    Participant

    And the the settings.php file I have functions in are working because if I add it to the main functions.php it errors due to conflict as expected

    in reply to: Seem to be having issues in child theme #3411
    carassiuscarassius
    Participant

    Yeah, plugins are activated, could it be because it is a child theme?

    in reply to: Missing Download #3403
    carassiuscarassius
    Participant

    I have purchased the Developers bundle via PayPal

    Your transaction ID for this payment is: 24V91406WY9524913.

    in reply to: Missing Download #3398
    carassiuscarassius
    Participant

    So how much to upgrade to the new Developers bundle?

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