USANet Creations
Users Support and Discussion Areas

NOTE: Always state the software package you have
when asking questions so you will get the correct answer,
as it does make a big difference in the answers you'll get!

| Main Site Home Page | Forums Home Page |

Subject: "Image for feature, view my items, Relist for update my items"   Previous Topic | Next Topic
nonePrinter-friendly copy    
Conferences MakeBid Auction users addons and fixes Topic #309
Reading page 1 of 1 pages
wayland
Charter Member
31 posts, Rate this user
Jan-09-09, 09:08 PM (CST)
Click to add this user to your buddy list  
"Image for feature, view my items, Relist for update my items"
 
   I am making some changes and on my auction and ran into 3 little problems that I have worked hours on so it time for help.
1. I added Relist untill sold to my auction.pl This works fine when posting a auction. When you go to edit or update your item, Relist till sold is missing. You only see 1 and 2 times to relist
Does anyone know how to add the relist till sold to update your item page?

2nd and 3rd problem. Where do you change the setting to make picture show instead of the little camera in Feature items and View my items.
I found the below on this forum and tired, I get these errors.

Fri Jan 9 auction.pl: Global symbol "$image" requires explicit package name at /home/mysale2/public_html/cgi-bin/auction/mystore.pl line 762.
[Fri Jan 9 auction.pl: Global symbol "$image" requires explicit package name at /home/mysale2/public_html/cgi-bin/auction/mystore.pl line 762.
[Fri Jan 9 auction.pl: Compilation failed in require at /home/mysale2/public_html/cgi-bin/auction/config.pl line 2340.
Compilation failed in require at auction.pl line 58.

This is the code I used.

in the mystore.pl file under the sub find these lines:
my $filler = "<IMG SRC=\"$config{'fillerpic'}\">";

Now add this new line just above the line you just found:

my $imagedisp = "<IMG SRC=\"$image\" BORDER=\"0\" WIDTH=\"35\">" if ($image ne "");

Now find this line:

print "<TD>$config{'displistfont'}<A HREF=$ENV{'SCRIPT_NAME'}\?category=$key\&item=$file>$grabberpic $mytitle</A></TD>";

and replace it with this new line:

print "<TD>$config{'displistfont'}<A HREF=$ENV{'SCRIPT_NAME'}\?category=$key\&item=$file>$grabberpic $mytitle $imagedisp</A></TD>";

in the search.pl file under the sub procsearch { find these line:

my $filler = "<IMG SRC=$config{'fillerpic'}>";

Now add this new line just above the line you just found:

my $imagedisp = "<IMG SRC=\"$image\" BORDER=\"0\" WIDTH=\"35\">" if ($image ne "");

Now find this line:

print "<TD>$config{'displistfont'}<A HREF=\"$ENV{'SCRIPT_NAME'}?category=$key&item=$file\">$grabberpic $mytitle</A></TD>";

and replace it with this new line:

print "<TD>$config{'displistfont'}<A HREF=\"$ENV{'SCRIPT_NAME'}?category=$key&item=$file\">$grabberpic $mytitle $imagedisp</A></TD>";

Doe's anyone know a fix. Thanks, Wayland


  Alert | IP Printer-friendly page | Edit | Reply | Reply With Quote
Richardadmin click here to view user rating
Charter Member
1987 posts, 10 feedbacks, 19 points
Jan-09-09, 10:41 PM (CST)
Click to view user profileClick to add this user to your buddy list  
1. "RE: Image for feature, view my items, Relist for update my i"
 
   >I am making some changes and on my auction and ran into 3 little
>problems that I have worked hours on so it time for help.
>1. I added Relist untill sold to my auction.pl This works fine when
>posting a auction. When you go to edit or update your item, Relist
>till sold is missing. You only see 1 and 2 times to relist
>Does anyone know how to add the relist till sold to update your
>item page?

to do this there are lots of change you have to make the currect change is only a start, you also have to make these change in the admin.pl and the selleredit.pl files and also imcrese the uploaded images delete time by years (by defaut the images are deleted in 129 days) and you will need a hosting account where you can house gigs and gig of images to do this as they will have to be keept for years.


in the admin.pl and the selleredit.pl file you will find these lines and just add the new listing times to it. byt add in more line like this <OPTION VALUE="3">3</OPTION> or like this <OPTION VALUE="999999">Untill Sold</OPTION>

<TR><TD VALIGN=TOP><B>Auto Relist.</TD>
<TD>Now( $relist ) Reset to <select name=relist value=$relist size=1>
<OPTION VALUE="$relist">Current relistings ($relist )</OPTION>
<option VALUE="0">None</OPTION>
<OPTION VALUE="1">1</OPTION>
<OPTION VALUE="2">2</OPTION>
</select></TD></TR>

now in the config.pl and the yourphoto.pl files from and increse the uploaded image delete time under this setup below (the images are auto delete at the end of this time item sold or not!!):

#################################
# Delete auction item images after X Days
# starts from the time the image was uploaded
# NOTE if you change this setting make sure you change it
# in the config.pl file as well or there will be problems
# ALSO NOTE: if you change/increase the auto relisting times
# the user can select when posting a auction item you will have
# to increase the image delete time. for each extra auto relist
# added you will have to increase this time by 60 days.

$config{'delimagedays'} = 160;



>2nd and 3rd problem. Where do you change the setting to make
>picture show instead of the little camera in Feature items and View
>my items.
>I found the below on this forum and tired, I get these errors.

The coding you found is for the standard versions only!! with the deluxe version all the $image in the coding instructions you found has to be $image1


  Alert | IP Printer-friendly page | Edit | Reply | Reply With Quote
wayland
Charter Member
31 posts, Rate this user
Jan-09-09, 10:55 PM (CST)
Click to add this user to your buddy list  
2. "RE: Image for feature, view my items, Relist for update my i"
 
   Very Fast with the answers. Now I am going to work late and fix it all. Thank You Richard


  Alert | IP Printer-friendly page | Edit | Reply | Reply With Quote


Conferences | Topics | Previous Topic | Next Topic
Rate this topic Rate this topic