hamlet237
Forum Replies Created
-
Hi @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.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 5 years, 2 months ago by hamlet237.
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.’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.
It′s working for me. Thanks a lot. I thought you were still working on it.
Hi Ahmed.
Could you fix the bug?
Thank you!Thank you Natalie. This is the code: 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!
Yes, I′ve uploaded it and add to the post featured image via WP admin panel.
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
In reply to: [Loco Translate] Translations don’t show upThank you @timwhitlock!!
Importing XML works like a charm.Forum: Plugins
In reply to: [Front End PM] Send a new message to new registered usersHi 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
In reply to: [WordPoints] Create custom logs queriesHi 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:
https://padresenlanube.com/
https://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://www.ads-software.com/plugins/clean-login/changelog/So please, guide me, and I′ll try to do my best!
Forum: Plugins
In reply to: [Clean Login] User role registration and MailPoet newsletters conflictHola 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
In reply to: [Clean Login] User role registration and MailPoet newsletters conflictOk, 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
In reply to: [MailPoet Newsletters (Previous)] Hook listThankyou for your answer nonetheless.
I′ll try to hack the clean login code to fix the problem.