Hi,
I want to get individual photos from the user and want to display it to _draw_summary_panel.
From https://freeimage.host/i/userform.rNoaqP (user form) to https://freeimage.host/i/rNa1b1 (admin panel)
Uploaded Images from User-form to Draw Summary Panel in Admin
4 years ago
4 years ago
#1
4 years ago
#2
Hi Freiza,
You will need to be a bit more precise with your question for anyone to help you.
Can you share your userform and _draw_summary_panel code?
I can see in that screen shots, a userform with direct link/ url and full image with html/ bbcode links, and an admin panel with a picture uploader added.
If it's just an image uploader, copy the code generated in your admin picture uploader module and modify it to work the way you want - the code is not that complex.
You will need to be a bit more precise with your question for anyone to help you.
Can you share your userform and _draw_summary_panel code?
I can see in that screen shots, a userform with direct link/ url and full image with html/ bbcode links, and an admin panel with a picture uploader added.
If it's just an image uploader, copy the code generated in your admin picture uploader module and modify it to work the way you want - the code is not that complex.
4 years ago
#3
Validation problem.
In file_validation_helper.php
In validation_helper.php
So shall I create a new file called file_validation_helper2.php and copy all the content from file_validation_helper.php
and create a new validate_file2?
Too much work and I tried and failed :( . Not as if I am complaining or anything, but I find your yesterday's method far more superior to the one present currently in Trongate framework. Can you integrate your code in the framework?
Because I genuinely think your version should exist in the framework.
Please help.
In file_validation_helper.php
In validation_helper.php
So shall I create a new file called file_validation_helper2.php and copy all the content from file_validation_helper.php
and create a new validate_file2?
Too much work and I tried and failed :( . Not as if I am complaining or anything, but I find your yesterday's method far more superior to the one present currently in Trongate framework. Can you integrate your code in the framework?
Because I genuinely think your version should exist in the framework.
Please help.
4 years ago
#4
Hi Freiza,
Thank you for the compliment ?
I was thinking about yesterday's fix for the picture uploader and now you have a similar issue with validation. I think I can create something that may fix both without having to add or change the framework. If you don't mind, I'll try to post a fix a bit later today or tomorrow morning as I'm busy working on a new project at the moment that needs my attention.
Thank you for the compliment ?
I was thinking about yesterday's fix for the picture uploader and now you have a similar issue with validation. I think I can create something that may fix both without having to add or change the framework. If you don't mind, I'll try to post a fix a bit later today or tomorrow morning as I'm busy working on a new project at the moment that needs my attention.
4 years ago
#5
I will gladly wait.
4 years ago
#6
Hi Freiza,
You can restore Trongate.php to how it originally was, as we don't need the upload_pictures() method now as I've worked out a way to get the uploads working without modifying anything in the engine folder (better practice). With the validation, I opted to create our own helper as trying to get the file_validation_helper.php to play nice with multiple files was doing my head in. This custom file helper only checks for file type, but can easily be expanded to check for image size, height and width.
Test Pics Controller
don't forget to add flashdata(); to the top of your form
Please close off this thread if you think your question has been answered
Cheers,
Simon
You can restore Trongate.php to how it originally was, as we don't need the upload_pictures() method now as I've worked out a way to get the uploads working without modifying anything in the engine folder (better practice). With the validation, I opted to create our own helper as trying to get the file_validation_helper.php to play nice with multiple files was doing my head in. This custom file helper only checks for file type, but can easily be expanded to check for image size, height and width.
Test Pics Controller
don't forget to add flashdata(); to the top of your form
Please close off this thread if you think your question has been answered
Cheers,
Simon
4 years ago
#7
Thank You very much.