Forum Replies Created

Viewing 15 posts - 91 through 105 (of 113 total)
  • Author
    Posts
  • in reply to: Piklist 0.8.0 Beta 2 – Issues/Fixes #951
    Marcus
    Member

    Couple of really short questions.
    Multiple conditions, can I use them? And if so, how? 🙂

    And conditions on the new upload field, didn’t work when I tried it.:

    
        ,'conditions' => array(
          array(
          'field' => 'theme-select'
          ,'value' => 'sidebar_main'
          )
        )
    

    Is it me? Thanks guys.

    Marcus

    in reply to: Piklist 0.8.0 Beta 2 – Issues/Fixes #948
    Marcus
    Member

    More bugs:
    If you use Firefox with the add more fields, they will not allow you to fill in any data. They are uneditable.
    Tried in chrome, and no problems.

    Also, the time picker doesn’t work in either firefox or chrome.

    Using WP 3.5.2

    Marcus

    in reply to: Upload field #945
    Marcus
    Member

    Nice work Steve.

    Can’t wait to get back to my laptop and start coding.

    Hope people start posting more experiences.

    Marcus

    in reply to: Upload field #943
    Marcus
    Member

    Can’t wait, I am back east in TO this week, so Steve, you only have 30 minutes before wednesday is over.

    Marcus

    in reply to: Upload field #941
    Marcus
    Member

    Kevin, no pressure, no pressure, but Wednesday has four hours left. <grin>

    I’m only slightly jonesing for the new release.
    Can’t wait big guy, plan on implementing it, oh, I don’t know, 3 seconds after I unzip it.

    Marcus

    in reply to: Upload field #939
    Marcus
    Member

    Hehehe, why yes, yes it does.

    When will it be ready?

    Now? yesterday? Or the dreaded soon. 🙁

    in reply to: Accessing attachment data, with piklist meta box inside. #924
    Marcus
    Member

    Ok, Kevin, I hope you can help.

    I’m now trying to add a slideshow options meta box, to pages.

    Pretty simple. But right now, I’m not sure if its me, or its a bug.

    I’ve followed your old example pretty closely:
    (here’s my slideshow images meta box)

    
    <?php
    /*
    Title: Select Slideshow Images <span class="piklist-title-right">Choose Below</span>
    Post Type: page
    Order: 110
    Priority: default
    Context: normal
    Collapse: false
    */
    
      piklist('field', array(
        'type' => 'text'
        ,'field' => 'post_status'
        ,'scope' => 'slideshow_image_post'
        ,'value' => $post->post_status
      ));
     
      piklist('field', array(
        'type' => 'textarea'
        ,'field' => 'post_excerpt'
        ,'scope' => 'slideshow_image_post'
        ,'label' => 'Attachment Notes'
        ,'attributes' => array(
          'class' => 'large-text'
        )
      ));
    
      piklist('field', array(
        'type' => 'file'
        ,'scope' => 'post'
        ,'field' => 'slideshow_image_post'
        ,'label' => 'Select Images for Slideshow'
        ,'description' => 'Please select the images you would like'
        ,'add_more' => true
       ));
    
      $args = array( 
        'post_type' => 'attachment' 
        ,'numberposts' => -1
        ,'post_parent' => $post->ID 
        ,'post_status' => 'all'
      ); 
    
      
      $attachments = get_posts( $args );
      if ($attachments)
      {
        global $wp_post_statuses;
        remove_all_filters('get_the_excerpt'); // Since we're using the_excerpt for notes, we need to keep it clean.
    
        foreach ( $attachments as $post )
        { 
          setup_postdata($post); ?>
    
          <div id="pik_post_attachment_<?php echo $post->ID; ?>" class="piklist-field-container">
            <div class="piklist-label-container">
              <!-- Edited by Marcus - Changed attachments > post -->
              <?php echo wp_get_attachment_link( $post->ID, 'thumbnail', false, true ); ?>     
            </div>
            <div class="piklist-field">
              <?php printf( __('%1$sOrder Status:%2$s %3$s','piklist'),'<strong>','</strong>',$wp_post_statuses[$post->post_status]->label); ?>
              <?php the_excerpt(); ?>
            </div>
          </div>
    <?php
        }
    
      }
    
    ?>
    

    Whenever I select a file, it doesn’t upload.

    Am I missing something? There is only one file here, under meta-boxes folder in parts.

    Marcus

    in reply to: Accessing attachment data, with piklist meta box inside. #922
    Marcus
    Member

    Ok, that helps and is getting me on the right track. Thanks for that.

    It’s helped another question come to the top.

    I added in conditions on that meta box, so that one of the fields is a select, and the next one is conditional based on several responses.

    Is this currently possible?

    By using something like:

    
       ,'conditions' => array(
          array(
          'field' => 'theme-select'
          ,'value' => 'sidebar_main'
          ),
          array(
          'field' => 'theme-select'
          ,'value' => 'sidebar_second'
          ),
          array(
          'field' => 'theme-select'
          ,'value' => 'sidebar_third'
          )
        )
       ));
    

    Or is it only useful for one condition?

    Thanks Kevin.

    Marcus

    in reply to: Problem in WP 3.5.2 – Media Library #919
    Marcus
    Member

    Kevin would love too.

    I take it you guys have my contact info in your admin.

    Please send me an email and I’ll send you my skype.

    Marcus

    in reply to: Problem in WP 3.5.2 – Media Library #917
    Marcus
    Member

    By the way, Steve, the error when editing a media attachment is now gone. 🙂

    Marcus

    in reply to: Problem in WP 3.5.2 – Media Library #916
    Marcus
    Member

    Sorry buddy, I gotta leave it up to the pro.

    I just tried to create a new taxonomy and the errors that came out were amazing.

    I lost count after the wordpress function errors showed up.

    Sorry to say, I’d love to help on this one, but I think the demos are best left to the professional.

    Hope you manage to find them all. Their nasty little critters. 🙂

    Marcus

    in reply to: Problem in WP 3.5.2 – Media Library #915
    Marcus
    Member

    Also: (just tried to activate my old piklist meta-boxes, produced errors)

    (IN)

    /piklist/includes/class-piklist/cpt.php

    Change line 457:
    (FROM)
    $textdomain = piklist_add_on::$available_add_ons[$add_on]['TextDomain'];

    (TO)
    $textdomain = isset(piklist_add_on::$available_add_ons[$add_on]['TextDomain'])?piklist_add_on::$available_add_ons[$add_on]['TextDomain']:false; // Edited

    Hope it helps someone.

    Marcus

    in reply to: Problem in WP 3.5.2 – Media Library #914
    Marcus
    Member

    Kevin, I tried a completely fast hack on all the errors, and almost have it working properly (all except for the list tables) and add new content type, under advanced labels I’m not sure is working but everything else seems ok.

    Also, since my local version is running on windows, there was a pathing issue in class-piklist.php in includes.

    Here’s the fixed I made. Works great in 3.5.2 now, so take your time.

    Marcus

    Piklist Settings Page Error:

    (IN)

    /piklist/includes/class-piklist-workflow.php

    Change line 200:
    (FROM)
    && (!$post_type || ($post_type && (($post && $typenow == $post_type) || (!$post && $_REQUEST['post_type'] == $post_type))))

    (TO)
    && (!$post_type || ($post_type && (($post && $typenow == $post_type) || (!$post && isset($_REQUEST['post_type']) && $_REQUEST['post_type'] == $post_type)))) // Edited

    Windows Path Error:

    (IN)

    /piklist/includes/class-piklist.php

    Change lines 136-137:
    (FROM)

        self::$paths[$type] = $path;
        self::$urls[$type] = plugins_url() . substr($path, strrpos($path, '/'));

    (TO)

        self::$paths[$type] = $path;
        $path = str_replace(chr(92), '/', $path); // Edited (windows path error)
        self::$urls[$type] = plugins_url() . substr($path, strrpos($path, '/'));

    Misc Errors:

    (IN)

    /piklist/includes/class-piklist-form.php

    Change line 767:
    (FROM)
    else if ($wp_taxonomies[$field['field']]->object_type[0] == 'user')

    (TO)
    else if (isset($wp_taxonomies[$field['field']]->object_type[0]) && $wp_taxonomies[$field['field']]->object_type[0] == 'user') // Edited

    (IN)

    /piklist/includes/class-piklist-form.php

    Change line 422:
    (FROM)
    $meta = $meta[$key];

    (TO)
    $meta = isset($meta[$key])?$meta[$key]:0; // Edited

    (IN)

    /piklist/includes/class-piklist-cpt.php

    Change line 343:
    (FROM)
    $post_type = $_REQUEST['post_type'];

    (TO)
    $post_type = isset($_REQUEST['post_type'])?$_REQUEST['post_type']:false; // Edited

    (IN)

    /piklist/includes/class-piklist-list-table.php

    Change line 118:
    (FROM)
    $this->sortable_columns = $sortable_columns;

    (TO)
    $this->sortable_columns = isset($sortable_columns)?$sortable_columns:false; // Edited

    Change line 125:
    (FROM)
    ,'ajax' => $ajax

    (TO)
    ,'ajax' => isset($ajax)?$ajax:false // Edited

    Change line 78:

    (FROM)
    ,'export' => $export

    (TO)
    ,'export' => isset($export)?$export:true // Edited

    Made a guess on var types when setting them.
    Pretty sure I’m wrong, but didn’t take time to check. LOL

    Marcus

    in reply to: Problem in WP 3.5.2 – Media Library #912
    Marcus
    Member

    So bummed. Tried all three demos Content Types, Taxonomies and the Piklist Demos in WP 3.5.2 and nothing worked.

    Tried with and without errors on, but still nothing worked. A ton of Undefined Index errors.

    Will try and go through some later and see what I can fix. But still licking my wounds.

    Man it looks exciting though.
    Unfortunately can’t regress the install for this latest client, wish I could, but I’m stuck with using 3.5.2

    Marcus

    in reply to: Custom Taxonomy – User Permission Based #902
    Marcus
    Member

    Great Steve, that works for Roles and Capabilities.

    Thanks.

    Marcus

Viewing 15 posts - 91 through 105 (of 113 total)