Forum Replies Created

Viewing 15 posts - 1 through 15 (of 35 total)
  • Author
    Posts
  • in reply to: Upload field issue #9450
    shayneol
    Member

    Oh shoot! That was it. I didn’t even notice that. Thanks!!

    in reply to: Cannot upgrade from version 0.9.9.13 #9441
    shayneol
    Member

    Hey Steve,

    Thank you for the response. Unfortunately, this didn’t work for me. I’ve tried these instructions many times with different versions of php, as well as different versions of Piklist. The highest version of Piklist that works is v.0.9.9.17. In none of my testing did I ever get the prompt to update the database.

    Thanks for your help.

    in reply to: Cannot upgrade from version 0.9.9.13 #9433
    shayneol
    Member

    Here is the screenshot. It didn’t upload the first time.

    Attachments:
    You must be logged in to view attached files.
    in reply to: Hide Workflow Tabs For Specific Page #5651
    shayneol
    Member

    🙂 Thanks Steve. That was the final piece. I am using piklist v.0.9.9.7, so piklist_part_process_callback worked. Also, looking at $part_data, I had to change the conditional to match the correct entry of the array. For anyone that might need this, my final code is below. I have two different sets of workflow tabs, one to display only on my homepage (post_id: 5) and the other set to display only on my about page (post_id: 34).

    function my_disable_metabox($part_data, $folder)
    {
      
    
    	// get post ID
    	if ( isset( $_REQUEST['post'] ) ) {
    		$post_id = $_REQUEST['post'];
    	} elseif ( isset( $_REQUEST['post_ID'] ) ) {
    		$post_id = $_REQUEST['post_ID'];
    	} 
    	
    
    	// Display the correct Workflow on the correct page
    	if ( ($post_id != 5) && $part_data['data']['flow'][0] == 'homepage_workflow' )  {
    		return;
    	} else if ( ($post_id != 34) && $part_data['data']['flow'][0] == 'about_workflow' )  {
    		return;
    	}
    
      return $part_data;
      
    }
    add_filter('piklist_part_process_callback','my_disable_metabox', 10, 2);
    

    Thanks Again!

    in reply to: Hide Workflow Tabs For Specific Page #5614
    shayneol
    Member

    @mcmaster,

    Thanks for your help. I noticed that on the “show fields conditioned on taxonomy term?” post that you mentioned (https://piklist.com/support/topic/show-fields-conditioned-on-taxonomy-term/) you didn’t say if you got it to work. I’ve been trying for quite a bit of time, but cannot seem to get it right. Even with the articles that you mentioned and this other one that was posted (https://piklist.com/support/topic/disable-a-metabox/), I haven’t had much luck. I’ve tried the following:

    Workflow Header File

    <?php
    /*
    Flow: Homepage Workflow
    Page: post.php, post-new.php, post-edit.php
    Post Type: page
    Header: true
    Position: title
    Clear: true
    ID: 5
    */
    

    Workflow Tab File

    <?php
    /*
    Title: Intro
    Order: 10
    Flow: Homepage Workflow
    Default: true
    ID: 5
    */
    

    Metabox File

    <?php
    /*
    Title: Intro Section
    Post Type: page
    Order: 10
    Lock: true
    Tab: Intro
    Flow: Homepage Workflow
    */
    
      //Intro Text
      piklist('field', array(
        'type' => 'group'
        ,'field' => 'home_intro_text'
        ,'label' => __('Intro Text', 'piklist-demo')
        ,'list' => false
        ,'description' => __('Please type the introduction text that will be placed at the top of the page.', 'piklist-demo')
        ,'fields' => array(
          array(
            'type' => 'text'
            ,'field' => 'title'
            ,'label' => __('Title', 'piklist-demo')
            ,'columns' => 12
          )
          ,array(
    		'type' => 'editor'
    		,'field' => 'intro_text'
    		,'label' => __('Text', 'piklist-demo')
    		,'options' => array(
    		  'wpautop' => true
    		  ,'media_buttons' => true
    		  ,'shortcode_buttons' => true
    		  ,'teeny' => false
    		  ,'dfw' => false
    		  ,'tinymce' => array(
    			'resize' => false
    			,'wp_autoresize_on' => true
    		  )
    		  ,'quicktags' => true
    		  ,'drag_drop_upload' => true
    		)
    		,'on_post_status' => array(
    		  'value' => 'lock'
    		)
          )
        )
      ));
    
      //Video
      piklist('field', array(
        'type' => 'group'
        ,'field' => 'home_intro_video'
        ,'label' => __('Intro Text', 'piklist-demo')
        ,'list' => false
        ,'description' => __('Homepage Video', 'piklist-demo')
        ,'fields' => array(
          
    	  array(
    		'type' => 'select'
    		,'field' => 'video_type'
    		,'label' => __('Video Type', 'piklist-demo')
    		,'choices' => array(
    		  'youtube' => __('Youtube', 'piklist-demo')
    		  ,'vimeo' => __('Vimeo', 'piklist-demo')
    		)
          )
          ,array(
            'type' => 'text'
            ,'field' => 'video_url'
            ,'label' => __('Video URL', 'piklist-demo')
            ,'columns' => 12
            ,'attributes' => array(
              'placeholder' => 'http://'
            )
          )
    	  
        )
      ));
    
    

    I first started out simple by just trying to hide a metabox using filters before I jumped into removing tabs based on the post_id, but the following code (and multiple variations of it) wouldn’t work.

    Functions.php

    function my_disable_metabox($part_data, $folder)
    {
      if (isset($part_data['title']) && $part_data['title'] == 'Intro Section')
      {
        return;
      }
    
      return $part_data;
    }
    add_filter('piklist_part_add','my_disable_metabox', 10, 2);
    

    If you were able to get yours to work, am I missing something?

    Thanks,
    Shayne

    in reply to: [0.9.9.6] Add more problem #5381
    shayneol
    Member

    Hey Steve,

    I’m glad the video helped. I’m a visual learner so I know videos help me better than text sometimes.

    I will hold off on updating my code until the next version is available. The other tabs on this Post Type have multiple add_more groups and I have different theme files that would need to change, all of which were already updated when I upgraded to Piklist 0.9.9 🙂

    The work around of moving the section that I need delete to the bottom first will work in the meantime.

    Thanks for all of your help!

    in reply to: [0.9.9.6] Add more problem #5375
    shayneol
    Member

    Hello Steve,

    I am having the same issue as ndbe. I have an add_more group with a two text boxes and an editor. If I click the plus button to add multiple groups/sections, save the post, then delete any of the middle sections, I have data issues. I have to actually move the section to delete to the bottom of all of the sections (make it the last section), before deleting it. Please see my screencast here for more details: https://dl.dropboxusercontent.com/u/3844293/deleting_addmore-group.mp4

    I have also upgraded to Piklist v.0.9.9.7

    Also, here is the code that I’m using:

    <?php
    /*
    Post Type: drama
    Order: 10
    Priority: high
    Tab: Teacher Page
    Flow: DW Workflow
    */
    
       piklist('field', array(
        'type' => 'group'
    	,'field' => 'teacher_page'
        ,'label' => 'Teacher Pages'
        ,'template' => 'field'
    	,'description' => 'To add more staff members, click the blue "+" button. Click and drag to rearrange the order'
        ,'add_more' => true
        ,'fields' => array(
    	
          array(
            'type' => 'text'
            ,'field' => 'section_title'
            ,'label' => 'Section Title'
            ,'columns' => 6
          )
    
          ,array(
            'type' => 'text'
            ,'field' => 'section_anchor'
            ,'label' => 'Section Anchor ID'
            ,'columns' => 6
          )
    
    	  ,array(
    			'type' => 'editor'
    			,'field' => 'section_content'
    			,'label' => 'Section Content'
    			,'options' => array(
    			  'wpautop' => true
    			  ,'media_buttons' => true
    			  ,'shortcode_buttons' => true
    			  ,'teeny' => false
    			  ,'dfw' => false
    			  ,'tinymce' => array(
    				'resize' => false
    				,'wp_autoresize_on' => true
    			  )
    			  ,'quicktags' => true
    			  ,'drag_drop_upload' => true
    			)
    	  )
    
    	  
        ) // end group: teacher_page
    
      )); // end field declaration
    

    Thanks

    in reply to: Fields cannot be updated after saving post #5257
    shayneol
    Member

    Hey Steve,

    Even though I was already working with a fresh copy of WordPress, I had to delete everything and start with a new copy to get my custom fields to work. I’m not sure what was going on or why they weren’t working before…I guess you can close this ticket.

    in reply to: Fields cannot be updated after saving post #5197
    shayneol
    Member

    Hey Steve,

    I’ve tried the following:
    ,'field' => 'post_content_02'
    ,'field' => 'text_02'
    ,'field' => 'upload_media_02'

    I also removed ,'scope' => 'post_meta' as you mentioned. I’m still having the same issue. Also note that these fields are on an actual page not a post. My apologies for typing “post” in the initial description. I haven’t tried testing this issue on a blog entry or custom post type yet, only a main website page.

    Thanks

    in reply to: Fields cannot be updated after saving post #5195
    shayneol
    Member

    Hmmm…I just tried all of the fields under the “Common” tab in the built-in demo. They all work correctly.

    in reply to: Cannot output inline styles within editors #4790
    shayneol
    Member

    V.0.9.9.5 seems to resolve this issue. Thanks!!

    I do have a visual issue now. The description text for my groups now show below the group instead of to the left (below the group label). This is a minor issue, but I still would like to report it.

      piklist('field', array(
        'type' => 'group'
        ,'field' => 'message_item'
        ,'add_more' => true
        ,'label' => 'Add Message'
        ,'description' => 'Add messages for this series. You may add as many messages as needed by clicking the blue "+" button.  To add a completely new series, click on the "Add New" button at the top of the page.'
        ,'fields' => array(
          array(
            'type' => 'text'
            ,'field' => 'title'
            ,'label' => 'Message Title'
            ,'template' => 'field'
            ,'columns' => 12
    		,'attributes' => array(
    		  'class' => 'large-text'
    		  ,'placeholder' => 'Message Title'
    		)
          )
          ,array(
    		'type' => 'datepicker'
    		,'field' => 'date'
    		,'label' => 'Date'
            ,'template' => 'field'
    		,'options' => array(
    			'dateFormat' => 'yy/mm/dd'
    		)
    		,'attributes' => array(
    			'size' => 12
    		  	,'class' => 'large-text'
    			,'placeholder' => 'Date'
    		)
          )
    
          ,array(
            'type' => 'text'
            ,'field' => 'speaker'
            ,'label' => 'Speaker'
            ,'template' => 'field'
            ,'columns' => 12
    		,'attributes' => array(
    		  'class' => 'large-text'
    		  ,'placeholder' => 'Speaker'
    		)
          )
    	  
          ,array(
            'type' => 'text'
            ,'field' => 'video_url'
            ,'label' => 'Youtube URL'
            ,'template' => 'field'
            ,'columns' => 12
    		,'attributes' => array(
    		  'class' => 'large-text'
    		  ,'placeholder' => 'Youtube URL'
    		)
          )
    
        )
      ));
    
      
    ?>
    
    Attachments:
    You must be logged in to view attached files.
    in reply to: Cannot output inline styles within editors #4768
    shayneol
    Member

    Hey Steve,
    Would you be able to give an ETA on when this next version will be released?

    in reply to: Cannot output inline styles within editors #4730
    shayneol
    Member

    Hello Steve,

    It looks like the information in database is incorrect as well, with a slight difference. When inspecting the code from Safari, there are additional double-quotes that are not showing up in the database (though both views are incorrect).

    Attachments:
    You must be logged in to view attached files.
    in reply to: Conditional Attached to Group Giving Error Message (v0.9.9.3) #4641
    shayneol
    Member

    V.9.9.4 seems to have resolved this issue. Thanks guys again for your hard work.

    in reply to: Conditional Attached to Group Giving Error Message (v0.9.9.3) #4616
    shayneol
    Member

    Awesome. Thanks Steve!

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