gransfor
Forum Replies Created
-
Forum: Plugins
In reply to: [Participants Database] get more dataThere are a few small errors such as $data for the array.
what with her make?
Forum: Plugins
In reply to: [Participants Database] get more datai want output in once field separate by comma, for example : Joseph Campbell (name), 20 (old), New-York (city residences)
Forum: Plugins
In reply to: [WP Mobile Menu - The Mobile-Friendly Responsive Menu] size and scrollingForum: Plugins
In reply to: [Participants Database] no record is addedI 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.
Forum: Plugins
In reply to: [Participants Database] Rise recordsYou don’t understand. I want the BUTTON when clicked all the records the user has updated and took the top position
Forum: Plugins
In reply to: [Participants Database] Rise recordsExcuse me, but how to sort? ORDER BY does not change the position of the record in the table
Forum: Plugins
In reply to: [Participants Database] Rise recordsI 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?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?
Forum: Plugins
In reply to: [Participants Database] hideand what?
Host is able to send the emails – not disabled the emails from User Registration