Forum Replies Created

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • in reply to: WordPress Helper Update Causes White Screen of Death #2279
    zanedickens
    Member

    Hi Steve,

    Thanks I had a feeling that was the case – I managed to get a copy from a co-developer on the project. But thanks for the tip going forward and the quick response.

    Regards,
    Z

    in reply to: Display Attached Files without Using Field Name #2145
    zanedickens
    Member

    Would be pretty sweet if when locking fields Piklist displayed the linked filename instead of the Attachment ID – something for a future build? 🙂

    in reply to: Display Attached Files without Using Field Name #2144
    zanedickens
    Member

    Hi Steve,

    I’m not sure if I am missing something (working through the night so hardly sharp at the moment). I get how I can use that to get the metabox to be on all post types. I was presently using a list in the comment area to do the same, although not specifying a post type and setting it to side had my scorecard appear on all as well.

    But the problem I’m having is getting the files to display without using Post Meta. Post Meta seems to necessitate the naming of the Meta key, while going for attachments sidesteps it only that it doesn’t pull / display anything at all.

    Funnily enough I used something similar to the pikilist_add_part example to show the number of posts per post type.

    I’ll keep reading and see if I can work out how to apply the filter to my use case.

    Thanks again,
    Z

    in reply to: Bugs in 0.9.4.0 #2078
    zanedickens
    Member

    @kevin – Thanks! works perfectly now 🙂

    in reply to: Bugs in 0.9.4.0 #2044
    zanedickens
    Member

    Another bug I’ve noticed is that Conditions (using a radio button) hide all fields and then ignore the user selection. I’ve tested on my live site which has 9.3.6, and it works as expected there.

    My code below if it helps:

    <?php
    /*
    Setting:mfm_advert_settings
    */
     piklist('field', array(
        'type' => 'radio'
        ,'field' => 'header_format'
        ,'value' => '1'
        ,'label' => 'Select a Header Ad Format'
        ,'attributes' => array(
          'class' => 'text'
        )
        ,'choices' => array(
          '1' => '3 Small banners'
          ,'2' => '1 Medium + 1 Small'
          ,'3' => '1 Large'
        )
    ));
    
    // SMALL ADVERTS
    
    piklist('field', array(
        'type' => 'text'
        ,'field' => 'small_ad_1'
        ,'description' => __('<strong>Small Advert 1 Image URL</strong><p>Link to the first image file on MFM, e.g. http://mfm.co.za/wp-content/uploads/2014/07/Logo.png</p>')
        ,'columns' => '8'
        ,'attributes' => array(
       'class' => 'text'
        )
        ,'conditions' => array(
          array(
            'field' => 'header_format'
            ,'value' => '1'
            ,'reset' => 'false'
          )
        )
      ));
    
    piklist('field', array(
         'type' => 'text'
         ,'field' => 'small_ad_1_url'
         ,'description' => __('<strong>Small Advert 1 Destination URL</strong><p>Link to the first advert destination, not on MFM, e.g. http://google.co.za</p>')
         ,'columns' => '8'
         ,'attributes' => array(
           'class' => 'text'
         )
         ,'conditions' => array(
          array(
            'field' => 'header_format'
            ,'value' => '1'
            ,'reset' => 'false'
          )
        )
     ));
    
    piklist('field', array(
        'type' => 'text'
        ,'field' => 'small_ad_2'
        ,'description' => __('<strong>Small Advert 2 Image URL</strong>')
        ,'columns' => '8'
        ,'attributes' => array(
            'class' => 'text'
        )
         ,'conditions' => array(
          array(
            'field' => 'header_format'
            ,'value' => '1'
            ,'reset' => 'false'
          )
        )
      ));
    
    piklist('field', array(
        'type' => 'text'
        ,'field' => 'small_ad_2_url'
        ,'description' => __('<strong>Small Advert 2 Destination URL</strong>')
        ,'columns' => '8'
        ,'attributes' => array(
            'class' => 'text'
        )
         ,'conditions' => array(
          array(
            'field' => 'header_format'
            ,'value' => '1'
            ,'reset' => 'false'
          )
        )
     ));
    
    piklist('field', array(
        'type' => 'text'
        ,'field' => 'small_ad_3'
        ,'description' => __('<strong>Small Advert 3 Image URL</strong>')
        ,'columns' => '8'
        ,'attributes' => array(
            'class' => 'text'
        )
         ,'conditions' => array(
          array(
            'field' => 'header_format'
            ,'value' => '1'
            ,'reset' => 'false'
          )
        )     
      ));
    
    piklist('field', array(
        'type' => 'text'
        ,'field' => 'small_ad_3_url'
        ,'description' => __('<strong>Small Advert 3 Destination URL</strong>')
        ,'columns' => '8'
        ,'attributes' => array(
            'class' => 'text'
        )
         ,'conditions' => array(
          array(
            'field' => 'header_format'
            ,'value' => '1'
            ,'reset' => 'false'
          )
        )     
      ));
    
    // MEDIUM ADVERTS
    
    piklist('field', array(
        'type' => 'text'
        ,'field' => 'medium_ad_1'
        ,'description' => __('<strong>Medium Advert 1 Image [435(w) x 60(h)px] URL</strong>')
        ,'columns' => '8'
        ,'attributes' => array(
            'class' => 'text'
        )
         ,'conditions' => array(
          array(
            'field' => 'header_format'
            ,'value' => '2'
            ,'reset' => 'false'
          )
        )     
      ));
    
    piklist('field', array(
        'type' => 'text'
        ,'field' => 'medium_ad_1_url'
        ,'description' => __('<strong>Medium Advert 1 Destination URL</strong>')
        ,'columns' => '8'  
        ,'attributes' => array(
            'class' => 'text'
        )
         ,'conditions' => array(
          array(
            'field' => 'header_format'
            ,'value' => '2'
            ,'reset' => 'false'
          )
        )     
      ));
    
    piklist('field', array(
        'type' => 'text'
        ,'field' => 'medium_ad_2'
        ,'description' => __('<strong>Medium Advert 2 Image [205(w) x 60(h)px] URL</strong>')
        ,'columns' => '8' 
        ,'attributes' => array(
            'class' => 'text'
        )
         ,'conditions' => array(
          array(
            'field' => 'header_format'
            ,'value' => '2'
            ,'reset' => 'false'
          )
        )     
      ));
    
    piklist('field', array(
        'type' => 'text'
        ,'field' => 'medium_ad_2_url'
        ,'description' => __('<strong>Medium Advert 2 Destination URL</strong>')
        ,'columns' => '8'
        ,'attributes' => array(
            'class' => 'text'
        )
         ,'conditions' => array(
          array(
            'field' => 'header_format'
            ,'value' => '2'
            ,'reset' => 'false'
          )
        )     
      ));
    
    // LARGE ADVERT
    
    piklist('field', array(
        'type' => 'text'
        ,'field' => 'large_ad'
        ,'description' => __('<strong>Large Advert Image [665(w) x 60(h)px] URL</strong>')
        ,'columns' => '8'
        ,'attributes' => array(
            'class' => 'text'
        )
         ,'conditions' => array(
          array(
            'field' => 'header_format'
            ,'value' => '3'
            ,'reset' => 'false'
          )
        )     
      ));
    
    piklist('field', array(
        'type' => 'text'
        ,'field' => 'large_ad_url'
        ,'description' => __('<strong>Large Advert Destination URL</strong>')
        ,'columns' => '8'
        ,'attributes' => array(
            'class' => 'text'
        )
         ,'conditions' => array(
          array(
            'field' => 'header_format'
            ,'value' => '3'
            ,'reset' => 'false'
          )
        )     
      ));
    ?>

    Thank you for all your hard work with the new version – loving what I see in the Docs.

    in reply to: Bug – Fields Duplicating on Save (Urgent) #2038
    zanedickens
    Member

    Indeed. Problem solved 🙂 I now watch that kind of thing like a hawk, running searches on field names just to be sure.

    in reply to: Have a Metabox take inputs #2037
    zanedickens
    Member

    Thanks Steve! I’ll give it a go and report back. I’m now using Piklist on two projects and seeing it as an essential part of any future ones. Thank you for all the time and effort you have put in this.

    in reply to: Bug – Fields Duplicating on Save (Urgent) #2017
    zanedickens
    Member

    Found the issue. Three fields with the same name. Copy and paste error.

    *Zane gets more coffee*

    in reply to: Custom Post Statuses Not Working Anymore #2014
    zanedickens
    Member

    Thanks Steve! That was driving me nuts – happy to have found a bug – that will be my first 🙂 Now if only there were badges for that kind of thing 😉

    Just a note – for some reason I didn’t get an email notification of your second reply? Got the first one but not the second one. Either way thanks again.

    in reply to: Custom Post Statuses Not Working Anymore #1944
    zanedickens
    Member

    Hi I’m going to post the full code now – apologies for the length. It has to be something in here, as all plugins off, changed themes etc none of that made a difference. It was working before but now not.

    
    
    add_filter('piklist_post_types', 'awards_post_types');
    function awards_post_types($post_types)
    {
      $post_types = array_merge($post_types, array(
        'company_skills' => array(
          'labels' => piklist('post_type_labels', 'Skills Development Award Entry')
          ,'public' => true
          ,'has_archive' => true
          ,'rewrite' => array(
            'slug' => 'companyskills'
          )
          ,'edit_columns' => array(
            'title' => __('Skills Development Award Entry')
            ,'author' => __('Entered by')
          )
          ,'post_states' => true
          ,'status' => array(
            'draft' => array(
              'label' => 'Completed'
              ,'public' => true
            )
            ,'locked' => array(
              'label' => 'Locked'
              ,'public' => true
            )
            ,'scored' => array(
              'label' => 'Scored'
              ,'public' => true
            )
            ,'audited' => array(
              'label' => 'Audited'
              ,'public' => true
            )
          )
          ,'hide_post_row_actions' => array(
            'quick-edit'
            ,'view'
            ,'open-in-visual-editor'
          )
        )                                               // Community Award Entry
        ,'company_community' => array(
          'labels' => piklist('post_type_labels', 'Community Award Entry')
          ,'public' => true
          ,'has_archive' => true
          ,'rewrite' => array(
            'slug' => 'communityaward'
          )
         ,'edit_columns' => array(
            'title' => __('Community Award Entry')
            ,'author' => __('Entered by')
            ,'status' => __('Entry Status')
          )
          ,'post_states' => true
          ,'status' => array(
            'draft' => array(
              'label' => 'Completed'
              ,'public' => true
            )
            ,'locked' => array(
              'label' => 'Locked'
              ,'public' => true
            )
            ,'scored' => array(
              'label' => 'Scored'
              ,'public' => true
            )
            ,'audited' => array(
              'label' => 'Audited'
              ,'public' => true
            )
          )
            ,'hide_post_row_actions' => array(
            'quick-edit'
            ,'view'
            ,'open-in-visual-editor'
          )
        )                                                                   // Innovation Award Entry
        ,'company_innovation' => array(
          'labels' => piklist('post_type_labels', 'World Design Capital 2014 Innovation Award Entry')
          ,'public' => true
          ,'has_archive' => true
          ,'rewrite' => array(
            'slug' => 'communityinnovation'
          )
         ,'edit_columns' => array(
            'title' => __('Innovation Award Entry')
            ,'author' => __('Entered by')
            ,'status' => __('Entry Status')
          )
          ,'post_states' => true
          ,'status' => array(
            'draft' => array(
              'label' => 'Completed'
              ,'public' => true
            )
            ,'locked' => array(
              'label' => 'Locked'
              ,'public' => true
            )
            ,'scored' => array(
              'label' => 'Scored'
              ,'public' => true
            )
            ,'audited' => array(
              'label' => 'Audited'
              ,'public' => true
            )
          )         
          ,'hide_post_row_actions' => array(
            'quick-edit'
            ,'view'
            ,'open-in-visual-editor'
          )
            
         ,'status' => array(
            'draft' => array(
              'label' => 'Completed'
              ,'public' => true
            )
            ,'locked' => array(
              'label' => 'Locked'
              ,'public' => true
            )
            ,'scored' => array(
              'label' => 'Scored'
              ,'public' => true
            )
            ,'audited' => array(
              'label' => 'Audited'
              ,'public' => true
            )
          )
        )                                               // Job Creation Award Entry
        ,'company_jobs' => array(
          'labels' => piklist('post_type_labels', 'Job Creation Award Entry')
          ,'public' => true
          ,'has_archive' => true
          ,'rewrite' => array(
                                'slug' => 'communityjobs'
                                )
          ,'edit_columns' => array(
                                    'title' => __('Job Creation Award Entry')
                                    ,'author' => __('Entered by')
                                    ,'status' => __('Entry Status')
          )
          ,'post_states' => true
          ,'status' => array(
            'draft' => array(
              'label' => 'Completed'
              ,'public' => true
            )
            ,'locked' => array(
              'label' => 'Locked'
              ,'public' => true
            )
            ,'scored' => array(
              'label' => 'Scored'
              ,'public' => true
            )
            ,'audited' => array(
              'label' => 'Audited'
              ,'public' => true
            )
          )
          ,'hide_post_row_actions' => array(
                                    'quick-edit'
                                    ,'view'
                                    ,'open-in-visual-editor'
          )
        )                                               // Best Outsourced Contact Centre Award Entry
        ,'company_outsourced' => array(
          'labels' => piklist('post_type_labels', 'Best Outsourced Contact Centre Award Entry')
          ,'public' => true
          ,'has_archive' => true
          ,'rewrite' => array(
            'slug' => 'communityoutsourced'
          )
          ,'edit_columns' => array(
            'title' => __('Best Outsourced Contact Centre Award Entry')
            ,'author' => __('Entered by')
            ,'status' => __('Entry Status')
          )
          ,'post_states' => true
          ,'status' => array(
            'draft' => array(
              'label' => 'Completed'
              ,'public' => true
            )
            ,'locked' => array(
              'label' => 'Locked'
              ,'public' => true
            )
            ,'scored' => array(
              'label' => 'Scored'
              ,'public' => true
            )
            ,'audited' => array(
              'label' => 'Audited'
              ,'public' => true
            )
          )
          ,'hide_post_row_actions' => array(
            'quick-edit'
            ,'view'
            ,'open-in-visual-editor'
          )
        )                                               // Best Captive Contact Centre Award Entry
        ,'company_captive' => array(
          'labels' => piklist('post_type_labels', 'Best Captive Contact Centre Award Entry')
          ,'public' => true
          ,'has_archive' => true
          ,'rewrite' => array(
            'slug' => 'communitycaptive'
          )
          ,'edit_columns' => array(
            'title' => __('Best Captive Contact Centre Award Entry')
            ,'author' => __('Entered by')
            ,'status' => __('Entry Status')
          )
          ,'post_states' => true
          ,'status' => array(
            'draft' => array(
              'label' => 'Completed'
              ,'public' => true
            )
            ,'locked' => array(
              'label' => 'Locked'
              ,'public' => true
            )
            ,'scored' => array(
              'label' => 'Scored'
              ,'public' => true
            )
            ,'audited' => array(
              'label' => 'Audited'
              ,'public' => true
            )
          )
          ,'hide_post_row_actions' => array(
            'quick-edit'
            ,'view'
            ,'open-in-visual-editor'
          )
        )                                               // Best External Support Services
        ,'company_external' => array(
          'labels' => piklist('post_type_labels', 'Best External Support Services')
          ,'public' => true
          ,'has_archive' => true
          ,'rewrite' => array(
            'slug' => 'communityexternal'
          )
          ,'edit_columns' => array(
            'title' => __('Best External Support Services')
            ,'author' => __('Entered by')
            ,'status' => __('Entry Status')
          )
          ,'post_states' => true
          ,'status' => array(
            'draft' => array(
              'label' => 'Completed'
              ,'public' => true
            )
            ,'locked' => array(
              'label' => 'Locked'
              ,'public' => true
            )
            ,'scored' => array(
              'label' => 'Scored'
              ,'public' => true
            )
            ,'audited' => array(
              'label' => 'Audited'
              ,'public' => true
            )
          )
          ,'hide_post_row_actions' => array(
            'quick-edit'
            ,'view'
            ,'open-in-visual-editor'
          )
        )                                                   // Wellness in the Workplace Award 9/9
         ,'company_support' => array(
          'labels' => piklist('post_type_labels', 'Support Services Award Entry')
          ,'public' => true
          ,'has_archive' => true
          ,'rewrite' => array(
            'slug' => 'communitysupport'
          )
          ,'edit_columns' => array(
            'title' => __('Support Services Award Entry')
            ,'author' => __('Entered by')
            ,'status' => __('Entry Status')
          )
          ,'post_states' => true
          ,'status' => array(
            'draft' => array(
              'label' => 'Completed'
              ,'public' => true
            )
            ,'locked' => array(
              'label' => 'Locked'
              ,'public' => true
            )
            ,'scored' => array(
              'label' => 'Scored'
              ,'public' => true
            )
            ,'audited' => array(
              'label' => 'Audited'
              ,'public' => true
            )
          )
          ,'hide_post_row_actions' => array(
            'quick-edit'
            ,'view'
            ,'open-in-visual-editor'
          )
        )                                                   // Wellness in the Workplace Award 9/9
        ,'company_wellness' => array(
          'labels' => piklist('post_type_labels', 'Wellness in the Workplace Award Entry')
          ,'public' => true
          ,'has_archive' => true
          ,'rewrite' => array(
            'slug' => 'communitywellness'
          )
          ,'edit_columns' => array(
            'title' => __('Wellness in the Workplace Award Entry')
            ,'author' => __('Entered by')
            ,'status' => __('Entry Status')
          )
          ,'post_states' => true
          ,'status' => array(
            'draft' => array(
              'label' => 'Completed'
              ,'public' => true
            )
            ,'locked' => array(
              'label' => 'Locked'
              ,'public' => true
            )
            ,'scored' => array(
              'label' => 'Scored'
              ,'public' => true
            )
            ,'audited' => array(
              'label' => 'Audited'
              ,'public' => true
            )
          )
          ,'hide_post_row_actions' => array(
            'quick-edit'
            ,'view'
            ,'open-in-visual-editor'
          )
        )                                               // Manager of the Year Entry 1/4
        ,'individual_manager' => array(
          'labels' => piklist('post_type_labels', 'Manager of the Year Entry')
          ,'public' => true
          ,'has_archive' => true
          ,'rewrite' => array(
            'slug' => 'individual-manager'
          )
          ,'edit_columns' => array(
            'title' => __('Manager of the Year Entry')
            ,'author' => __('Entered by')
            ,'status' => __('Entry Status')
          )
          ,'post_states' => true
          ,'status' => array(
            'draft' => array(
              'label' => 'Completed'
              ,'public' => true
            )
            ,'locked' => array(
              'label' => 'Locked'
              ,'public' => true
            )
            ,'scored' => array(
              'label' => 'Scored'
              ,'public' => true
            )
            ,'audited' => array(
              'label' => 'Audited'
              ,'public' => true
            )
          )
          ,'hide_post_row_actions' => array(
            'quick-edit'
            ,'view'
            ,'open-in-visual-editor'
          )
        )                                               // Supervisor / Team Leader of the Year Entry 2/4
        ,'individualsupervisor' => array(
          'labels' => piklist('post_type_labels', 'Supervisor / Team Leader of the Year Entry')
          ,'public' => true
          ,'has_archive' => true
          ,'rewrite' => array(
            'slug' => 'individual-supervisor'
          )
          ,'edit_columns' => array(
            'title' => __('Supervisor / Team Leader of the Year Entry')
            ,'author' => __('Entered by')
            ,'status' => __('Entry Status')
          )
          ,'post_states' => true
          ,'status' => array(
            'draft' => array(
              'label' => 'Completed'
              ,'public' => true
            )
            ,'locked' => array(
              'label' => 'Locked'
              ,'public' => true
            )
            ,'scored' => array(
              'label' => 'Scored'
              ,'public' => true
            )
            ,'audited' => array(
              'label' => 'Audited'
              ,'public' => true
            )
          )
          ,'hide_post_row_actions' => array(
            'quick-edit'
            ,'view'
            ,'open-in-visual-editor'
          )
        )                                               // Agent / Customer Service Representative Award Entry 3/4
        ,'individual_agent' => array(
          'labels' => piklist('post_type_labels', 'Agent / Customer Service Representative Award Entry')
          ,'public' => true
          ,'has_archive' => true
          ,'rewrite' => array(
            'slug' => 'individual-agent'
          )
          ,'edit_columns' => array(
            'title' => __('Agent / Customer Service Representative Award Entry')
            ,'author' => __('Entered by')
            ,'status' => __('Entry Status')
          )
          ,'post_states' => true
          ,'status' => array(
            'draft' => array(
              'label' => 'Completed'
              ,'public' => true
            )
            ,'locked' => array(
              'label' => 'Locked'
              ,'public' => true
            )
            ,'scored' => array(
              'label' => 'Scored'
              ,'public' => true
            )
            ,'audited' => array(
              'label' => 'Audited'
              ,'public' => true
            )
          )
          ,'hide_post_row_actions' => array(
            'quick-edit'
            ,'view'
            ,'open-in-visual-editor'
          )
        )                                               // Support Services Award Entry 4/4
        ,'individual_support' => array(
          'labels' => piklist('post_type_labels', 'Support Services Individual Award Entry')
          ,'public' => true
          ,'has_archive' => true
          ,'rewrite' => array(
            'slug' => 'individual-support'
          )
          ,'edit_columns' => array(
            'title' => __('Support Services Individual Award Entry')
            ,'author' => __('Entered by')
            ,'status' => __('Entry Status')
          )
          ,'post_states' => true
          ,'status' => array(
            'draft' => array(
              'label' => 'Completed'
              ,'public' => true
            )
            ,'locked' => array(
              'label' => 'Locked'
              ,'public' => true
            )
            ,'scored' => array(
              'label' => 'Scored'
              ,'public' => true
            )
            ,'audited' => array(
              'label' => 'Audited'
              ,'public' => true
            )
          )
          ,'hide_post_row_actions' => array(
            'quick-edit'
            ,'view'
            ,'open-in-visual-editor'
          )
        )
      ));
     
      return $post_types;
    }

    Thanks in advance 🙂

    in reply to: Custom Post Statuses Not Working Anymore #1943
    zanedickens
    Member

    Thanks Steve – at least I can hunt elsewhere now 🙂 Is the issue most likely then in my merged array or some sort of plugin conflict?

    1. The posts are created and everything there works (although occasionally I have a doubling of field boxes)
    2. I’ve tried disabling all but piklist and my own but no luck in isolating further

    in reply to: Display the_content in a metabox #1926
    zanedickens
    Member

    Hi Kattagami,

    I need to do the same thing – how do you actually put that little bit of code into a Metabox?

    *Learning Piklist and PHP as I go on this project so please excuse any glaring ignorance on my part.

    Thanks in advance!

Viewing 12 posts - 1 through 12 (of 12 total)