Forum Replies Created

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • in reply to: User Workflow Guide Request #6262
    bjoerns
    Member

    Same for me. I cannot even show a tab. What’s working fine for custom post types, doesn’t work with users. I tried to copy code from piklist demos, but this doesn’t help.

    bjoerns
    Member

    @sbruner: As far as I can remember, it occured with the https://www.admincolumns.com/ Plugin and with https://de.wordpress.org/plugins/wp-members/.

    in reply to: [0.9.9.6] Add more problem #5976
    bjoerns
    Member

    @efegue: Your solution hint is very appreciated. Thanks for it. I found another thread from August 2015, where the solution is very similar. The only difference: It uses the unset-function, so that the field gets ignored by the Events Manager-Post Meta-Save-Function:

    add_action('em_event_save_meta_pre', 'prevent_double_serialization_by_em_and_piklist');
    function prevent_double_serialization_by_em_and_piklist($event) {
        unset( $event->event_attributes['field_name_of_the_piklist_add_more_field'] );
    }


    @sbruner
    : I think this topic can be marked as resolved with the exception of the post 5960 from nakanaa above.

    bjoerns
    Member

    @efegue and @Steve: Could it be, that your investigation results are also the reason for my problem as described here?

    in reply to: [0.9.9.6] Add more problem #5865
    bjoerns
    Member

    Thanks for the hint, Steve. But it doesn’t work. I made a 2-minute-screencast, which shows, what’s happening: Youtube.

    in reply to: [0.9.9.6] Add more problem #5848
    bjoerns
    Member

    Hi Donna

    Just the same for me. What’s even more strange: If I use the following group field for standard posts, then it gets wrong serialized, but despite of that its data shows up correctly. If I use the field in a custom post type (for the event custom post type of https://de.wordpress.org/plugins/events-manager/), then its data doesn’t show up.

    <?php
    /*
    Title: Weitere Durchführungstage
    Post Type: event
    Context: side
    Priority: high
    Order: 2
    Meta box: true
    */
    
    piklist('field', array(
        'type' => 'group'
        ,'field' => 'weitere_tage'
        ,'scope' => 'post_meta'
        ,'description' => 'An welchen weiteren Tagen findet dieser Kurs statt?'
        ,'columns' => '12'
        ,'add_more' => true
        ,'fields' => array(
            array(
                'type' => 'datepicker'
                ,'label' => __('Datum')
                ,'scope' => 'post_meta'
                ,'field' => 'weiterer_tag_datum'
                ,'attributes' => array(
                    'class' => 'text'
                )
                ,'options' => array(
                    'dateFormat' => 'dd.mm.yy'
                ,'firstDay' => '1'
                ,'changeYear' => true
                ,'yearRange' => "-0:+5"
                ,'changeMonth' => true
                ,'constrainInput' => true
                ,'monthNamesShort' => [ "Jan", "Feb", "Mär", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez" ]
                ,'dayNamesMin' => [ "So", "Mo", "Di", "Mi", "Do", "Fr", "Sa" ]
                )
                ,'columns' => '6'
            )
            ,array(
                'type' => 'text'
                ,'field' => 'weiterer_tag_beginn'
            ,'scope' => 'post_meta'
                ,'label' => __('Start')
                ,'value' => '08:00'
                ,'columns' => '3'
            )
            ,array(
                'type' => 'text'
                ,'field' => 'weiterer_tag_ende'
            ,'scope' => 'post_meta'
                ,'label' => __('Ende')
                ,'value' => '17:00'
                ,'columns' => '3'
                )
        )
    ));
    bjoerns
    Member

    Hi Steve

    Thank you very much. It works now well. There is only a new bug concerning validation and a very minor bug concerning display of pdf. Both are shown in a very short screencast: https://youtu.be/77JTmiJRwEQ.

    Kind regards
    Björn

    bjoerns
    Member

    Hi Steve

    Thank you for looking into this issue. In my last post I forgot to mention, that my code was only an excerpt of a “bigger” field array. But nevertheless I tried your code, but it doesn’t work neither.

    Instead of many words I made a screencast of the weird things happening: https://youtu.be/U1llFRJAIs8. I hope, you can help me solving this. By the way: I’m using version 0.9.4.29 of piklist in a multisite environment (plugin is activated network wide).

    Kind regards
    Björn

    bjoerns
    Member

    This topic can be closed, because I made a new one here.

    bjoerns
    Member

    Hi Steve

    I tried now without grouping, but then it’s even worse: I created two “Diplom/Zeugnis” (see code above) and in each of them I attached a pdf (see code above with field ‘ausbildung_zeugnis_pdf’) and an image (ausbildung_zeugnis_bild). This worked, but after publishing the two “Diplom/Zeugnis” are gone and I also don’t see in the post_meta-database table any entries.

    Is this also a bug or am I doing things the wrong way?

    Kind regards
    Björn

    bjoerns
    Member

    Hi Steve

    Has the bugs with file upload in group fields been resolved? Because I’m also having very strange things happening when using the following code. For the moment I will try with ungrouping the field.

    Kind regards
    Björn

    array(
    			'type' => 'group'
    			,'field' => 'ausbildung_zeugnis'
    			,'label' => __('Diplom/Zeugnis')
    			,'columns' => '12'
    			,'add_more' => true
    			,'fields' => array(
    				array(
    					'type' => 'text'
    					,'field' => 'ausbildung_zeugnis_bezeichnung'
    					,'label' => __('Bezeichnung')
    					,'columns' => '6'
    					,'help' => __('Wie heisst das Zeugnis? Entspricht normalerweise dem Dateinamen')
    				),
    				array(
    					'type' => 'file'
    					,'field' => 'ausbildung_zeugnis_pdf'
    					,'label' => __('PDF','piklist')
    					,'columns' => '3'
    					,'help' => __('Bitte laden Sie hier das Zeugnis als PDF-Datei hoch')
    					,'options' => array(
    						'modal_title' => __('PDF hinzufügen','piklist')
    						,'button' => __('PDF hinzufügen','piklist')
    					)
    					,'validate' => array(
    						array(
    							'type' => 'limit',
    							'options' => array(
    								'min' => 1,
    								'max' => 1
    							)
    						)
    					)
    				),
    				array(
    					'type' => 'file'
    					,'field' => 'ausbildung_zeugnis_bild'
    					,'label' => __('Titelbild','piklist')
    					,'columns' => '3'
    					,'help' => __('Bitte laden Sie hier ein Titelbild der PDF-Datei hoch')
    					,'options' => array(
    						'modal_title' => __('Bild hinzufügen','piklist')
    						,'button' => __('Bild hinzufügen','piklist')
    					)
    					,'validate' => array(
    						array(
    							'type' => 'limit',
    							'options' => array(
    								'min' => 1,
    								'max' => 1
    							)
    						)
    					)
    				)
    			)
    		),
Viewing 11 posts - 1 through 11 (of 11 total)