Front end Submition form Image field url bug

More
12 years 5 months ago - 12 years 5 months ago #32374 by igcorreia
In the front end the image preview in the image field is broker.

Line 383 change from, just add a "/" to the source:
Code:
var preview_container = '<img class=\"preview_image\" id=\"'+elementid+'_preview_image\" src="/'+file_url+'\" style=\"border: 1px solid silver; float:left;\" />';

to
Code:
var preview_container = '<img class=\"preview_image\" id=\"'+elementid+'_preview_image\" src=\"/'+file_url+'\" style=\"border: 1px solid silver; float:left;\" />';
Last edit: 12 years 5 months ago by igcorreia.

Please Log in or Create an account to join the conversation.

More
12 years 5 months ago #32379 by ggppdk
Hello,
your image.php seems to have been altered, the \ is already there

I also see that you have a "/" in front of file_url which is not present in original file


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
12 years 5 months ago #32403 by igcorreia
wierd :( it is working with my change. thanks

Please Log in or Create an account to join the conversation.

More
12 years 5 months ago #32407 by ggppdk
strange, i meant that in original file the fix you suggested is already there


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
12 years 5 months ago #32425 by igcorreia
Probably wrong version mine Thanks.

Please Log in or Create an account to join the conversation.

More
12 years 5 months ago #32427 by igcorreia
We updated today and the bug persists. The images do not load in the front end.

Line 383 from:
Code:
src=\"'+file_url+

to:
Code:
src=\"/'+file_url+

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.340 seconds
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Save