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
or
!!
computer|Bulklister02|1.00|1.00|The Description|Multimedia file viewing and clickable links are available for registered members only!! You need to
or
!!
computer|Bulklister03|1.00|1.00|The Description|Multimedia file viewing and clickable links are available for registered members only!! You need to
or
!!
computer|Bulklister04|1.00|1.00|The Description|Multimedia file viewing and clickable links are available for registered members only!! You need to
or
!!
computer|Bulklister05|1.00|1.00|The Description|Multimedia file viewing and clickable links are available for registered members only!! You need to
or
!!
This addon has been tested and it is working very well.