The eAuction Support Forums
https://www.everyscript.de/cgi-bin/yabb/YaBB.pl
eAuction 1.6.1.x >> Addon Proposals >> Relist
https://www.everyscript.de/cgi-bin/yabb/YaBB.pl?num=1101824016

Message started by www.blitzday.com on 11/30/04 at 15:13:36

Title: Relist
Post by www.blitzday.com on 11/30/04 at 15:13:36

Hi,

Is there an addon script that can allow people to use relist directly without having to go through all the setup and options again like a one button relist with old values?

Freddy

Title: Re: Relist
Post by Dieter Werner on 11/30/04 at 15:21:50

I don't understand

Title: Re: Relist
Post by chicoletto on 12/05/04 at 09:58:01


Dieter Werner wrote:
I don't understand

If the auction is finished it goes in the garbage. It would be good if when you put an auction there would be a possibility to choose an option  like " If the item is not sold put it automaticly for sale again" ! Is it possible ?

Title: Re: Relist
Post by Dieter Werner on 12/05/04 at 10:05:47

What you mean is an auto_relist function.
Yes - that's possible.
Maybe I will code an addon ...

Title: Re: Relist
Post by chicoletto on 12/05/04 at 10:11:10


Dieter Werner wrote:
What you mean is an auto_relist function.
Yes - that's possible.
Maybe I will code an addon ...

Yeah tahst it..... auto-relist function.
It would be really good to have an addon  ;D
Thanx for your work !!!

Title: Re: Relist
Post by Dieter Werner on 12/05/04 at 16:32:04


chicoletto wrote:
Yeah tahst it..... auto-relist function.
It would be really good to have an addon  ;D


It's already a part of the next version  :)

Title: Re: Relist
Post by www.blitzday.com on 12/05/04 at 17:25:46

Dieter,

Could we please have it already as it would increase acitvity on the sites build with this!!

Please :-)

Freddy

Title: Re: Relist
Post by Dieter Werner on 12/06/04 at 23:28:05


www.blitzday.com wrote:
Dieter,

Could we please have it already as it would increase acitvity on the sites build with this!!

Please :-)

Freddy


Sorry - but the code of this feature is spread over the whole script - so it isn't possible to write a short install instruction.

Title: Re: Relist
Post by chicoletto on 12/06/04 at 23:49:22


Dieter Werner wrote:
Sorry - but the code of this feature is spread over the whole script - so it isn't possible to write a short install instruction.

Hey Dieter, I have another question for you about add-on....
Is it possible for you to create an add-on to see on the website how many user are registred on the auctionwebsite we are using ?
Let say....34 people are registred, so on the website you could see a line like : Registrated user : 34

Can u do that for me ? ( and for the other people ) ?
Thanx for your help

Title: Re: Statistics
Post by Dieter Werner on 12/07/04 at 11:32:15

In order to display the stats of your auction ...

1. Replace sub disp_cat with the following

Code:
#-#############################################
# Sub: Display List Of Categories
# This creates directories and a list of categories
# Contributed by: Dieter Werner
#-#############################################
sub disp_cat {
   my ($key, $numitems, $row, $rowcolor);
   my $all_items = 0;
   
print <<EO_HTML;
<div align="center">
   <table bgcolor="#FFFFFF" width="770" border="0" cellspacing="0" cellpadding="0">
     <tr>
         <td width="200" valign="top"><br>
           <table bgcolor="$config{'colortablebody'}" width="200" border="0" cellspacing="1" cellpadding="3">
               <tr bgcolor="$config{'colortablehead'}">
                 <td align="center"><b>$txt{'Category'}</b></td>
                 <td align="center" nowrap><b>$txt{'Items'}</b></td>
               </tr>
EO_HTML
   
       foreach $key (sort keys %category) {
           oops($txt{'The category may not contain any non word characters'})
           if $key =~ /\W/;
           
           check_dir("$config{'basepath'}$key");
           $numitems = count_items(\$key) || 0;
           $all_items += $numitems;
           ($row, $rowcolor) = get_row_color($row);
       
print <<EO_HTML;
               <tr $$rowcolor>
                 <td>
                     <a href="$ENV{'SCRIPT_NAME'}?action=search&searchtype=items&searchstring=$key&lang=$form{'lang'}">
                     <b>$category{$key}</b></a>
                 </td>
                 <td width="50" nowrap><font size="1">  <b>$numitems</b></font></td>
               </tr>
EO_HTML
           
       }

print <<EO_HTML;
               </tr>
           </table>
         <td align="center" valign="top"><br>
           @{[disp_random('pic', 4)]}<br>
           @{[disp_random('list', 5)]}<br>
           @{[disp_stat($all_items)]}<br>
           @{[disp_runtime()]}<br>
           @{[disp_banner('tbl')]}
         </td>
     </tr>
   </table>
</div>
<br>
EO_HTML
   
}

##############################################
# Sub: Display Statistics
# Contributed by: Dieter Werner
##############################################
sub disp_stat {
   my $items = shift;
   my $users = 0;

   opendir DIR, "$config{'basepath'}$config{'regdir'}" or oops($!);
   $users = grep /\.dat$/, readdir DIR;
   closedir DIR;

my $table = <<EO_HTML;
               <table>
               <tr>
                       <td nowrap><font size="1"><b>$txt{'Registered Users'}:</b></font></td>
                 <td nowrap><font size="1"><b>$users</b></font></td>
               </tr>
               <tr>
                 <td nowrap><font size="1"><b>$txt{'Open Auctions'}:</b></font></td>
                 <td nowrap><font size="1"><b>$items</b></font></td>
               </tr>
           </table>
EO_HTML

}


2. Open eConfig161.pl
3. Search the file for %txt = (
4. Add the following lines to the block

Code:

       'Registered Users' => ['Registrierte Teilnehmer', ],
       'Open Auctions' => ['Offene Auktionen', ],

Title: Re: Relist
Post by tcwc on 12/11/04 at 02:02:38

Did anyone get this to work?  I edited the eauction.pl by deleting the sub disp_cat and replacing it with the listing above.  Also edited the econfig161.pl as directed.  Upon uploading the edited files, the auction is gone, and I get a 500 server error.  I rechecked the permissions of both files just to be sure.  Still didn't work.  Had to reupload a unedited eauction.pl to get back working.  I did the edits twice, thinking I screwed something up.  Any ideas?  Thanks for a great script!

Title: Re: Relist
Post by Dieter Werner on 12/11/04 at 13:44:09


tcwc wrote:
Did anyone get this to work?  I edited the eauction.pl by deleting the sub disp_cat and replacing it with the listing above.  Also edited the econfig161.pl as directed.  Upon uploading the edited files, the auction is gone, and I get a 500 server error.  I rechecked the permissions of both files just to be sure.  Still didn't work.  Had to reupload a unedited eauction.pl to get back working.  I did the edits twice, thinking I screwed something up.  Any ideas?  Thanks for a great script!


Unfortunately the forum software adds line breaks to the contributions ...
so check this line:
<a href="$ENV{'SCRIPT_NAME'}?action=search&searchtype=items&searchstring=$key&lang=$form{'lang'}">

And ...
each EO_HTML needs an 'carriage return'
so set the cursor near behind the 'L' and hit the return key.


Title: Re: Relist
Post by Dieter Werner on 12/11/04 at 14:30:03


tcwc wrote:
Did anyone get this to work?  I edited the eauction.pl by deleting the sub disp_cat and replacing it with the listing above.  Also edited the econfig161.pl as directed.  Upon uploading the edited files, the auction is gone, and I get a 500 server error.  I rechecked the permissions of both files just to be sure.  Still didn't work.  Had to reupload a unedited eauction.pl to get back working.  I did the edits twice, thinking I screwed something up.  Any ideas?  Thanks for a great script!


Your auction site is showing this:

Quote:
Powered By TCW Auctions!
Copyright © 2002 - 2005 The Computer Works!

very nice ...  >:(

Title: Re: Relist
Post by tcwc on 12/11/04 at 16:57:44

yes, sorry.  Got late last night and I got frustrated...went to bed.  I wanted the 'site' copyright, but not the 'powered by' changed.  Changed too much.  First time editing .pl's.  I am changing that in a few minutes (as soon as I find the line again).

If anyone got the 'list users and auctions' to work, please let me know.  Thanks again for a great script!

Title: Re: Relist
Post by tcwc on 12/11/04 at 17:31:17


Quote:
Unfortunately the forum software adds line breaks to the contributions ...
so check this line:
<a href="$ENV{'SCRIPT_NAME'}?action=search&searchtype=items&searchstring=$key&lang=$form{'lang'}">

And ...
each EO_HTML needs an 'carriage return'
so set the cursor near behind the 'L' and hit the return key


I did notice on my 'copy/paste' that there was a illegal 'break' in the '$key' of the above line.  I corrected that and made sure to add a carriage return after each EO_HTML.  It still crashes after uploading.  Did it again twice, maybe I just didn't get enough sleep last night!

Title: Re: Relist
Post by tcwc on 12/11/04 at 20:01:04

Well, still no go.  I even tried a 'side by side' view/addition from the posted code to the original .pl and it still dies after upload.  No big deal, just thought it would be a nice feature.
I wired over some bucks for a few beers!  Cheers!

The eAuction Support Forums » Powered by YaBB 2.2!
YaBB © 2000-2007. All Rights Reserved.