WordPress.org

Ready to get started?Download WordPress

Forums

Verve Meta Boxes
Date Picker fix (9 posts)

  1. The date picker in this plugin is out of date and needs to be replaced. Here's my fix:

    Go to line 697 of the verve-meta-boxes.php file and insert the following lines of code:

    wp_enqueue_script('jquery-ui-datepicker');
    wp_enqueue_style( 'jquery-ui', 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.6/themes/base/jquery-ui.css' );'

    Go to line 15 of the verve-meta.js file and replace it with the following line of code:

    $(".date-pick").datepicker();

    Enjoy your working date picker.

    Note to the authors: feel free to integrate this.

    http://wordpress.org/extend/plugins/verve-meta-boxes/

  2. hilmon
    Member
    Posted 2 years ago #

    Thank You Thank You Thank You........ :-)

  3. Marco Milesi
    Member
    Posted 2 years ago #

    Thanks!

  4. Fred Rocha
    Member
    Posted 2 years ago #

    Great, it works, thanks!

    One note, the little calendar icon disappears and user now has to click the input field for the IU widget to show.

    Took me some good 20 minutes to figure this one out!

  5. kennefu
    Member
    Posted 2 years ago #

    insert into line 697, is that supposed to be placed in the verve_admin_js() function?

  6. nerdflu
    Member
    Posted 2 years ago #

    Thanks! I did this, the only problem I'm having now is that it displays the date and time like this: "2012-03-31 00:00:00" instead of just the date..

  7. I wrote a tutorial on how to customize the Date Picker for my plugin, Visual Form Builder. I'm sure you can apply the same method to work here.

  8. kennefu
    Member
    Posted 2 years ago #

    Thanks Matthew. If you want it formatted as before, then add this code to line 15.

    $.datepicker.setDefaults({ dateFormat: 'yy-mm-dd' });
    $(".date-pick").datepicker();
  9. nerdflu
    Member
    Posted 2 years ago #

    thanks guys :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic