eAuction
  Not just another Perl script
Google
Welcome, Guest. Please Login or Register


If you use eAuction a lot and like it or if you make money from eAuction or from eAuction-related activities ...
then the project asks you for a donation in favor of the further development.



The forums are protected by
AccessControl
(written by Dieter Werner)
Click here if you want to check your IP against the most important RBLs of the net.
Click here in order to visite the AccessControl forums.


<< Visit the international e Auction Marketplace >>
Buy and sell PC and Consumer Electronic components






  HomeHelpSearchLoginRegister
 



Pages: 1 2 3 
Auction open and close times (Read 791 times)
thisolddoll
eAuction Novice
*
Offline

I love my cats!

Posts: 0
Ohio
Gender: female
Re: Auction open and close times
Reply #6 - 11/22/03 at 21:49:19
 
About referencing images, must be missing something.  The program can call a browser to interptet the string,  

"Multimedia file viewing and clickable links are available for registered members only!!  You need to Login or Register!!
"

in the item file

but not

"Multimedia file viewing and clickable links are available for registered members only!!  You need to Login or Register!!
"

in the same way without using image magic?

 As for losing the listing screen on the return from preview, it's only the first time and it's the description as well as the photos.  

It only happens on the first return, though.  After it's entered a second time, going to preview and back doesn't lose it.  I told people on 151 to type junk into the field, preview, then return before filling in the form for real.  Not the best of ideas but ebay used to have the same problem.  

In fact, ebay had (and still does have) so many problems that most don't use the on-line input but use a listing program that lets them fill their fields with a data file and then upload them as a batch.  

When I list, I put all my data into a template.txt file and give it the same name as the base name of the photos.  So doll11.jpg, doll12.jpg ...doll16.jpg would have a file doll1.txt  Then it's just a matter of copy and paste.  Most people won't do this, though.  If there isn't a menu, they're lost.  So I can write something for them to generate the file on their own system, but getting the data from their system to my web space is the problem.  That and assigning the unique item number.  
Maybe next year. :)


   Thanks and I'm going to go try your answer, now with the images.

Michele
Back to top
 
 

Michele


Advertising
View Profile | WWW | AIM   IP Logged
thisolddoll
eAuction Novice
*
Offline

I love my cats!

Posts: 0
Ohio
Gender: female
Re: Auction open and close times
Reply #7 - 11/23/03 at 00:42:12
 
Getting there!  OK - this shows what I has saying but it gets lost in the screen wrap, I'm afraid:



# if $image[0] contains "http:" then      (it's somewhere else on the web so this assignment to $disp_img works.

my $disp_img.= qq|<img src="$image[0]" width="50">|;


# but if the program uploaded it, then it doesn't contain http:  so then this works:                                                
my $disp_img.= qq|<img src="$config{'img_url'}/$image[0]" width="50">|;

So, the point is, if the upload procedure uploaded the full string to the data file, then $disp_image could have the same value no matter where the image is or how it got there.

Otherwise, the $image[0] string could be tested before the value of $disp_img is assigned, but I think that's a bit messy - more of a patch then a design.  One drawback is slightly larger data files, but one advantage is not needing to ad a new instruction to do the string compare and act on the result.

Anyway, if this works, it's an add on that only needs changing about six lines of code to implement.  :)
Back to top
 
 

Michele


Advertising
View Profile | WWW | AIM   IP Logged
Dieter Werner
Administrator
*****
Offline

Dipl. Paranoiac ®

Posts: 1162
Germany
Gender: male
Re: Images
Reply #8 - 11/23/03 at 13:14:32
 
You can do it this way:

search sub disp_list for:
         
           $image
               ? ($img_info = qq|<img src="$config{'icon_url'}/$config{'if_image'}" border="0">|)
               : ($img_info = qq|<img src="$config{'icon_url'}/$config{'no_image'}" border="0">|);

and replace the lines with the following code:

         my @image = ();
           $image
               ?   do {
                 @image = split / /, $image;
                 $image !~ /http\:/
                     ?      ($img_info = qq|<img src="$config{'img_url'}/$image"@{[img_size($image[0], 50)]}>|)
                     :      ($img_info = qq|<img src="$image[0]" width=50 border=0>|);
                 
               }
               :   ($img_info = qq|<img src="$config{'icon_url'}/$config{'no_image'}" border="0">|);
Back to top
 
 

Multimedia file viewing and clickable links are available for registered members only!!  You need to Login or Register!!


Greetings from Germany
Dieter Werner




Advertising
View Profile | WWW   IP Logged
Pages: 1 2 3 


If you like eAuction, please Rate it.
If you don't like eAuction, please Rate it too.


1 is being poor and 10 is being excellent


EveryScript

ip-location


AccessControl - Members Only