Forum Replies Created

Viewing 15 posts - 2,041 through 2,055 (of 2,964 total)
  • Author
    Posts
  • in reply to: Security #3021
    Steve
    Keymaster

    @dawood– Welcome to the Piklist Community!

    Piklist works great with multisite. You can Network Activate, or activate for each site. Since Piklist does everything the WordPress way, and uses WordPress APIs where possible, there have never been any security concerns.

    Let us know if you have any other questions.

    Steve
    Keymaster

    @cosmocanuck– The best way to understand this is to output the data in various places. You can use the PHP function print_r (print_r($data)), or use the Piklist function, which formats it nicer: piklist::pre($data).

    in reply to: Nested groups with add_more, ajax select, add_more template #3011
    Steve
    Keymaster

    @egamipeaks– You can definitely get close to this.

    1) Try starting with the code in Piklist Demos > Add new Demo > Advanced > Content Section (Grouped) OR Content Section with Siblings (Grouped)

    2) You can’t populate Select Fields based on another field, but you can hide/show the select fields. You would generate all the select fields you need, but only show the one you want.

    3) Currently there is no way to customize the add-more button.

    We are happy to take a look at your code if you want.

    Steve
    Keymaster

    @cosmocanuck– I found two issues:

    1) In single-product.php, get_post_meta should be set to false, so it returns an array. I updated the documentation to reflect this (Under the “Display” area). Let me know if the documentation makes sense.

    2) In product-claims-template.php, you already have the array data in $data. There is no $data['claims'], so just use $data.

    Let me know if that fixes it for you.

    in reply to: Piklist Checker Doesn't Seem to Be Working #3009
    Steve
    Keymaster

    @jphickey– W3TC is a tough plugin to configure correctly… even for advanced users. Let us know if you have any other questions.

    Closing ticket.

    in reply to: Height of textarea field – how to control? #3008
    Steve
    Keymaster

    @cosmocanuck– Any attribute that the HTML textarea field supports, Piklist supports. I updated the docs to explain >

    in reply to: Editor field in nested add-more: Fixed, but… #3007
    Steve
    Keymaster

    @cosmocanuck– If you still need help with this let us know… and please post some code.

    in reply to: Activating Piklist slows site down considerably #3006
    Steve
    Keymaster

    @egamipeaks– Marking this resolved since Kevin fixed this for you. Let us know if you have any other issues.

    in reply to: default uploaded media design is off in settings area #3002
    Steve
    Keymaster

    @marian– Welcome to the Piklist Community!

    I just did some extended testing, and with certain image sizes this is still an issue. But your fix works great. We’ll get it into the next version of Piklist.

    Thanks!

    in reply to: Piklist Checker Doesn't Seem to Be Working #2996
    Steve
    Keymaster

    @jphickey– Welcome to the Piklist Community!

    The only way to debug plugin conflicts is to start deactivating plugins and see if that makes a difference. When you find the plugin that’s causing the issue please let us know so we can try and resolve.

    in reply to: Add more and group problem #2995
    Steve
    Keymaster

    @aleskupi– I got it working with the code below. A few things:
    1) You had a lot of groups within groups, which is really not necessary. Groups are primarily used for advanced layouts and an add-more with an add-more.
    2) As soon as I removed these parameters the Editor looked great: tabindex, editor_css and editor_class.

    $addmore_icon = '  ';
    
    //Label of meta box
    piklist('field', array(
    'type' => 'text'
    ,'field' => 'media_label'
    ,'label' => __('Change order by dragging items up & down.')
    ,'attributes' => array(
        'class' => 'hidden'
    )
    ));
    
      //List of items
      piklist('field', array(
      'type' => 'group'
      ,'field' => 'media_list'
      ,'label' => 'label 1'
      ,'add_more' => true
      ,'template' => 'field' //field template for not showing label and 100% width
      ,'fields' => array(
        array(
          'type' => 'text'
          ,'field' => 'media_item_label'
          ,'label' => $addmore_icon . __('Media item')
          ,'attributes' => array(
            'class' => 'hidden'
          )
          ,'columns' => 12
        )
        ,array(
          'type' => 'file'
          ,'field' => 'media_item_background_media'
          ,'label' => __('Background image')
          ,'template' => 'custom_media'
          ,'description' => __('Select or upload box background image')
          ,'attributes' => array(
            'class' => 'piklist-custom-media-field'
          )
          ,'options' => array(
            'modal_title' => __('Background image')
            ,'button' => __('Select background image')
          )
          ,'columns' => 12
        )
        ,array(
          'type' => 'radio'
          ,'field' => 'media_item_type' // Condition for displaying fields
          ,'value' => 'video'
          ,'label' => 'Type'
          ,'description' => 'Please select what you want to show.'
          ,'choices' => array(
            'video' => 'Video'
            ,'image' => 'Image'
            )
          ,'columns' => 12
        )
        ,array(
          'type' => 'text'
          ,'field' => 'media_item_url'
          ,'label' => __('Video URL')
          ,'attributes' => array(
          'placeholder' => __('Youtube URL (http://domain.com/)')
            ,'class' => 'large-text'
          )
          ,'conditions' => array(
            array(
              'field' => 'media_list:media_item_type' // Not working. Always visible
              ,'value' => 'video' // Shown only on media_item_type = video
            )
          )
          ,'columns' => 12
        )
        ,array(
          'type' => 'file'
          ,'template' => 'custom_media'
          ,'field' => 'media_item_featured_image'
          ,'label' => __('Image')
          ,'description' => __('Select or upload media box item image')
          ,'options' => array(
            'modal_title' => __('Featured image')
            ,'button' => __('Select Featured image')
          )
          ,'conditions' => array(
            array(
              'field' => 'media_block:media_item_type' // Not working. Always visible
              ,'value' => 'image' // Shown only on media_item_type = image
            )
          )
          ,'columns' => 12
        )
        ,array(
          'type' => 'radio'
          ,'field' => 'media_item_position'
          ,'value' => 'left'
          ,'label' => 'Position'
          ,'description' => 'Select Video/Image position in box'
          ,'choices' => array(
            'left' => 'Left'
            ,'right' => 'Right'
          )
          ,'columns' => 12
        )
        ,array(
          'type' => 'text'
          ,'field' => 'media_item_title'
          ,'label' => __('Title')
          ,'attributes' => array(
            'class' => 'large-text'
            ,'placeholder' => __('Title')
          )
          ,'columns' => 12
        )
        ,array(
          'type' => 'textarea'
          ,'field' => 'media_item_subtitle'
          ,'label' => __('Subtitle')
          ,'attributes' => array(
            'class' => 'large-text'
            ,'placeholder' => __('Subtitle')
          )
          ,'columns' => 12
        )
        ,array(
          'type' => 'editor'
          ,'field' => 'media_item_description' // When add more + breaks
          ,'label' => __('Description')
          ,'attributes' => array(
            'class' => 'large-text'
          )
          ,'options' => array (
            'wpautop' => false
            ,'media_buttons' => false
            ,'teeny' => false
            ,'dfw' => false
            ,'tinymce' => true
            ,'quicktags' => true
          )
          ,'columns' => 12
        )
        ,array(
          'type' => 'file'
          ,'field' => 'media_item_quote_media'
          ,'template' => 'custom_media'
          ,'label' => __('Quote image')
          ,'description' => __('Select or upload quote logo/image')
          ,'options' => array(
            'modal_title' => __('Image')
            ,'button' => __('Select image')
          )
          ,'columns' => 12
        )
        ,array(
          'type' => 'textarea'
          ,'label' => __('Quote')
          ,'field' => 'media_item_quote_text'
          ,'attributes' => array(
            'placeholder' => __('Quote')
            ,'class' => 'large-text'
          )
          ,'columns' => 12
        )
      )
    ));
    

    Let me know what you think.

    in reply to: theme option page conditions in group not working #2994
    Steve
    Keymaster

    @palash140– If I take your code and add it to the Piklist Demos; piklist-demos/parts/settings/field-text.php, it works perfectly. So it’s not your field code.

    Please make sure:
    1) You registered your setting properly >
    2) Your comment block is correct>

    Let us know if you still need help.

    in reply to: Editor field in nested add-more: Fixed, but… #2982
    Steve
    Keymaster

    @cosmocanuck– Let us know if this was fixed in v0.9.4.23

    in reply to: Removing attachment causes it to jump right back after update #2981
    Steve
    Keymaster

    This is fixed in v0.9.4.23… available now at WordPress.org. Let us know if you still have issues.

    in reply to: Can't remove file with the file field #2980
    Steve
    Keymaster

    This is fixed in v0.9.4.23… available now at WordPress.org. Let us know if you still have issues.

Viewing 15 posts - 2,041 through 2,055 (of 2,964 total)