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 10th, 2010, 06:50 AM   #1 (permalink)
Junior Member
Verified Customer
 
Join Date: Jan 2010
Posts: 4
How can I add a 20 day auction option?

I'd have thought I could add / edit this bit of uploadproduct.tmpl in order to change the lengths of the auctions available.

Code:
Content visible to verified customers only.
BUT, if I add another option or even change one of the existing ones (eg. I changed out the 90 day for a 20 day) I get a blank space on the dropdown menu of auction lengths, and if I select the blank space where my option should be, I get the default auction length of 15 days. If I change it back to the original number, it reappears and works as originally intended.

I even tried altering the default selected one to be the 20 day auction (simply changed option value="15" to "20") and that still defaults to the 15 day auction.

Are these auction lengths coming from somewhere else? Is there another file I need to edit to add a 20 day auction option? What's the deal with uploadproduct 1,2,3 and 4?

thanks in advance, this is driving me nuts.
bendy is offline   Reply With Quote
Old January 10th, 2010, 08:48 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,069
You have not added the appropriate language string in the languages so of course it is going to be blank. This would work

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.
Chuck S is offline   Reply With Quote
Old January 10th, 2010, 01:17 PM   #3 (permalink)
Junior Member
Verified Customer
 
Join Date: Jan 2010
Posts: 4
That makes the 20 days option appear in the drop down list nicely, but when it is selected the auction still defaults to 15 days duration.

Code:
Content visible to verified customers only.
The other ones work ok, but not the one I added.

Oddly the other ones default to 15 even if I change the option value (ie. if I change 15 to be 20, it's still 15 when the auction starts. So where is it getting 15 from?)
bendy is offline   Reply With Quote
Old January 10th, 2010, 01:23 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,069
Your telling me if you upload an ad and select a duration it is only set to 15?
__________________
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 10th, 2010, 03:16 PM   #5 (permalink)
Junior Member
Verified Customer
 
Join Date: Jan 2010
Posts: 4
If I upload an auction and select my new 20 day duration, the resulting auction is only set to 15 days, yes.

Seperately (ie. reverting back to standard template and trying something different) editing any of the standard durations will result in a new auction also being set to 15. For example:

Code:
Content visible to verified customers only.
The above would still give me a 15 day auction, even though option value 15 isn't anywhere in the code.


NB, in case it makes any difference, that these are auctions rather than straight ads.

All I need is to be able to hardcode in a duration of my choice - my install isn't for user use, just for the admin (me) to run one auction.
bendy is offline   Reply With Quote
Old January 11th, 2010, 09:43 AM   #6 (permalink)
Junior Member
Verified Customer
 
Join Date: Jan 2010
Posts: 4
New install on the live server (I was testing on my dev server before) and the same problem persists.

Adding
Code:
Content visible to verified customers only.
to the list of options gives me a 15 day auction.

What about uploadproduct1 .. 4.tmpl, do those need to be modified as well?
bendy is offline   Reply With Quote
Old January 11th, 2010, 10:47 AM   #7 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,069
Yes you need to modify all the templates you want.

Unless you have altered something incorrectly I have tested the default duration functionaliity in the program and see no issues.
__________________
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 April 3rd, 2010, 11:57 PM   #8 (permalink)
Junior Member
Verified Customer
 
Join Date: Nov 2009
Posts: 16
i had the exact same issue with this, in the uploadproduct.php

there is a missing array in the original file

$checkduration = array("3", "7", "15", "30", "45", "60", "90");
if (!in_array("$duration", $checkduration)) {
$duration = 15;

because this array value is missing it treats it as 15

so the solution to your problem will have something to do with that, my guess is because "20" is not in the array its treating your 20 day auction like a 15 day auction.

have a read of this thread it might help you out

how do i make a 4, 5 or 6 day auction?

Last edited by 20KingSize; April 4th, 2010 at 12:09 AM.
20KingSize is offline   Reply With Quote
Old April 4th, 2010, 08:14 AM   #9 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,069
yes I posted my thoughts on that
__________________
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
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
Chuck: Auction Countdown for 10 day auction is WRONG! :) KenDude Classifieds How do I...? 5 September 16th, 2008 02:40 PM
Auction ended email sent every 3. day zews Classifieds Bug Reports 18 February 27th, 2008 05:18 PM
Add Currency Option. Canadian RCHobbies Classifieds How do I...? 3 April 1st, 2006 05:57 PM
Classified's Admin demo? Auction option in demo? JDebler Before You Buy 8 February 26th, 2005 06:49 AM
Add a new user option to a category? rbl How Do I? - vBulletin 3.0.X 1 February 21st, 2005 04:43 AM


All times are GMT -5. The time now is 04:35 AM.

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