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
Keeping a copy of reposted items (Read 304 times)
ernestb
eAuction User
**
Offline

I love Perl -
Sometimes

Posts: 5
USA
Keeping a copy of reposted items
08/16/04 at 00:57:04
 
I noticed that when you repost a closed item, the original listing that is in the closed folder is deleted.

Is there an easy patch to keep the system from deleting the orginal closed item?

I would like to keep a copy of all listings for future dispute issues.

Thanks,
EB

I also noticed that when you edit an item, the item number changes, should it not stay the same for reference purposes?  Or may be it should change and then  orginal item placed in the closed folder - for posible future reference?


If you change categories the item gets lost even though it is still in the orginal category folder.

???
Back to top
 
 


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

Dipl. Paranoiac ®

Posts: 1162
Germany
Gender: male
Re: Keeping a copy of reposted items
Reply #1 - 08/16/04 at 13:19:48
 
ernestb   wrote on 08/16/04 at 00:57:04:
I noticed that when you repost a closed item, the original listing that is in the closed folder is deleted.
Is there an easy patch to keep the system from deleting the orginal closed item?

That's easy but not recommended.
Go to sub proc_new
and search the sub for this lines:
Code:
	  if ($form{'FROMPREVIEW'}) {
		$form{'REPOST'} && do {
		    unlink "$config{'basepath'}$config{'closedir'}/$form{'REPOST'}.dat" or oops($!);




comment out this line
Code:
		unlink "$config{'basepath'}$config{'closedir'}/$form{'REPOST'}.dat" or oops($!);




it should look like this
Code:
	  if ($form{'FROMPREVIEW'}) {
		$form{'REPOST'} && do {
		    #unlink "$config{'basepath'}$config{'closedir'}/$form{'REPOST'}.dat" or oops($!);




ernestb   wrote on 08/16/04 at 00:57:04:
I also noticed that when you edit an item, the item number changes, should it not stay the same for reference purposes?  Or may be it should change and then  orginal item placed in the closed folder - for posible future reference?


The changed (edited) item is no longer valid - so why should it be stored?

ernestb   wrote on 08/16/04 at 00:57:04:
If you change categories the item gets lost even though it is still in the orginal category folder.


The edit problem is a real bug - sorry - my mistake :'(

Goto sub new
and search the sub for this lines:
Code:
print <<EO_HTML if exists $form{'EDIT'};
			  </select>
		    </td>
		</tr>
		<tr bgcolor="$config{'colortablebody'}">
		    <td valign="middle" nowrap>
			  <input type="hidden" name="EDIT" value="$form{'EDIT'}">




add this line:
Code:
			  <input type="hidden" name="old_cat" value="$form{'category'}">




it should look like this
Code:
print <<EO_HTML if exists $form{'EDIT'};
			  </select>
		    </td>
		</tr>
		<tr bgcolor="$config{'colortablebody'}">
		    <td valign="middle" nowrap>
		    <input type="hidden" name="EDIT" value="$form{'EDIT'}">
		    <input type="hidden" name="old_cat" value="$form{'category'}">




Go to sub proc_new
and search the sub for this lines:
Code:
   
	  if ($form{'FROMPREVIEW'}) {
		$form{'REPOST'} && do {
		    #unlink "$config{'basepath'}$config{'closedir'}/$form{'REPOST'}.dat" or oops($!);
		    delete $form{'REPOST'};
		};
		$form{'EDIT'} && do {
		    unlink "$config{'basepath'}$form{'CATEGORY'}/$form{'EDIT'}.dat" or oops($!);




edit this line
Code:
		    unlink "$config{'basepath'}$form{'CATEGORY'}/$form{'EDIT'}.dat" or oops($!);




it should look like this
Code:
		    unlink "$config{'basepath'}$form{'old_cat'}/$form{'EDIT'}.dat" or oops($!);


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


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