Forum Replies Created

Viewing 15 posts - 2,311 through 2,325 (of 2,964 total)
  • Author
    Posts
  • in reply to: Google Authenticator #2216
    Steve
    Keymaster

    @cotswoldphoto– That’s the first time this has been reported. It might be a plugin conflict. We can research this for you.

    -Go to Tools
    -Helpers
    -Develop Tab
    -Check “Show System Information” and save.
    -Tools, again
    -System
    -Copy that block of data and email to us at: [email protected]

    We will check and see if there is a plugin conflict.

    in reply to: Google Authenticator #2214
    Steve
    Keymaster

    @cotswoldphoto– Do you have the Piklist Demos turned on? If so, turn them off at Piklist > Add-ons >

    Steve
    Keymaster

    Perfect. Closing ticket.

    in reply to: Conditional to file field #2202
    Steve
    Keymaster

    @jason– Docs have been updated.

    in reply to: How to get term meta #2201
    Steve
    Keymaster

    The docs have been updated, and a link to the docs page will be in the add-ons as well.

    Steve
    Keymaster

    @tuckerjoenz– When you’re registering your post type you are not adding support for the title. With no title, WordPress will automatically add “Auto Draft”.

    Add support for a title:

    ,'supports' => array(
          'author'
          ,'revisions'
          ,'title'
        )
    
    in reply to: Wierd characters… #2178
    Steve
    Keymaster

    Thanks, @marcus. This will be removed in the next version.

    in reply to: Html validation not working #2175
    Steve
    Keymaster

    Thanks for the feedback, everyone. HTML validation will be removed from the next version of Piklist. If you want to Sanitize an input for allowed HTML, then use the built-in sanitization rule wp_kses_post.

    in reply to: How to perform custom validation #2166
    Steve
    Keymaster

    @jason– added to docs. Closing ticket.

    in reply to: Html validation not working #2160
    Steve
    Keymaster

    @jason– Piklist uses a regular expression to validate, and apparently it’s not correct.

    But another thought is whether or not this is needed. Do you need to validate HTML, or do you want to SANITIZE it? Piklist already includes the ability to sanitize using wp_kses_post.

    Should we pull HTML validation from Piklist and leave the sanitization?

    in reply to: Getting index of Add More items while in the loop #2159
    Steve
    Keymaster

    @ianmuscat– Just wanted to let you know we are looking into this.

    in reply to: Getting Meta-Box to show up on a page #2158
    Steve
    Keymaster

    Great! Closing ticket.

    in reply to: Getting Meta-Box to show up on a page #2156
    Steve
    Keymaster

    @tuckerjoenz– You have a few parameters that are conflicting with each other.

    Status: This determines which post statuses the box shows on. You currently have it set to: published,prequote,repair-quote. Is this what you want?
    New: Only show on creation of new post.

    If you don’t want these features, you can just remove the parameters all together.

    in reply to: How to perform custom validation #2155
    Steve
    Keymaster

    @jason– Since you’re validating with Regex, it’s even simpler:

    add_filter('piklist_validation_rules', 'validate_youtube_url', 11);
    function validate_youtube_url()
    {
      $validation_rules = array(
        'youtube-url' => array(
          'rule' => "/^https?:\/\/(www.)?youtu(be\.com|\.be)\/(watch\?v=)?([[:alnum:]_-]+)$/"
          ,'message' => __('Unrecognized youtube url')
        )
      );
     
      return $validation_rules;
    }
    

    and your field:

    piklist('field', array(
      'description' => 'Paste either the page or short url',
      'type'      => 'text',
      'field'     => 'design-video',
      'label'     => 'Video Url',
      'columns'   => 12,
      'validate'  => array(
        array(
          'type'      => 'youtube-url',
        )
      )
    ));
    
    in reply to: How to perform custom validation #2154
    Steve
    Keymaster

    @jason– On the page you referred to, we have an example with the callback function.

    The filter adds the rule… the rule calls the callback.

Viewing 15 posts - 2,311 through 2,325 (of 2,964 total)