PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |
Old April 22nd, 2005, 11:58 AM   #1 (permalink)
Member
Verified Customer
 
Join Date: Jan 2005
Posts: 37
Force All Fields To Be Required On Upload Form?

Can anyone help me out on this? I'm using the gallery so people can up load images of their cars, but I want to force them to fill out all fields on the upload and quick upload form.

For example I want to make these fields required:

Title (which I changed to Make & Model)
Description
Keywords

If the user dose not fill them out then I dont want the form to allow the imge to be uploaded and it give the user a warning saying "All required fields have not been filled out".

Thanks for any help anyone can offer!
kderentz is offline   Reply With Quote
Old April 22nd, 2005, 12:17 PM   #2 (permalink)
Brian
Guest
 
Posts: n/a
Re: Force All Fields To Be Required On Upload Form?

If you'll look in your /forum/includes/functions_gallery_imageedit.php file for this:
Code:
Content visible to verified customers only.
And add this right above it:
Code:
Content visible to verified customers only.
Then that should do the trick.
  Reply With Quote
Old April 22nd, 2005, 01:32 PM   #3 (permalink)
Member
Verified Customer
 
Join Date: Jan 2005
Posts: 37
Re: Force All Fields To Be Required On Upload Form?

Tight!!!!!! .... Thank you so much !
kderentz is offline   Reply With Quote
Old April 22nd, 2005, 01:51 PM   #4 (permalink)
Member
Verified Customer
 
Join Date: Jan 2005
Posts: 37
Re: Force All Fields To Be Required On Upload Form?

OK I added it and but now when I went to test it, even if I fill out all the fields its giveing me the error:

"A required field was missing. Please be sure to fill out all fields"

Here is the link to my upload form:

http://www.automotivegalleries.com/g...load.php?&c=29

I also have added additional fields using the custom fields in the CP.

The Three fields I added where "Make" and "Model" and "Modifications" as its and automotive site.

Here is the code I added to the functions_gallery_imageedit.php file:

Code:
Content visible to verified customers only.
I changed yours a little as I want to make the following fields required : Title, Keywords, Make, Model.

I think I messed something up as I'm not googd at php at all.
kderentz is offline   Reply With Quote
Old April 22nd, 2005, 02:19 PM   #5 (permalink)
Brian
Guest
 
Posts: n/a
Re: Force All Fields To Be Required On Upload Form?

Sorry about that. Try changing the three places you see $image in that code to $imageinfo and it should work then.
  Reply With Quote
Old April 22nd, 2005, 02:38 PM   #6 (permalink)
Member
Verified Customer
 
Join Date: Jan 2005
Posts: 37
Re: Force All Fields To Be Required On Upload Form?

Here is the code I changed it to:

Code:
Content visible to verified customers only.
but I'm still getting that error ....

Could it be due to the custom fields???? is the code case sensitve ?

IF you go here and try it for your self you'll see what I mean:

http://www.automotivegalleries.com/g...upload.php?&c=
kderentz is offline   Reply With Quote
Old April 22nd, 2005, 02:47 PM   #7 (permalink)
Brian
Guest
 
Posts: n/a
Re: Force All Fields To Be Required On Upload Form?

There was no reason to change 'title' and 'description'. Change those back to the exact code I posted and it should work fine.
  Reply With Quote
Old April 22nd, 2005, 02:56 PM   #8 (permalink)
Member
Verified Customer
 
Join Date: Jan 2005
Posts: 37
Re: Force All Fields To Be Required On Upload Form?

I just looked at the page source code and noticed that the additional custom fields are displayed a "field2", "field3":

Here is the code:

Code:
Content visible to verified customers only.
Is that way adding the "imageinfo[make] , imageinfo[model]" in the code isnt working ?
kderentz is offline   Reply With Quote
Old April 22nd, 2005, 02:59 PM   #9 (permalink)
Member
Verified Customer
 
Join Date: Jan 2005
Posts: 37
Re: Force All Fields To Be Required On Upload Form?

Quote:
Originally Posted by Brian
There was no reason to change 'title' and 'description'. Change those back to the exact code I posted and it should work fine.
But I dont want the description field to be required.

I just want the following required:

Title
Keywords
Make
Model

By the way thanks for all this help and the patiance with me!
kderentz is offline   Reply With Quote
Old April 22nd, 2005, 04:53 PM   #10 (permalink)
Member
Verified Customer
 
Join Date: Jan 2005
Posts: 37
Re: Force All Fields To Be Required On Upload Form?

I got it working for the title and keywords ... but how do I make custom the custom fields required?

Under custom fields I selected that they are required but it still allows you to upload a imge without filling them out.
kderentz is offline   Reply With Quote
Old October 26th, 2005, 07:36 AM   #11 (permalink)
Member
 
Join Date: Oct 2005
Location: tn
Posts: 162
Re: Force All Fields To Be Required On Upload Form?

I looked for that code in mine and could not find it.. am I looking in the wrong place?
cbr929rrerion is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot Post Comments - Required Fields DHewes Classifieds Installation & Upgrades 6 January 22nd, 2010 04:31 PM
Required fields before upload dont work OtAkU Bugs - vBulletin 3.5.X 5 December 6th, 2005 03:52 PM
Can you add custom required fields in the Upload Image area? OtAkU Before You Buy 2 November 14th, 2005 07:27 PM
required fields? ncg ReviewPost Suggestions 2 May 16th, 2005 08:38 AM


All times are GMT -5. The time now is 04:11 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0