Forum Replies Created
-
AuthorPosts
-
[email protected]
ParticipantPerfect, many thanks!
[email protected]
ParticipantI have AIO and it already works with this update.
Is this update temporary for that? when the AIO update comes out I will have to delete it " password_strength ="weak" "?thanks
[email protected]
Participantok thanks!
[email protected]
ParticipantHi, I have the same problem since the last update.
In the register, I have the value of password_strength to false and I use short password and can't enter because login button is disable...Thanks.
November 28, 2019 at 12:42 AM in reply to: ✅Choose an image from the gallery as a cover image in MB Frontend Submission #17196[email protected]
ParticipantOhhhh many many thanks!!!! It run very well!!!!
November 27, 2019 at 6:58 PM in reply to: ✅Choose an image from the gallery as a cover image in MB Frontend Submission #17186[email protected]
ParticipantHello, sorry, Is my question well understood?
Thanks.
[email protected]
Participantohh perfect!! I will use your plugin!! Many thanks!!
[email protected]
ParticipantHello,
Thanks for your reply, finally I can solve this problem with this capabilities:
$author = get_role( 'author' ); $author->add_cap( 'upload_files' ); $author->add_cap( 'edit_others_pages' ); $author->add_cap( 'edit_published_pages' );Greetings,
Sergio[email protected]
ParticipantHi, I could solve the problem, but I don't know why this error ...
Just Update the wp-admin/includes/ajax-action.php file, instead of 'edit_post' it should be 'edit_posts'
if ( isset( $_REQUEST['post_id'] ) ) { $post_id = $_REQUEST['post_id']; if ( ! current_user_can( 'edit_posts', $post_id ) ) { echo wp_json_encode( array( 'success' => false, 'data' => array( 'message' => __( "You don't have permission to attach files to this post." ), 'filename' => $_FILES['async-upload']['name'], ) ) ); wp_die(); } }I update the file and write edit_post and now author can upload images in the front end...
I don't know if this modification will affect me to other things, and I don't see it normal to have to modify wordpress files ... but I see that I am not the first person to have this happened ...
Greetings,
Sergio[email protected]
ParticipantThanks. It has not worked for me ... I do not know if it will be a problem of permissions, because in the back office cpt if I upload images without problems, it is only in the front office that it does not leave me. (with permission of administrator and editor if you let me upload images in the frontend).
I have read in a post this possible solution, but with this function my web breaks.
https://es.wordpress.org/support/topic/edit_post-habilitado-pero-error-al-subir-media-en-frontend/
function add_media_upload_scripts() {
if ( is_admin() ) {
return;
}
wp_enqueue_media();
}
add_action('wp_enqueue_scripts', 'add_media_upload_scripts');from the original post:
https://derekspringer.wordpress.com/2015/05/07/using-the-wordpress-media-loader-in-the-front-end/I don't know if this information can help or not ...
Thanks,
Sergio[email protected]
ParticipantMention that with the editor role, you can upload or attach images from back office and from the front end without any problem.
[email protected]
ParticipantHello,
Yes, I have the wp_head() and wp_footer() .....
For the moment I solve it removing the tags that look bad...
.quicktags-toolbar { display: none !important }Thanks,
Sergio[email protected]
ParticipantPerfect!!! It run well. Thanks!
[email protected]
ParticipantHello, sorry for mixing different threads...
I do not just work:
I try:global $wpdb; $r = $wpdb->get_row($wpdb->prepare("SELECT * FROM $bbdd WHERE ID = $ID"), ARRAY_A ); $images = rwmb_meta('info', array( 'object_type' => 'user', 'limit' => 1 ) );or
$images = rwmb_meta('avatar', array( 'object_type' => 'user', 'limit' => 1 ) );or
$images = rwmb_meta( $r['avatar'] , array( 'object_type' => 'user', 'limit' =>> 1 ) );and in the 3 options it return null...
I can't get the $image['url']; after $image = reset( $images );
what am I doing wrong? (I use custom table "usuarios" related with "users" and the field name or id of the advanced image is "avatar").
Thanks
June 8, 2019 at 3:05 PM in reply to: ✅Error SQL when use in the query the fields from or to in table mb_relationships #14885[email protected]
ParticipantPerfect!!! It run well!!!
Many thanks -
AuthorPosts