WordPress.org

Support

Support » Plugins and Hacks » [Register Plus Plugin 3.5.1] date field bug

[Register Plus Plugin 3.5.1] date field bug

Viewing 7 replies - 1 through 7 (of 7 total)
  • Same with me. Looked into mysql and de date-fields are just not there !!!

    Any body knows how to fix it ?

    Hi guys

    After trial and errors, I think I found a fix. This is my 2nd attempted post for bug fix, so I hope I can explain as clearly and layman as I could. Open up wp-content\plugins\register-plus.php with a text editor (I used notepad++). There are 2 parts of the codes to add for it to work.

    Part 1 (adding the css & jquery script for the date-picker to work)

    At around line 31, you should be able to see this line

    #Enable jQuery on Settings panel
    if( $_GET['page'] == 'register-plus' ){
    	wp_enqueue_script('jquery');
    	add_action( 'admin_head', array($this, 'SettingsHead') );
    }

    In the next line right after } (as the code segment above) , add this
    add_action( 'admin_head', array($this, 'PassHead') );

    Part 2 (adding the “missing” code)

    Around line 1576, look for the following
    switch( $v['fieldtype'] ){

    In the next line right after { (as the code segment above) , add this

    case "date" :
    	$outfield = '<label><input autocomplete="off" class="date-pick" type="text" name="' . $id . '" id="' . $id . '" value="' . $value . '"  /></label>';
    	break;

    This is it. If you have any issue, please post back here, I will do my best to assist.

    I’m having the same problem, and unfortunately this fix doesn’t work.

    I do appreciate you posting this info regardless.

    I’m wondering if the fix not working has to do with me running wordpress 2.7.1?

    Fix #1 says: $_GET[‘page’] == ‘register-plus’ ; however, my registration page is: /wp-login.php?action=register

    Please fix this!

    The fix did help the problem of showing the labels of the previious field, it did however not fix the showing of the date selection.
    I hate to say this (because overall I like your plug in), but why isn’t this fix included in an updated version of the plugin?
    And will there be a solution for the date-picker to show?

    And by the way: the file is in
    wp-content\plugins\register-plus\register-plus.php

    Hi,

    I had the same problem. I tried the fix above and it works for me. I am running on 2.7.1 The only thing is remove the calender selection because I use it for birthdays and starting in 2009 is not handy.

    Greetings,

    Boudewijn

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Register Plus Plugin 3.5.1] date field bug’ is closed to new replies.
Skip to toolbar