Forum Replies Created

Viewing 15 posts - 1 through 15 (of 24 total)
  • Author
    Posts
  • in reply to: Piklist warnings (when using workflow) #9176
    Sander Schat
    Member

    Thanks Steve!

    in reply to: Field not saving NEW value #8606
    Sander Schat
    Member

    Thanks Steve,
    that seems to be the trick.

    But since what version is this then?
    I am pretty confused that this suddenly appears.

    in reply to: Piklist next version ETA and changes? #7824
    Sander Schat
    Member

    yes, i too am starting to feel concerned about the activity from Piklist.
    It is a great product, but the ‘silence’ is making me a bit worried now.

    I hope that ANY sound is given soon.
    IF they cancel it, too bad, but at least we know then

    (gosh, sounds like a relationship almost… “tell me!!! i need to know” )
    🙂

    in reply to: new docs problems #7189
    Sander Schat
    Member

    hooray : )

    Thanks Steve!

    in reply to: new docs problems #7173
    Sander Schat
    Member

    yes agreed.
    It took my about 5 minutes to find some ‘basic’ file settings again:

    Post Type meta-boxes [File Structure]

    This was not intuïtief at all.

    Also the search for ‘file structure’ did not give any links back.

    Hope this gets a bit better structured in the future.

    But as always, keep up the good work
    Still love Piklist

    in reply to: inline html #6543
    Sander Schat
    Member

    yes! thanks!!

    this is a quick copy paste and seems to work:

    piklist('field', array(
    	'type' => 'group'
    	,'label' => __('Address (Un-Grouped)', 'piklist-demo')
    	,'description' => __('An Un-grouped field. Data is saved as individual meta and is searchable.', 'piklist-demo')
    	,'fields' => array(
    
    		array(
    			'type' => 'text'
    			,'field' => 'ungrouped_city'
    			,'label' => __('City', 'piklist-demo')
    			,'columns' => 6
    		)
    		,array(
    			'type' => 'html'
    			,'label' => __('Opleiding', 'piklist-demo')
    			,'value' => "<button>X</button>"
    		)
    
    	)
    	,'on_post_status' => array(
    		'value' => 'lock'
    	)
    ));
    in reply to: [0.9.9.6] Add more problem #6016
    Sander Schat
    Member

    yes, exactly the same problem here! keys where off after ‘deleting’ some items in an add_more group

    And the quick fix from user ndbe seems to work.

    Hooraayy for this sharing ; )

    in reply to: custom users column #4513
    Sander Schat
    Member

    Hi Steve, yes all projects are just running without any problems, so no news for a long time

    Here some code for the user-column:

    
    // add extra column to users
    //
    add_filter( 'manage_users_columns', 'usersColumn' );
    function usersColumn( $columns ) {
    
    	$new = array();
    	foreach ( $columns as $key => $title ) {
    		if ( $key == 'posts' ) // Put the  column before this column
    		{
    			$new['quiz_count'] = 'Aantal lessen';
    		}
    		$new[ $key ] = $title;
    	}
    
    	unset( $new["posts"] );
    
    	return $new;
    
    }
    
    // add value to the extra  vraag post_type column
    //
    add_filter( 'manage_users_custom_column', 'manage_users_custom_fields', 10, 3 );
    function manage_users_custom_fields( $val, $column_name, $user_id ) {
    
    	//$user = get_userdata( $user_id );
    	switch ( $column_name ) {
    
    		case 'quiz_count' :
    
    			$args        = array(
    				'posts_per_page'   => - 1,
    				'offset'           => 0,
    				'category'         => '',
    				'category_name'    => '',
    				'orderby'          => 'date',
    				'order'            => 'DESC',
    				'include'          => '',
    				'exclude'          => '',
    				'meta_key'         => '',
    				'meta_value'       => '',
    				'post_type'        => 'dquiz',
    				'post_mime_type'   => '',
    				'post_parent'      => '',
    				'author'           => $user_id,
    				'post_status'      => 'publish',
    				'suppress_filters' => TRUE
    			);
    			$posts_array = get_posts( $args );
    
    			return count( $posts_array );
    			break;
    		default:
    	}
    
    	return $val;
    }
    
    // Make it sortable
    //
    add_filter( 'manage_users_sortable_columns', 'users_sortable_column' );
    function users_sortable_column( $columns ) {
    
    	$columns['quiz_count'] = 'quiz_count';
    	return $columns;
    }

    It creates the column, and makes it sortable.
    I didnt post the actual ‘ordering’ query. But no need for this here.
    It just didnt show any value, when the “show IDS” was enabled in the helpers-plugin.

    in reply to: add_more in add_more #3102
    Sander Schat
    Member

    found something to get it working!

    in the ‘first group’ i had to add a field as well

    now it saves correctly

    <?php
    /*
      Title: Blokken
      Post Type: oquiz
      Order: 20
    
     */
    
    piklist( 'field', array(
    		'type'        => 'group',
    		'field'       => 'blok',
    		'label'       => 'Blok',
    		'add_more'    => true,
    		'description' => 'De quiz wordt onderverdeeld in aangemaakte blokken',
    		'fields'      => array(
    in reply to: add_more in add_more #3100
    Sander Schat
    Member

    Hi Steve,
    thanks for your reply.
    I am back at the ‘site’ and still have problems with this field.
    (although i had it working with an older version)

    I have updated to latest version today,
    and have this piece of code

    <?php
    /*
      Title: Blokken
      Post Type: oquiz
      Order: 20
    
     */
    
    piklist( 'field', array(
    		'type'        => 'group',
    		'label'       => 'Blok',
    		'add_more'    => true,
    		'description' => 'De quiz wordt onderverdeeld in aangemaakte blokken',
    		'fields'      => array(
    
    			array(
    				'type'     => 'text',
    				'field'    => 'blok_titel',
    				'label'    => 'Blok Titel',
    				'required' => true,
    				'columns'  => 12
    			),
    			array(
    				'type'    => 'textarea',
    				'field'   => 'blok_introtext',
    				'label'   => 'Blok introtext',
    				'columns' => 12
    			),
    			array(
    				'type'    => 'textarea',
    				'field'   => 'blok_outrotext',
    				'label'   => 'Blok outrotext',
    				'columns' => 12
    			),
    			array(
    				'type'     => 'group',
    				'field'    => 'blok_vragen',
    				'add_more' => true,
    				'fields'   => array(
    					array(
    						'type'    => 'select',
    						'field'   => 'vraag',
    						'label'   => 'vraag',
    						'choices' => get_questions(),
    						'columns' => 12
    					)
    				)
    			),
    			array(
    				'type'    => 'file',
    				'field'   => 'blok_image',
    				'label'   => __( 'Image', 'piklist-demo' ),
    				'options' => array(
    					'modal_title' => __( 'Add File(s)', 'piklist-demo' ),
    					'button'      => __( 'Add', 'piklist-demo' )
    				),
    				'columns' => 12
    			)
    
    		)
    	)
    );

    I am not able to save any entry now
    When selecting one option from the dropdown,
    after save, i have ‘0’ back as default

    Any thoughts?
    Suggestions?

    in reply to: post-relate user – post #2095
    Sander Schat
    Member

    not really,
    it is a company-posttype

    so a 1-to-many from the company-type to users.

    not sure if this is possible. Was just checking. Would have been nice.
    But oke if not

    in reply to: 0.9.3.2 #1715
    Sander Schat
    Member

    Thanks Steve!

    in reply to: add extra choice to 'select' #1634
    Sander Schat
    Member

    is it an ‘idea’ to have this as an extra option by default in Piklist?

    I do this with every field just to make it clear to the user,
    there is NO value selected when showing for the first time.

    in reply to: custom setting processing #1301
    Sander Schat
    Member

    yes, got it!

    thanks for the ‘tip’

    in reply to: 3.5 media insert broken with piklist demo turn on #727
    Sander Schat
    Member

    yes, works. Thanks!

Viewing 15 posts - 1 through 15 (of 24 total)