Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 46 through 60 (of 93 total)
  • Author
    Posts
  • in reply to: Missing Download #3219
    carassiuscarassius
    Participant

    Thanks for that, I will take a look at switching everything over to ACF Pro

    in reply to: Groups within Tabs #3127
    carassiuscarassius
    Participant

    Any chance of getting display settings setup for the users field? At the moment it displays the "Display name publicly as" field.

    I am adding custom metaboxes into the user and would love to be able to use one of those for the select display?

    in reply to: Groups within Tabs #3123
    carassiuscarassius
    Participant

    Found the problem, there is nothing wrong with my function, the plugin was not actually loading when being included within the plugin I am creating.

    So once the groups extension activated properly, all is great again.

    Thanks for a great product

    in reply to: MB Settings #2260
    carassiuscarassius
    Participant

    Let me revisit this with you

    I have my bl-settings.php file in the root directory of my plugin
    I also have the mb-settings-page folder in my plugins root directory

    This is how I am trying to call them

    // Settings   
    function fp_add_meta_settings() {
        
        if( !class_exists( 'MB_Settings_Page' ) ) {
            include( plugin_dir_path( __FILE__ ) . 'mb-settings-page/mb-settings-page.php');
        }
        
    }
    add_action( 'plugins_loaded', 'fp_add_meta_settings' );
    
    include( dirname( __FILE__ ) . '/bl-settings.php'); 

    In my bl-settings.php i am trying to load my settings page as a sub-directory for the Plugins page, so i have the following code

    function bl_settings_pages( $settings_pages ) {
    	$settings_pages[] = array(
    		'id'              => 'bl-options',
    		'option_name'     => 'bl_options',
    		'parent'          => 'plugins.php',
    		'submenu_title'   => __( 'BeaverLodge HQ', 'fl-builder' ),
    	);
    
    	return $settings_pages;
    }
    add_filter( 'mb_settings_pages', 'bl_settings_pages' );
    
    function bl_options_meta_boxes( $meta_boxes )
    {
    	$meta_boxes[] = array(
    		'id'             => 'fotoplugins',
    		'title'          => __( 'Fotoplugins Settings', 'fl-builder' ),
    		'settings_pages' => 'bl-options',
    		'fields'         => array(
    			
    			array(
    				'name'    => __( 'Disable Gallery CPT', 'fl-builder' ),
    				'id'      => 'gallery_cpt',
    				'type'    => 'select',
    				'syd'     => 'no',
    				'options' => array(
    					'no'  => 'No',
    					'yes' => 'Yes',
    				),    
    			),
                
    		),
    	);
    
    	return $meta_boxes;
    }
    add_filter( 'rwmb_meta_boxes', 'bl_options_meta_boxes' );

    I am getting really frustrated getting this to work, someone help please

    in reply to: MB Settings #2259
    carassiuscarassius
    Participant

    Anyone able to help me get this thing to work? Hello?

    in reply to: Delete option not working #2134
    carassiuscarassius
    Participant

    details have beens ent

    in reply to: Delete option not working #2131
    carassiuscarassius
    Participant

    I really need to get this fixed, this is in a commercial plugin and I have clients depending on it. So any idea on what could be the cause?

    in reply to: Delete option not working #2113
    carassiuscarassius
    Participant

    None showed up

    in reply to: Help with Sections #2112
    carassiuscarassius
    Participant

    They all have 'columns': 6

    /***************************
    * create contact metaboxes
    ***************************/
    function p52_contact_before_meta_boxes( $meta_boxes ) {
        $prefix = 'p52_contact_';
      
        
        // contact info meta box
        $meta_boxes[] = array(
            'id'       => $prefix . 'contact',
            'title'    => 'Contact Info',
            'pages'    => array('p52-contact'),
            'context'  => 'normal',
            'priority' => 'high',
    
            'fields' => array(            
            
                array(
                    'name'  => 'Company',
                    'id'    => $prefix . 'company',
                    'type'  => 'text',
                    'columns' => 6
                ),
                
                array(
                    'name'  => 'Relationship',
                    'id'    => $prefix . 'relationship',
                    'type'  => 'select',
                    'options' => array(
                        'prospect' => 'Prospect',
                        'lead' => 'Lead',
                        'client' => 'Client',
                        'agency' => 'Agency',
                        'contractor' => 'Contractor',
                        'assitant' => 'Assistant',
                        'supplier' => 'Supplier'
                        ),
                    'placeholder' => 'Choose your relationship',
                    'columns' => 6
                ),
                
                array(
                    'name'  => 'Phone',
                    'id'    => $prefix . 'phone',
                    'type'  => 'text',
                    'columns' => 6
                ),
                
                array(
                    'name'  => 'Email',
                    'id'    => $prefix . 'email',
                    'type'  => 'text',
                    'columns' => 6
                ),
                
                array(
                    'name'  => 'Address',
                    'id'    => $prefix . 'address',
                    'type'  => 'textarea',
                    'columns' => 6
                ),
                
                array(
                    'name'  => 'Postal Address',
                    'id'    => $prefix . 'postal',
                    'type'  => 'textarea',
                    'columns' => 6
                ),
                
                            
            )
        );
    in reply to: Help with Sections #2094
    carassiuscarassius
    Participant

    I was able to fix with adding in some admin css, but that is a work around, not a solution to the problem

    div#p52_contact_contact {
    height: 300px;
    }

    in reply to: MB Settings #2054
    carassiuscarassius
    Participant

    i still cannot get this to work

    in reply to: MB Settings #1944
    carassiuscarassius
    Participant

    Ok, I installed the settings page as per a normal plugin and it failed so it is loading in my plugin, so my fp_add_meta() function is working.

    That means my bl_plugin_page function is not.

    I tried the example code (which by the way is wrong)

    add_filter( 'mb_settings_pages', 'prefix_settings_pages' );
    function prefix_settings_pages( $settings_pages )
    {
    	$settings_pages[] = array(
    		'id'            => 'my-options',
    		'option_name'   => 'my_options',
    		'menu_title'    => __( 'Options', 'textdomain' ),
    		'icon_url'      => 'dashicons-images-alt',
    		'submenu_title' => __( 'Settings', 'textdomain' ), // Note this
    	);
    	$settings_pages[] = array(
    		'id'          => 'my-options-im',
    		'option_name' => 'my_options',
    		'menu_title'  => __( 'Import', 'textdomain' ),
    		'parent'      => 'my-options', // Note this
    	);
    	$settings_pages[] = array(
    		'id'          => 'my-options-ex',
    		'option_name' => 'my_options',
    		'menu_title'  => __( 'Export', 'textdomain' ),
    		'parent'      => 'my-options',
    	);
    	return $settings_pages;
    } ); // why does this end in );?
    

    And still no joy, so clearly something must be wrong??

    in reply to: Media Edit #1742
    carassiuscarassius
    Participant

    resolved

    in reply to: Media Edit #1741
    carassiuscarassius
    Participant

    yeah I have it working the same way (well should be) with get_post_meta and changed to use the rwmb_meta, but I get the same problem using either method, the variable is not echoing

    $images = rwmb_meta( 'sw_gallery_image', 'type=image' );
    foreach ( $images as $image ) {
    $imgID = $image['ID'];
    $url = rwmb_meta( 'sw_link', 'type=url', $imgID );
    echo "<a href=' . $url . '></a>";

    If I do a var_dump($url); I get the metabox value return, but in the link it isnt, any suggestions?

    this was my post_meta $url = get_post_meta($imgID, 'sw_link');

    in reply to: Media Edit #1738
    carassiuscarassius
    Participant

    I have the meta in the attachment post but cannot get the value in the front end?
    Code:

     $prefix = 'sw_';
    
           // media meta box
            $meta_boxes[] = array(
                'id'       => 'href',
                'title'    => 'Link for Horizontal Gallery',
                'pages'    => array('attachment'),
                'context'  => 'normal',
                'priority' => 'high',
    
                'fields' => array(            
    
                    array(
                        'name'  => 'URL',
                        'id'    => $prefix . 'link',
                        'type'  => 'url',
                    ),
    
                )
            );

    But $links = rwmb_meta( 'sw_link', 'type=url' ); doesnt return any value when I do a var_dump?
    That is why I was trying to find that tutorial I thought I had seen before

Viewing 15 posts - 46 through 60 (of 93 total)