Skip Navigation

[Resolved] Image Preview in Forms do not work anymore

This support ticket is created 4 years, 9 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 4 replies, has 3 voices.

Last updated by Matthias 4 years, 9 months ago.

Assisted by: Christian Cox.

Author
Posts
#1837861

since to around 4 or 5 weeks ago everything was working well.
Logged in user was able to click on "Browse", choose an image, image preview was displayed.
The user was able to choose the "X" to delete the uploaded image and to choose a different one.

Then some days ago my provider updated the WordPress.
I updated toolset plugins then today. And now the preview does not work anymore.
The forms became useless now since there is no option for the users planned to edit the posts after they are posted.

As I found other posts here in the support forum haveing the same problem, but not really a solution statement even though the support requests was marked as "resolved".

The other posts are this ones here. The first one describes the behaviour on my site exactly.
https://toolset.com/forums/topic/form-is-not-showing-image-upload-preview/
https://toolset.com/forums/topic/cred-image-field-does-not-show-progress-bar-and-preview-anymore/
https://toolset.com/forums/topic/images-are-not-loading-to-cred-form/

So my question is now if there will ever be the old functionallity available, or will one have to stay on the WordPress Media LIbrary manager option which is not wanted by the other ones and not by me and would make toolset almost useless for me.

#1838573

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+01:00)

Using the WordPress media library for image uploads was one of the most requested features for Forms, and was implemented quite a while ago. It replaced the existing custom uploader, that was the source of quite a few problems over the years and had very limited funcionality.

It does mean that there are now two options with image fields in forms.

You can use the WordPress media uploader with its drag and drop functionality etc., or not. If not, the images are uploaded at the same time the form is submitted, meaning there are no previews available.

I'm sorry if neither of these are your preferred option, but there was a clear demand from users to improve on the old functionality and we cannot go back to it.

#1842333
ookgadkmjmhpkhej.png

I am sorry, I replyed by E-Mail 3 days ago.
I now noticed that it was sent to a noreply address.

So again here my reply and further question:

Dear Nigel,

many thanks for your reply.

you write that there are two options with image fields in forms, but I am wodering why the third one working until some weeks ago (with preview) is not possible to use anymore.
I can understand that if many customers are requesting a feature you do your very best to implement the feature, but I cannot understand why you dont even leave the other option working parallel for a while.
At least as long as until the new feature is fully implemented. The "new" buttons for uploading are still (as far as I can see in some other postings in the forum) not translated yet - for over a 1,5 years now ...

And even if I use the custome code as described here: https://toolset.com/forums/topic/buttons-changed-for-photo-upload-and-upload-method/

There is still one Button "Add Image" in english language and not translatable by the custom code.

What can I do about it? How can I translate the button "Add Image" ?
I do really need that until I have switched to a different system.

By the way, the preview function here in the ticket-system forum works very well.
What kind of system is it? I maybe can switch to it ...

Regards,
Matthias

#1842409
Screen Shot 2020-10-08 at 9.19.13 AM.png

There is still one Button "Add Image" in english language and not translatable by the custom code.
A better custom code snippet is available here: https://toolset.com/forums/topic/translate-upload-or-select-image-and-add-tag-buttons/
If you only want to translate the text "Add image", the modified code should be:

add_filter( 'gettext', 'func_change_forms_upload_button_texts', 20, 3 );
function func_change_forms_upload_button_texts( $translated_text, $untranslated_text, $domain ) {
   
    if ( !is_admin() ) {
   
      if( $untranslated_text== 'Add image' && $domain == 'wpv-views' ) {
             $translated_text = 'Add image - translate here';
       }
    
    }
   
    return $translated_text;
}

Can you try this version in your child theme's functions.php file, or in a new custom code snippet in Toolset > Settings > Custom Code? Let me know if the translation is not modified and I can take a closer look for you.

By the way, the preview function here in the ticket-system forum works very well.
What kind of system is it? I maybe can switch to it ...

The Fancybox (http://fancybox.net/ ) image preview system is incorporated in the BuddyPress platform, which is used here in the Toolset Forums to manage our forum tickets. The Fancybox system is not currently implemented in Toolset Forms as Nigel mentioned, because of problems and limitations in the previous system that our Users experienced.

#1842825

I have a workaround now for the removed functionality.