Everyauction
Technical User
Hello everybody
Now, this is going to be a rather long one...
I am working on a highly modified Everyauction 1.53 Auction Script. A flat DB type Registry file is created for every Auction item. This file contains, besides the Info on the Auction Item, beginning from line No.50 on, seller & bidder infos such as Name, email, bidtime, Bid, address, e.t.c. This information is used during auction time for certain "statements" and after the auction ends to inform participating members about the results of the Sale.
Such typical User-related Item File lines would look (about) like this,
($variables: $alias, $email, $bid, $time, $add1, $add2, $add3)
where the first Line is always the Seller, all the below following lines contain bidder-information:
Since Users sometimes move or change E-Mail Addresses during participation on Auctions (as seller or bidder), so it should be possible to have updated not only their personal User Registry Data File, but also all Auction Registry Files containing related information of those specific Users as well.
For the type of Auction Software I use, an addon exists meant to do just that!
But unfortunately, the fellow (Michael Ammar) creating this addon, has been using a rather different approach of programming (probably CGI routines?) compared to what I know about Perl (so far), and even this is not so very much...! Beeing a Swiss (german) and reading/writing self-studied english makes it even harder for me to get that stuff into my 62year aold brain...
In Addition to this, no discussion thread has been found by me at the former EA Auction Script User Forum, when searching for any information regarding this Addon (I saved thousand's of such pages during the Years when the forum was still alive!).
NOW:
I adapted the addon according my Auction Configuration (an my knowledge).
The Addon is basically called by a line like the one below :
---
---
I also tried to write this line like this:
---
---
in order to pass the updated $variables ($form{'whatever'}), where required, to the "processor" script.
This line defines (all) Values of the User Reg File as well as the individual Item Numbers of Auctions where the User participates in (bids =>\@bids).
I adapted the $variables in the Addon as required to match my registry lines. I spent several evenings, trying to find every possible and impossible way to get any result, but I just failed to do anything to my Auction Item File User-Content, but nothing happen, exept for the User Reg File, with is updated by the Change Reg Script correctly.
It does not produce any (visual) error nor makes it any entries in the server log, so I really have a hard time to find out why it's not working.
The fellow who wrote it originally was a rather respected Addon-Creator, but his Addons where not broadly used because he did no write (nor explain) them "the simple way" we where used from other Addon Writers who used mostly Perl and much less CGI-routines (what I think this is).
I am adding the links to the the updateauctions sub as well as a rudimentary change-reg sub as reference, if anyone cares to look a little deeper into this.
The original addon can be found here:
I know that somewhere I screw up, but that
$args->{alias} && $args->{email} && $args->{name} ....
stuff is rather strange to me....
Thanks a lot!
Ernie
PS. One more thing:
I am bound on certain restrictions and limitations because of the archidecture of the (not so young) EveryAuction Software. Therefore, I am not free to change essential parameters because of compatibility with other existing Addons. So general arguments about "basics" would make not much sense.
Now, this is going to be a rather long one...
I am working on a highly modified Everyauction 1.53 Auction Script. A flat DB type Registry file is created for every Auction item. This file contains, besides the Info on the Auction Item, beginning from line No.50 on, seller & bidder infos such as Name, email, bidtime, Bid, address, e.t.c. This information is used during auction time for certain "statements" and after the auction ends to inform participating members about the results of the Sale.
Such typical User-related Item File lines would look (about) like this,
($variables: $alias, $email, $bid, $time, $add1, $add2, $add3)
where the first Line is always the Seller, all the below following lines contain bidder-information:
Code:
Hans[]hans@mail.com[]1.00[]1221479939[]Hans Meier[]Huberweg 4[]3000[]Bern
Ernie[]ernie@mail.com[]1.00[]1221494526[]Ernst Jacob[]Postbox 25[]5000[]Aarau
Beni[]beni@mail.com[]2.00[]1221494667[]Beni Jacob[]Postbox 4[]5506[]Dottikon
Ernie[]ernie@mail.com[]3.00[]1221494678[]Ernst Jacob[]Postbox 25[]5000[]Aarau
Since Users sometimes move or change E-Mail Addresses during participation on Auctions (as seller or bidder), so it should be possible to have updated not only their personal User Registry Data File, but also all Auction Registry Files containing related information of those specific Users as well.
For the type of Auction Software I use, an addon exists meant to do just that!
But unfortunately, the fellow (Michael Ammar) creating this addon, has been using a rather different approach of programming (probably CGI routines?) compared to what I know about Perl (so far), and even this is not so very much...! Beeing a Swiss (german) and reading/writing self-studied english makes it even harder for me to get that stuff into my 62year aold brain...
In Addition to this, no discussion thread has been found by me at the former EA Auction Script User Forum, when searching for any information regarding this Addon (I saved thousand's of such pages during the Years when the forum was still alive!).
NOW:
I adapted the addon according my Auction Configuration (an my knowledge).
The Addon is basically called by a line like the one below :
---
Code:
&updateauctions({currentAlias => $currentAlias, alias => $newAlias, email => $email, add1 => $add1, add2 => $add2, add3 => $add3, add4 => $add4, country => $country, phone => $phone, age => $age, approved => $approved, verified => $verified, ip => $ip, referral => $referral, refname => $refname, canned => $canned, myanswer => $myanswer, numposts => $numposts, bids => \@bids});;
I also tried to write this line like this:
---
Code:
&updateauctions({currentAlias => $form{'ALIAS'}, alias => $form{'ALIAS'}, email => $form{'ALIAS'}, add1 => $form{'ADDRESS1'}, add2 => $form{'ADDRESS2'}, add3 => $form{'ADDRESS3'}, add4 => $form{'ADDRESS4'}, country => $country, phone => $phone, age => $age, approved => $approved, verified => $verified, ip => $ip, referral => $referral, refname => $refname, canned => $canned, myanswer => $myanswer, numposts => $numposts, bids => \@bids});;
in order to pass the updated $variables ($form{'whatever'}), where required, to the "processor" script.
This line defines (all) Values of the User Reg File as well as the individual Item Numbers of Auctions where the User participates in (bids =>\@bids).
I adapted the $variables in the Addon as required to match my registry lines. I spent several evenings, trying to find every possible and impossible way to get any result, but I just failed to do anything to my Auction Item File User-Content, but nothing happen, exept for the User Reg File, with is updated by the Change Reg Script correctly.
It does not produce any (visual) error nor makes it any entries in the server log, so I really have a hard time to find out why it's not working.
The fellow who wrote it originally was a rather respected Addon-Creator, but his Addons where not broadly used because he did no write (nor explain) them "the simple way" we where used from other Addon Writers who used mostly Perl and much less CGI-routines (what I think this is).
I am adding the links to the the updateauctions sub as well as a rudimentary change-reg sub as reference, if anyone cares to look a little deeper into this.
The original addon can be found here:
I know that somewhere I screw up, but that
$args->{alias} && $args->{email} && $args->{name} ....
stuff is rather strange to me....
Thanks a lot!
Ernie
PS. One more thing:
I am bound on certain restrictions and limitations because of the archidecture of the (not so young) EveryAuction Software. Therefore, I am not free to change essential parameters because of compatibility with other existing Addons. So general arguments about "basics" would make not much sense.