PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Classifieds Support > Classifieds How do I...?

Classifieds How do I...? Wondering how to do something in Classifieds?

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old January 3rd, 2007, 10:38 PM   #1 (permalink)
Member
Verified Customer
 
Join Date: Oct 2004
Location: Florida
Posts: 318
Required Fields in Product Upload

I'm using the "extra1" field for the user's physical location across all ad types.

I have it listed next to the username in my category listings:

Code:
Content visible to verified customers only.
How do I go about making this extra1 field a "required" entry just as the zipcode entry is required?

Would this be an uploadproduct.tmpl edit or a mod to the uploadproduct.php script?

It would even be great to pull their location from their vBulletin profile as a default.
oldengine is offline   Reply With Quote
Old January 4th, 2007, 06:49 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,702
Any of this would be a mod since it is about altering the default code. Your can use the get_profiledata function on a user to get there location and print it all depends on what your doing. Maybe in uploadphoto.php this in bold?

Code:
Content visible to verified customers only.
You can then possibly in uploadproduct template add this in bold

Code:
Content visible to verified customers only.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.

Last edited by Chuck S; January 5th, 2007 at 05:20 PM.
Chuck S is offline   Reply With Quote
Old January 5th, 2007, 12:29 PM   #3 (permalink)
Member
Verified Customer
 
Join Date: Oct 2004
Location: Florida
Posts: 318
This line is already available and it works fine in showproduct.php by showing "$aduloc" in the showproduct template.

Code:
Content visible to verified customers only.
But, when it is used in uploadproduct.php after authenticate(); the variable "$aduloc" is empty in uploadproduct.tmpl, even though the user's profile location field is filled in. Maybe a query for this list is missing from uploadproduct.php?

This total concept is great, but it might be necessary to move this thread to the mods forum or the suggestions forum.

Thanks!
oldengine is offline   Reply With Quote
Old January 5th, 2007, 05:20 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,702
Reapply the line above I edited it
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old January 5th, 2007, 06:01 PM   #5 (permalink)
Member
Verified Customer
 
Join Date: Oct 2004
Location: Florida
Posts: 318
Excellent!
oldengine 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
Required fields before upload dont work OtAkU Bugs - vBulletin 3.5.X 5 December 6th, 2005 02:52 PM
Can you add custom required fields in the Upload Image area? OtAkU Before You Buy 2 November 14th, 2005 06:27 PM
Force All Fields To Be Required On Upload Form? kderentz How Do I? - vBulletin 3.0.X 10 October 26th, 2005 06:36 AM


All times are GMT -5. The time now is 01:21 PM.

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