Title: hamlet237's Replies | WordPress.org

---

# hamlet237

  [  ](https://wordpress.org/support/users/hamlet237/)

 *   [Profile](https://wordpress.org/support/users/hamlet237/)
 *   [Topics Started](https://wordpress.org/support/users/hamlet237/topics/)
 *   [Replies Created](https://wordpress.org/support/users/hamlet237/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/hamlet237/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/hamlet237/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/hamlet237/engagements/)
 *   [Favorites](https://wordpress.org/support/users/hamlet237/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 17 total)

1 [2](https://wordpress.org/support/users/hamlet237/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/hamlet237/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[LifterLMS - WP LMS for eLearning, Online Courses, & Quizzes] Select multiple in Lifterlms Registration form](https://wordpress.org/support/topic/select-multiple-in-lifterlms-registration-form/)
 *  Thread Starter [hamlet237](https://wordpress.org/support/users/hamlet237/)
 * (@hamlet237)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/select-multiple-in-lifterlms-registration-form/#post-11983089)
 * Hi [@saurabhshukla](https://wordpress.org/support/users/saurabhshukla/) .
    Yesterday
   I made a fork and two commits about the topic. Try the code and confirm that 
   it works. For me it is working now.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Import and export users and customers] Problem uploading file to import ‘Specified file failed upload test.’](https://wordpress.org/support/topic/problem-uploading-file-to-import-specified-file-failed-upload-test/)
 *  Thread Starter [hamlet237](https://wordpress.org/support/users/hamlet237/)
 * (@hamlet237)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/problem-uploading-file-to-import-specified-file-failed-upload-test/#post-11891427)
 * Thankyou Javier. It´s working perfect now.
    Try this CSS suggestion in front-
   end tables. Very usefull in mobile screens: `.wrap table th,.wrap table td{width:
   200px!important;}.wrap{overflow-x:auto!important;}.wrap table{min-width:800px!
   important;}`
    -  This reply was modified 6 years, 10 months ago by [hamlet237](https://wordpress.org/support/users/hamlet237/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Import and export users and customers] Problem uploading file to import ‘Specified file failed upload test.’](https://wordpress.org/support/topic/problem-uploading-file-to-import-specified-file-failed-upload-test/)
 *  Thread Starter [hamlet237](https://wordpress.org/support/users/hamlet237/)
 * (@hamlet237)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/problem-uploading-file-to-import-specified-file-failed-upload-test/#post-11880553)
 * Hi there Javier.
    Thank you for your response.
 * The process actually uploads the file, but then the error comes out.
    In the 
   back end it works fine, but in the front end, both when I inject the shortcode
   on a dashboard page or on a public installation page it fails.
 * The csv file is uploaded correctly and I can even see it inside my wordpress 
   file panel (/wp-admin/upload.php).
 * But the plugin does not respond as it does from the back end and shows the error
   described:
    **Problem uploading file to import ‘Specified file failed upload 
   test.’**
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[LifterLMS - WP LMS for eLearning, Online Courses, & Quizzes] Select multiple in Lifterlms Registration form](https://wordpress.org/support/topic/select-multiple-in-lifterlms-registration-form/)
 *  Thread Starter [hamlet237](https://wordpress.org/support/users/hamlet237/)
 * (@hamlet237)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/select-multiple-in-lifterlms-registration-form/#post-11846320)
 * Hi Natalie.
    As you can see in the code I´ve paste for you between lines 191 
   and 203:
 *     ```
       $user_diseases = array(
               'columns' => 4,
               'id' => 'osaki_user_diseases',
               'classes' => 'osaki-input osaki-select has-multiple',
               'label' => __('Diseases', 'almazen'),
               'last_column' => false,
               'required' => false,
               'options' => $user_diseases_options,
               'type' => 'select',
               'multiple' => true,
               'default' => '',
             );
             array_push($fields, $user_diseases);
       ```
   
 * This is a code in PHP that render a multiple select using your lifterlms_get_person_fields
   filter. Please re-check the code.
 * Theese lines creates something like this:
 * `<select class="llms-field-select osaki-input osaki-select has-multiple" id="
   osaki_user_diseases" name="osaki_user_diseases" style="display: none;" multiple
   ="multiple"><option value="dont_specify">No quiero especificar mis enfermedades
   </option><option value="arthritis">Artritis</option><option value="chronic_patient_caregiver"
   >Cuidador de paciente crónico</option><option value="aids">VIH/SIDA</option><
   option value="type_1_diabetes">Diabetes tipo 1</option><option value="type_2_diabetes"
   >Diabetes tipo 2</option><option value="cancer_survivor">Superviviente de cáncer
   </option><option value="chron_disease">Enfermedad de Crohn</option><option value
   ="ulcerous_colitis">Colitis Ulcerosa</option></select>`
 * The select works nice when selecting multiple options but when the date is sent
   via POST it saves only one option in database. I believe there is a problem with
   your management of POST data created by a multiple select. Instead of saving 
   an array of values your proccess saves only one string value.
 * Thanks in advance Natalie.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[AMP for WP - Accelerated Mobile Pages] AMP pages don´t show WebP images format](https://wordpress.org/support/topic/amp-pages-dont-show-webp-images-format/)
 *  Thread Starter [hamlet237](https://wordpress.org/support/users/hamlet237/)
 * (@hamlet237)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/amp-pages-dont-show-webp-images-format/#post-11813426)
 * It´s working for me. Thanks a lot. I thought you were still working on it.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[AMP for WP - Accelerated Mobile Pages] AMP pages don´t show WebP images format](https://wordpress.org/support/topic/amp-pages-dont-show-webp-images-format/)
 *  Thread Starter [hamlet237](https://wordpress.org/support/users/hamlet237/)
 * (@hamlet237)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/amp-pages-dont-show-webp-images-format/#post-11809429)
 * Hi Ahmed.
    Could you fix the bug? Thank you!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[LifterLMS - WP LMS for eLearning, Online Courses, & Quizzes] Select multiple in Lifterlms Registration form](https://wordpress.org/support/topic/select-multiple-in-lifterlms-registration-form/)
 *  Thread Starter [hamlet237](https://wordpress.org/support/users/hamlet237/)
 * (@hamlet237)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/select-multiple-in-lifterlms-registration-form/#post-11809407)
 * Thank you Natalie. This is the code: [https://pastebin.com/GCeYu55y](https://pastebin.com/GCeYu55y)
 * I´m working in a class function so please note the hooks with array(&$this,… 
   added.
 * The problem happens with $user_diseases array which loads a multiple select tag.
 * Thanks in advance!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[AMP for WP - Accelerated Mobile Pages] AMP pages don´t show WebP images format](https://wordpress.org/support/topic/amp-pages-dont-show-webp-images-format/)
 *  Thread Starter [hamlet237](https://wordpress.org/support/users/hamlet237/)
 * (@hamlet237)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/amp-pages-dont-show-webp-images-format/#post-11384580)
 * Yes, I´ve uploaded it and add to the post featured image via WP admin panel.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[AMP for WP - Accelerated Mobile Pages] AMP pages don´t show WebP images format](https://wordpress.org/support/topic/amp-pages-dont-show-webp-images-format/)
 *  Thread Starter [hamlet237](https://wordpress.org/support/users/hamlet237/)
 * (@hamlet237)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/amp-pages-dont-show-webp-images-format/#post-11379738)
 * Thank you Ahmed.
 * I have the problem in all posts of my website. For instace:
    Canonical version
   with webp image: /beneficios-fisicos-del-deporte-durante-la-adolescencia/ This
   is the amp version: /beneficios-fisicos-del-deporte-durante-la-adolescencia/amp/
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Loco Translate] Translations don’t show up](https://wordpress.org/support/topic/translations-dont-show-up/)
 *  [hamlet237](https://wordpress.org/support/users/hamlet237/)
 * (@hamlet237)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/translations-dont-show-up/#post-8493855)
 * Thank you [@timwhitlock](https://wordpress.org/support/users/timwhitlock/)!!
   
   Importing XML works like a charm.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Front End PM] Send a new message to new registered users](https://wordpress.org/support/topic/send-a-new-message-to-new-registered-users/)
 *  [hamlet237](https://wordpress.org/support/users/hamlet237/)
 * (@hamlet237)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/send-a-new-message-to-new-registered-users/#post-7225530)
 * Hi renkcreative.
 * Thanks for the plugin Shamim Hasan.
 * I´ve been trying the code and I think that the problem is in this line:
    `$wpdb-
   >query($wpdb->prepare("INSERT INTO $table (from_user, to_user, message_title,
   message_contents, last_sender, date, last_date) VALUES ( %d, %d, %s, %s, %d, %
   s, %s )", $from, $user_id, $title, $content, $from, $date, $date));`
 * Change it with:
    `$wpdb->query($wpdb->prepare("INSERT INTO $table (from_user,
   to_user, message_title, message_contents, last_sender, send_date, last_date) 
   VALUES ( %d, %d, %s, %s, %d, %s, %s )", $from, $user_id, $title, $content, $from,
   $date, $date));`
 * I´ve only modified the db table col name (date by send_date)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WordPoints] Create custom logs queries](https://wordpress.org/support/topic/create-custom-logs-queries/)
 *  Thread Starter [hamlet237](https://wordpress.org/support/users/hamlet237/)
 * (@hamlet237)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/create-custom-logs-queries/#post-6534292)
 * Hi J.D. Grimes.
 * I know PHP, so I hope I can help you programming some code in your plugin.
    I
   ´ll be glad if you like it and you add the modifications in the future.
 * I have written two big projects:
    [http://padresenlanube.com/](http://padresenlanube.com/)
   [http://fairchanges.com/](http://fairchanges.com/) The first one is based on 
   WP.
 * And I´ve contributed with some code to the clean login plugin, version 1.6:
    
   [https://wordpress.org/plugins/clean-login/changelog/](https://wordpress.org/plugins/clean-login/changelog/)
 * So please, guide me, and I´ll try to do my best!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Clean Login] User role registration and MailPoet newsletters conflict](https://wordpress.org/support/topic/user-role-registration-and-mailpoet-newsletters-conflict/)
 *  Thread Starter [hamlet237](https://wordpress.org/support/users/hamlet237/)
 * (@hamlet237)
 * [10 years, 12 months ago](https://wordpress.org/support/topic/user-role-registration-and-mailpoet-newsletters-conflict/#post-6348901)
 * Hola Alberto.
    Creo que ya lo tengo, por lo menos a mí me ha funcionado en mi
   instalación (local y producción)
 * \wp-content\plugins\clean-login\clean-login.php
 * En el condicional de la línea 346:
 *     ```
       if( $create_customrole ){
       $user->set_role( $role );
       /* hamlet237 */do_action( 'user_register', $user_id );/* hamlet237 */
       }
       ```
   
 * Parece que trabajan con el hook user_register, que imagino que otros plugins 
   también emplean para este tipo de cosas.
 * Luego otra cosilla. Es una bobada, pero en el panel pedís una URL para los términos
   y condiciones y luego en el código no se aplica.
    Yo lo he hecho en la línea 
   57 de: \wp-content\plugins\clean-login\content\register-form.php
 * `<a href="<?php echo get_option( 'cl_termsconditionsURL' ); ?>" target="_blank"
   ><?php echo get_option( 'cl_termsconditionsMSG' ); ?></a>`
 * Espero que os sirva.
    Abz.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Clean Login] User role registration and MailPoet newsletters conflict](https://wordpress.org/support/topic/user-role-registration-and-mailpoet-newsletters-conflict/)
 *  Thread Starter [hamlet237](https://wordpress.org/support/users/hamlet237/)
 * (@hamlet237)
 * [10 years, 12 months ago](https://wordpress.org/support/topic/user-role-registration-and-mailpoet-newsletters-conflict/#post-6348899)
 * Ok, me parece bien Alberto.
    Voy a intentarlo yo primero y si no doy con la solución
   os lo pediría a vosotros. Si encuentro algo que os sirva os lo paso al correo.
   Gracias!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[MailPoet Newsletters (Previous)] Hook list](https://wordpress.org/support/topic/hook-list/)
 *  Thread Starter [hamlet237](https://wordpress.org/support/users/hamlet237/)
 * (@hamlet237)
 * [10 years, 12 months ago](https://wordpress.org/support/topic/hook-list/#post-6350044)
 * Thankyou for your answer nonetheless.
    I´ll try to hack the clean login code 
   to fix the problem.

Viewing 15 replies - 1 through 15 (of 17 total)

1 [2](https://wordpress.org/support/users/hamlet237/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/hamlet237/replies/page/2/?output_format=md)