Forum Replies Created
-
AuthorPosts
-
MarcusMemberCouple 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
MarcusMemberMore 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
MarcusMemberNice work Steve.
Can’t wait to get back to my laptop and start coding.
Hope people start posting more experiences.
Marcus
MarcusMemberCan’t wait, I am back east in TO this week, so Steve, you only have 30 minutes before wednesday is over.
Marcus
MarcusMemberKevin, 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
MarcusMemberHehehe, why yes, yes it does.
When will it be ready?
Now? yesterday? Or the dreaded soon. 🙁
MarcusMemberOk, 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
MarcusMemberOk, 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
MarcusMemberKevin 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
MarcusMemberBy the way, Steve, the error when editing a media attachment is now gone. 🙂
Marcus
MarcusMemberSorry 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
MarcusMemberAlso: (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; // EditedHope it helps someone.
Marcus
MarcusMemberKevin, 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)))) // EditedWindows 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; // EditedChange line 125:
(FROM)
,'ajax' => $ajax(TO)
,'ajax' => isset($ajax)?$ajax:false // EditedChange line 78:
(FROM)
,'export' => $export(TO)
,'export' => isset($export)?$export:true // EditedMade a guess on var types when setting them.
Pretty sure I’m wrong, but didn’t take time to check. LOLMarcus
MarcusMemberSo 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.2Marcus
MarcusMemberGreat Steve, that works for Roles and Capabilities.
Thanks.
Marcus
-
AuthorPosts