Forum Replies Created

Viewing 10 replies - 16 through 25 (of 25 total)
  • Thread Starter gransfor

    (@gransfor)

    There are a few small errors such as $data for the array.

    what with her make?

    Thread Starter gransfor

    (@gransfor)

    i want output in once field separate by comma, for example : Joseph Campbell (name), 20 (old), New-York (city residences)

    Thread Starter gransfor

    (@gransfor)

    Thread Starter gransfor

    (@gransfor)

    I fix this problem, she be Is that ID > max.
    Remember i task you how me raise record? I concocted decision –>

    function my_dsfg() {
    	$currents_users = wp_get_current_user();
    	global $wpdb;
    	$d = getdate();
    	$get_var_time = $wpdb->get_var("SELECT comparison FROM wp_participants_database WHERE id_private = '$currents_users->id' "); // получает больше на 1 час comparison(1)
    	$get_current_time = $wpdb->get_var("SELECT tametame FROM wp_participants_database WHERE id_private = '$currents_users->id' ");  // получает текущее время  tametame(2)
    	$get_max_id = $wpdb->get_var("SELECT max(id) FROM wp_participants_database "); // получает самый большой ид	
    	$wpdb->query(" UPDATE wp_participants_database SET tametame = NOW() + INTERVAL 59 MINUTE WHERE id_private = '$currents_users->id' ");  // = поле даёт текущее время
    	$wpdb->query(" UPDATE wp_participants_database SET id = id + '$get_max_id' WHERE id_private = '$currents_users->id' AND comparison <= NOW() "); // даёт ид + ид МАх когда время + 1 < текущего
        $hfuftm = $wpdb->query(" UPDATE wp_participants_database SET comparison = NOW() + INTERVAL 1 HOUR WHERE id_private = '$currents_users->id' "); // даёт текущее + 1	
    }	
    
    function my_fdffg() {	
    	$currents_users = wp_get_current_user();
        global $wpdb; 
        $injoi = $wpdb->query(" UPDATE wp_participants_database SET toto = 60 WHERE id_private = '$currents_users->id' AND toto = 0 ");
    	$plot = $wpdb->get_var("SELECT min(toto) FROM wp_participants_database WHERE id_private = '$currents_users->id' ");	
    	 echo "Все ваши записи обновлены! Следущее обновление доступно через $plot минут";
    }	
    
    ///////////////////////////////////////////////////////////////// ЗДЕСЬ УСЛОВИЯ ОБНОВЛЕНИЯ //////////////////////////////////////////////////////////////////////////////////////
    
    /////////////////////////////////////////////////////////////////// ЗДЕСЬ УСЛОВИЯ КРОНА /////////////////////////////////////////////////////////////////////////////////////////
    
    function my_taming() {
    	$currents_users = wp_get_current_user();
        global $wpdb; 
    	$plots = $wpdb->get_var("SELECT toto FROM wp_participants_database");	
    	if($plots <= 0) 
    	{
    	$wpdb->query(" UPDATE wp_participants_database SET toto = 1");	
    	}
    }
    my_taming();
    
    function cron_qwerttrewq_ce2a6dea() {
    	$currents_users = wp_get_current_user();
        global $wpdb; 
    	$yuy = $wpdb->query(" UPDATE wp_participants_database SET toto = toto - 1");
    
    }
    
    add_action( 'qwerttrewq', 'cron_qwerttrewq_ce2a6dea', 10, 0 );
    
    function cron_downidd_3b05c61a() {
      	$currents_users = wp_get_current_user();
        global $wpdb; 
    	$sda = $wpdb->query(" UPDATE wp_participants_database SET id = id / 2");
    
    }
    
    add_action( 'downidd', 'cron_downidd_3b05c61a', 10, 0 );
    

    I dropped the code in case anyone needed it.

    Thread Starter gransfor

    (@gransfor)

    You don’t understand. I want the BUTTON when clicked all the records the user has updated and took the top position

    Thread Starter gransfor

    (@gransfor)

    Excuse me, but how to sort? ORDER BY does not change the position of the record in the table

    Thread Starter gransfor

    (@gransfor)

    I have a table which has 5 different entries from different users, for example, the fifth user whose entry is in fifth place wants to raise it to the first position. For this we need to overwrite (recreate) record, want to do it all in one code(function/class), but don’t know how to create a new record with the current data where knlan this record and deletes the old. You have to hook API see “pdb-after_submit_update” as it is correct to shove?
    There is a function that filters

    
    $current_user = wp_get_current_user();
    	global $wpdb;
    	$wpdb->update( 'wp_participants_database',
    	array( 'none' => "123"),
    	array( 'enterprise' =>$current_user->display_name)

    `
    here we see what record made update where display_name=$current_user = wp_get_current_user(). With the same filter should be a hook, as it can be used correctly, can you tell?

    Thread Starter gransfor

    (@gransfor)

    I checked everything and came to the conclusion that there are problems somewhere in the plugin, because other forms work, but there are no errors in the settings of your plugin. That’s right. There are suspicions that messages do not pass DKIM from User Registration prompt what to do to me?

    Thread Starter gransfor

    (@gransfor)

    and what?

    Thread Starter gransfor

    (@gransfor)

    Host is able to send the emails – not disabled the emails from User Registration

Viewing 10 replies - 16 through 25 (of 25 total)