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 April 3rd, 2010, 12:39 PM   #1 (permalink)
Junior Member
Verified Customer
 
Join Date: Nov 2009
Posts: 16
how do i make a 4, 5 or 6 day auction?

in the "How long do you want your ad to run?" option i would like to add 4,5,6 day auctions, how would i go about doing that please?

im not an experienced coder so i would appreciate a reply i can understand. which file would i need to edit and what would be the exact code to do this would be a major help... thanks
20KingSize is offline   Reply With Quote
Old April 3rd, 2010, 01:08 PM   #2 (permalink)
Junior Member
Verified Customer
 
Join Date: Nov 2009
Posts: 16
i just found this had sort of been asked but refers to 20 days

How can I add a 20 day auction option?

so can i just run this by you to make sure i have it correct.

uploadproduct.tmpl would be the file i would need to edit?

and would this be the correct code i would need?

<option selected="selected" value="15">{$pp_phrase['15days']}</option>
<option value="3">{$pp_phrase['3days']}</option>
<option value="4">{$pp_phrase['4days']}</option>
<option value="5">{$pp_phrase['5days']}</option>
<option value="6">{$pp_phrase['6days']}</option>
<option value="7">{$pp_phrase['7days']}</option>
<option value="10">{$pp_phrase['10days']}</option>
<option value="30">{$pp_phrase['30days']}</option>
<option value="60">{$pp_phrase['60days']}</option>
<option value="90">{$pp_phrase['90days']}</option>
<option value="9999">{$pp_phrase['noexpire']}</option>

would uploadproduct.tmpl be the only file i would need to edit or would i need to do the same for:-

uploadproduct1.tmpl
uploadproduct2.tmpl
uploadproduct3.tmpl
uploadproduct4.tmpl

thanks for your help
20KingSize is offline   Reply With Quote
Old April 3rd, 2010, 04:45 PM   #3 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,702
For auctions it would only be uploadproduct template itself and your code is correct except for one exception.

{$pp_phrase['3days']}

Your phrases do not exist and unless your going to be inserting phrases into the database you need to hard code that part of your stuff like so

3 days

<option value="3">3 days</option>
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old April 3rd, 2010, 07:53 PM   #4 (permalink)
Junior Member
Verified Customer
 
Join Date: Nov 2009
Posts: 16
this was the original code

<option selected="selected" value="15">{$pp_phrase['15days']}</option>
<option value="3">{$pp_phrase['3days']}</option>
<option value="7">{$pp_phrase['7days']}</option>
<option value="10">{$pp_phrase['10days']}</option>
<option value="30">{$pp_phrase['30days']}</option>
<option value="60">{$pp_phrase['60days']}</option>
<option value="90">{$pp_phrase['90days']}</option>
<option value="9999">{$pp_phrase['noexpire']}</option>

i never edited {$pp_phrase['3days']} all i did was add

<option value="4">{$pp_phrase['4days']}</option>
<option value="5">{$pp_phrase['5days']}</option>
<option value="6">{$pp_phrase['6days']}</option>

so am i bit confused as to why there is an exception with {$pp_phrase['3days']} but none of the ones i added

i understand that the phrases will not exist until they are added to the database but how do i go about adding the phrases to the database? my question is how do i go from wanting to do this to actually achieving it.

thanks for your help
20KingSize is offline   Reply With Quote
Old April 3rd, 2010, 08:35 PM   #5 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,702
You would actually physically have to add new phrases to the database maybe using phpmyadmin which is why I suggested you do it the easy way

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 online now   Reply With Quote
Old April 3rd, 2010, 08:55 PM   #6 (permalink)
Junior Member
Verified Customer
 
Join Date: Nov 2009
Posts: 16
still a bit unsure

<option selected="selected" value="15">{$pp_phrase['15days']}</option>
<option value="3">{$pp_phrase['3days']}</option>
<option value="4">4 days</option>
<option value="5">5 days</option>
<option value="6">6 days</option>
<option value="7">{$pp_phrase['7days']}</option>
<option value="10">{$pp_phrase['10days']}</option>
<option value="30">{$pp_phrase['30days']}</option>
<option value="60">{$pp_phrase['60days']}</option>
<option value="90">{$pp_phrase['90days']}</option>
<option value="9999">{$pp_phrase['noexpire']}</option>

would i be correct in thinking the above code is all i need to add?
20KingSize is offline   Reply With Quote
Old April 3rd, 2010, 09:03 PM   #7 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,702
Yes that looks completely fine.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old April 3rd, 2010, 09:16 PM   #8 (permalink)
Junior Member
Verified Customer
 
Join Date: Nov 2009
Posts: 16
thanks chuck...

so my 4,5,6 day options will now function exactly the same as the 3,7,10,15 etc day options?

if so then yeah sounds like an easy option to me
20KingSize is offline   Reply With Quote
Old April 3rd, 2010, 09:26 PM   #9 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,702
If you add those durations to the template then yes users will be allowed to select those durations for their ad.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old April 3rd, 2010, 11:15 PM   #10 (permalink)
Junior Member
Verified Customer
 
Join Date: Nov 2009
Posts: 16
thanks for your help chuck, much appreciated.

one more thing i could do with a little bit of assistance is... my 10 day auction option has never worked correctly, when i set a 10 day auction it shows as a 15 day auction. i have not touched this in any way.

can you help me correct this please... thanks in advance
20KingSize is offline   Reply With Quote
Old April 3rd, 2010, 11:48 PM   #11 (permalink)
Junior Member
Verified Customer
 
Join Date: Nov 2009
Posts: 16
ok ive corrected it... in your original code uploadproduct.php

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

the value of "10" isnt included in the array, i added it the same as i did for my own customisations:-

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

and it now all works
20KingSize is offline   Reply With Quote
Old April 4th, 2010, 08:13 AM   #12 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,702
Yes any durations you add you need to also add to the checkduration array as that prevents anyone from sneaking in a duration using some html web editor.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   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
How can I add a 20 day auction option? bendy Classifieds How do I...? 8 April 4th, 2010 08:14 AM
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
"1 day", "7 day" links not displaying images. taveren Photopost Pro How Do I...? 6 June 14th, 2006 10:18 PM


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

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