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 4 ... 9
Implementing your script for auction.pl AUTOPOST.P (Read 3298 times)
www.blitzday.com
eAuction User
**
Offline

I love the script
and hate it if it
does not work

Posts: 60

Re: Implementing your script for auction.pl AUTOPO
Reply #3 - 11/26/04 at 12:13:47
 
I solved the Alias thing then it went sour on the category and i fixed that. But then it said the .dat was wrong and it would be posted but mess up all the 161 script. if i deleted the posted .dat then all would be normal again. i compared trhe 161 .dat next to the .dat generatred by the autopost.pl script and it does not match at all and that is why it goes wrong i guess..
Back to top
 
 


Advertising
View Profile   IP Logged
Dieter Werner
Administrator
*****
Offline

Dipl. Paranoiac ®

Posts: 1162
Germany
Gender: male
Re: Implementing your script for auction.pl AUTOPO
Reply #4 - 11/26/04 at 15:57:06
 
The script you are talking about has been written in the year 2000 by me and it is related with EveryAuction only.

Use this one (add the sub to your eAuction.pl):
Code:
#-#############################################
# Sub: Bulklister
# This processes new items from a given csv file.
# Copyright by: Dieter Werner
#-#############################################
sub proc_bulklister {
   my (
       $password, $cnt, $datuser, $datheader, $record,
       @data, @datheader, @record
   );
   local $_;
   
   $config{'csv'} = '\|';
   $config{'post_dir'} = 'autopost';
   $config{'post_dat'} = 'autopost.dat';
   
   check_dir("$config{'basepath'}$config{'post_dir'}");
   
   open BULK, "$config{'basepath'}$config{'post_dir'}/$config{'post_dat'}" or oops $!;    
   ($datuser, $datheader, @data) = <BULK>;    
   close BULK;
   
   chomp ($datuser, $datheader);
   
   $form{'FROMPREVIEW'} = 1;
   ($form{'ALIAS'}, $form{'PASSWORD'}) = split /$config{'csv'}/, $datuser;
       
   @datheader = split /$config{'csv'}/, $datheader;

       foreach $record (@data) {
           chomp $record;
           @record = split /$config{'csv'}/, $record;            
           $form{$_} = shift @record foreach @datheader;              
           oops('The category does not exist') unless $category{$form{'CATEGORY'}};            
           proc_new();
           $cnt++;
           undef @record;
       }
   
   delete $form{'FROMPREVIEW'};
   
   print qq|<br><br>\n<div align="center">$cnt items were posted successfully.<br><br></div>\n|;

} 



Add this line to the event-block of eAuction.pl
Code:
        'autopost'            =>  \&proc_bulklister, 



Examle of the CSV file:
Quote:
YourAlias|YourPassword
CATEGORY|TITLE|RESERVE|INC|DESC|IMAGE0|START_DAYS|START_HOUR|START_MIN|START_SEC
|DAYS|HOUR|MIN|SEC|BID|BUY_IT
computer|Bulklister01|1.00|1.00|The Description|Multimedia file viewing and clickable links are available for registered members only!!  You need to Login or Register!!

computer|Bulklister02|1.00|1.00|The Description|Multimedia file viewing and clickable links are available for registered members only!!  You need to Login or Register!!

computer|Bulklister03|1.00|1.00|The Description|Multimedia file viewing and clickable links are available for registered members only!!  You need to Login or Register!!

computer|Bulklister04|1.00|1.00|The Description|Multimedia file viewing and clickable links are available for registered members only!!  You need to Login or Register!!

computer|Bulklister05|1.00|1.00|The Description|Multimedia file viewing and clickable links are available for registered members only!!  You need to Login or Register!!



This addon has been tested and it is working very well.
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
www.blitzday.com
eAuction User
**
Offline

I love the script
and hate it if it
does not work

Posts: 60

Re: Implementing your script for auction.pl AUTOPO
Reply #5 - 11/26/04 at 16:41:27
 
Excellent, except:

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


Check it please.

I had to change the 1.00 in 1,00 as well to make it work this far, but if I do this for the buy-it it does keep hanging on this error... each step we are getting closer to the solution Smiley thank you! I gave you a little beer funding for your help.

xxxxxxxx|xxxxxxxx
CATEGORY|TITLE|RESERVE|INC|DESC|IMAGE0|START_DAYS|START_HOUR|START_MIN|S TART_SEC|DAYS|HOUR|MIN|SEC|BID|BUY_IT
Adult|Bulklister01|1,00|1,00|Test|Multimedia file viewing and clickable links are available for registered members only!!  You need to Login or Register!!
|40|0|7|14|40|0|10,00|0,00
Back to top
 
 


Advertising
View Profile   IP Logged
Pages: 1 2 3 4 ... 9


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