Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter mondyde

    (@mondyde)

    This documentation is good …

    Again, I made a mistake. I put the files in the child theme but my site was setting with the parent theme.
    so stupid …

    Disable WP_DEBUG don’t work.

    This way disable the message in wordpress administration, but it’s always display on the meta widget and register page for disconected users.

    Edit
    Sorry, it’s work in the frontend with WP_DEBUG

    Hello !

    Same problem, and find this solution :

    Search force_ssl_login in thr file /wp-content/plugins/theme-my-login/includes/class-theme-my-login.php

    Find it on lines 919 and 1909

    Don’t need to change it yet on line 919

    replace force_ssl_login by force_ssl_admin on line 1909

    I haven’t try all issues but seems working.

    Thread Starter mondyde

    (@mondyde)

    Hello,

    I’m a new WordPress user, i’m not familiar with built in functions, so i’ve made a mistake.
    I found this solution.

    global $wpdb;
    
    // check if value is used (value is a number)
    if ( !empty( $_POST['value'] ) )  {
    	$search_value = $_POST['value'];
    
    	// Query
    	$wpdb->get_results("SELECT meta_value FROM {$wpdb->prefix}usermeta WHERE meta_key = 'value_id' AND meta_value = $search_value") ;
    	// Error message
    	if ($wpdb ->num_rows > 0) $errors->add( 'empty_value', '<strong>ERROR</strong> : Tis value is already used, please choose another one.' );
    }

    It’s working, but I’m not sure that’s the better way.

Viewing 4 replies - 1 through 4 (of 4 total)