I need to add custom fields to my photo upload, so when i finished the photo uploading i need to add price, location,etc.
How can i accomplish this?
I need to add custom fields to my photo upload, so when i finished the photo uploading i need to add price, location,etc. How can i accomplish this? |
Can you edit code? This will require some custom changes in the upload and edit parts of the photo module. If not, then you may need to post this as a job. If it is not too involved, we might can do this in the forum but you will need to be able to make changes in the code and then upload that back to the site. Geeks, making the world a better place |
Yes I can edit code, can you give some steps to acomplish this. Thanks |
For one thing, you need to realise the photo uploader also uses the base files uploader of Dolphin. Geeks, making the world a better place |
The photo uploader can be found in /boonex/photos/classes/BxPhotosUploader.php Note that the photo is uploaded first, then the form is displayed such as title and description which is then added to the database on submit. If you "cancel" by moving away and go to the photo album, you will find the photo is in the photo album. This is illogical; the image should not be upload at this time but uploaded after clicking on the submit button. However, this is the way it is implemented. Geeks, making the world a better place |
Thanks for your help, i am exploring this file (BxPhotosUploader.php) but i cant find the way to add the field, i look into the templates directory inside the photo directory, but i cant find the way to do it, can you give some advice... thanks. |
You're looking for /inc/classes/BxDolFilesUploader.php
Good luck! Dedicated servers for as little as $32 (28 euro) - See http://denre.com for more information |
Also look at the photo module template files. It is complicated because the photo uploader uses the files uploader. Geeks, making the world a better place |
Thanks everybody, i almost make my upload form works, i made the changes in BxDolFilesUploader.php and i can see the new fields in the form, next i add the new field in my database table bx_photos_main, next i add this two new fields names in BxDolFilesDb.php (in administracion classes folder) But when i try to upload photos with this new information everything seems right, but this new field are empty in my database, can you help me to find the file to change to save the info in the database. Thanks. |
did you edit any sql codes for the uploading (ie adding the new fields to your sql statement)- i dont know where it would be, but that would be where i would start to look at. caredesign.net |
Thanks i did it, changing the photouploader file, but now i have the fields saved in the database but i cant change the album template to show them in my public website, where can i change the way my site looks?? now i just want to show the new fields saved in the database. |
I believe you can do it by added a page block with php code to pull it from the database. Check out this free mod from deano92964. Good Luck. Michael |