USANet Creations
Users Support and Discussion Areas

NOTE: Always state the software package you have
when asking questions so you will get the correct answer,
as it does make a big difference in the answers you'll get!

| Main Site Home Page | Forums Home Page |

Subject: "selleredit notification"   Page 1 | 2 | Previous Topic | Next Topic
nonePrinter-friendly copy    
Conferences MakeBid Auction user submitted addons and updates Topic #376
Reading page 1 of 2 pages
moneysav
Charter Member
102 posts, Rate this user
Oct-10-11, 10:59 PM (CST)
Click to add this user to your buddy list  
"selleredit notification"
 
   Hi, A user listed something with questionable references in the description section.

Because I get an email notice when all new listings are added, I spotted the infringment and removed it.

If the user goes back in and uses the selleredit function to put the references back into the description I would not know about it.

How can I get email notification of any user editing his listing?


  Alert | IP Printer-friendly page | Edit | Reply | Reply With Quote
Richardadmin click here to view user rating
Charter Member
2036 posts, 11 feedbacks, 21 points
Oct-13-11, 02:25 AM (CST)
Click to view user profileClick to add this user to your buddy list  
1. "RE: selleredit notification"
 
   in the selleredit.pl file under the sub sellerchange {
find these lines:

print "<p>You may want to go to <A HREF=\"$ENV{'SCRIPT_NAME'}\?category=$form{'CATEGORY'}\&item=$form{'ITEM'}\">the item</a> to confirm the changes.\n";

Now paste these new lines just below the lines you just found:

&sendemail($config{'admin_address'}, $config{'admin_address'}, 'Seller Item Changes', "You may want to go to $config{'scripturl'}$ENV{'SCRIPT_NAME'}\?category=$form{'CATEGORY'}\&item=$form{'ITEM'} the sellers item</a> to confirm the changes.");


  Alert | IP Printer-friendly page | Edit | Reply | Reply With Quote
moneysav
Charter Member
102 posts, Rate this user
Oct-13-11, 05:08 AM (CST)
Click to add this user to your buddy list  
2. "RE: selleredit notification"
 
   Hi Richard,
added the lines exactly where your told me to and got no errors but neither did I get an email notification to admin (me) when I made a test change to one of my listings.

Cheers


  Alert | IP Printer-friendly page | Edit | Reply | Reply With Quote
moneysav
Charter Member
102 posts, Rate this user
Oct-13-11, 06:33 AM (CST)
Click to add this user to your buddy list  
3. "RE: selleredit notification"
 
   Hi, it works now.
I dont know why it took so long for the change to get emailed to me but after about 20 minutes I got the email.

Anyway, your mod works.
thanks


  Alert | IP Printer-friendly page | Edit | Reply | Reply With Quote
moneysav
Charter Member
102 posts, Rate this user
Oct-20-11, 01:26 AM (CST)
Click to add this user to your buddy list  
4. "RE: selleredit notification"
 
   just an after thought

got an email notification that a user made some changes to his listing. clicked on the link and saw his listing but I'll be darn if I know what in the listing had changed since I had'nt seen his listing before the changes were made.

any chance of getting a before and after description in my email telling me WHAT has changed ??

Regards


  Alert | IP Printer-friendly page | Edit | Reply | Reply With Quote
Homermoderator click here to view user rating
Member since Jan-10-08
334 posts, 3 feedbacks, 6 points
Oct-20-11, 04:20 PM (CST)
Click to view user profileClick to add this user to your buddy list  
5. "RE: selleredit notification"
 
   You could some content-changes delievered with the email, be example, Title, Description Title, Description, and so on. It could get to be a long mail, depending on the requirements. You even could include a routine to make sure, that 'flow of information' takes place only if 'content' has been changed. Now this is not what I did, when I enclosed some information into the Mail-Routine you received from Richard.

I only included, as sample, Title, Description Title & Description to show you how it may work the simpler way.

How it works?
---
my ($title2, $reserve2, $inc2, .............., @bids2) = &read_item_file($form{'CATEGORY'},$form{'ITEM'});
---

The (sample) line above has a "2" added behind every $-variable stated in the original line. All those $-variables are the key to the "old" data, and they are used to tell you, how the "Content" looked before modification.

Now just add all you need into the Mail-Routine you received further up from Richard, and it should basically work.

It's just an idea and untested, don't ruin 'live auctions' when checking it out.

Load it down, name it sellerdit.pl and replace the existing one with it. don't scrap the original file, in case I've missed something...

Homer

If you don't know where you're going, any road will get you there.

Attachments
http://www.usanetcreations.com/dcforum/User_files/4ea08fd8213bd5e9.txt

  Alert | IP Printer-friendly page | Edit | Reply | Reply With Quote
Homermoderator click here to view user rating
Member since Jan-10-08
334 posts, 3 feedbacks, 6 points
Oct-20-11, 06:56 PM (CST)
Click to view user profileClick to add this user to your buddy list  
6. "RE: selleredit notification"
 
   Sorry, Error:

Do NOT replace the whole selleredit.pl, just replace
the sub selleredit section, wich is located within the selleredit.pl script!
---

##############################################
# Sub: Seller edit auction
# This allows the seller to add comments to his/her auction
#
sub selleredit {

---

sorry

Homer

If you don't know where you're going, any road will get you there.


  Alert | IP Printer-friendly page | Edit | Reply | Reply With Quote
Homermoderator click here to view user rating
Member since Jan-10-08
334 posts, 3 feedbacks, 6 points
Oct-20-11, 08:49 PM (CST)
Click to view user profileClick to add this user to your buddy list  
7. "RE: selleredit notification"
 
   So, I have tested the thing and it works.
Should give you detailled infos, as far as Test Entry is concerned. You could add other things to it, but best is to visit the page, if you have toughts about some sellers...

This is what a mail looks like:

--

Old Item Title:
Second Test Item Title

New Item Title:
Lazteesz NEU Test Item Title

Old Descr.Title:
This is the BRANDNEW description

New Descr.Title:
This is the ABSOLUTLY BRANDNEW description

Old Description:
das ist eine BRANDNEW Beschreibung zu der alten beschreibung<BR

New Description:
das ist eine BRANDNEW OROGONAL Beschreibung zu der alten beschreibung<BR

You may want to go to
http://www.blahblahblah.pum/cgi-bin/us/auction/auction.pl?category=antiques1&item=1320369583
to see the Item Page.
--

I felt to make it ready to go, it's absolutely not high class programming, but easy to create and easy to adapt.

Homer

If you don't know where you're going, any road will get you there.

Attachments
http://www.usanetcreations.com/dcforum/User_files/4ea0ce7762c1aae2.txt

  Alert | IP Printer-friendly page | Edit | Reply | Reply With Quote
moneysav
Charter Member
102 posts, Rate this user
Oct-21-11, 01:23 AM (CST)
Click to add this user to your buddy list  
8. "RE: selleredit notification"
 
   Hi Homer,
got it working and it's much better.

I changed the look of the code to make it easier for me to make changes. See below.

########### my addition to notify admin of any seller changes
&sendemail($config{'admin_address'}, $config{'admin_address'}, 'Seller Item Changes',
"Old Item Title: $title2\r\nNew Item Title: $title\r\n\r\n
Old Descr.Title: $desctit2\r\n\r\nNew Descr.Title: $desctit\r\n\r\n
Old Description: $desc2\r\nNew Description: $desc\r\n\r\n
Old Bid Price: \r\nNew Bid Price: \r\n\r\n

You may want to go to\r\n$config{'scripturl'}$ENV{'SCRIPT_NAME'}\?category=$form{'CATEGORY'}\&item=$form{'ITEM'} the sellers item</a>\r\n to view the changes.");
###########

I tried to add the old bid and the new bid but kept getting errors.
What is the correct line for the bids?
Cheers


  Alert | IP Printer-friendly page | Edit | Reply | Reply With Quote
Homermoderator click here to view user rating
Member since Jan-10-08
334 posts, 3 feedbacks, 6 points
Oct-21-11, 12:45 PM (CST)
Click to view user profileClick to add this user to your buddy list  
9. "RE: selleredit notification"
 
   All Mods to be made within the "sub sellerchange"

To get the OLD Start Price:

just below the line:
---
open CHANGEDITEM, ">$config{'basepath'}$form{'CATEGORY'}/$form{'ITEM'}.dat";
---
add:
---
my @firstbid = &read_bid($bids[0]);
---
in order to later use the content of "$firstbid[2]" wich contains the old Start Price.

This would be implemented into the "&sendemail" line.
---
Old Startprice;\r\n$firstbid[2]\r\n\r\nNew Startprice:\r\n$form{'bid'}\r\n\r\n
---

Your Mail would then look like:
---
Item Title:
Latest Test Item Title

Old Descr.Title:
This is the latest description with a slight modification

New Descr.Title:
This is the final latest description

Old Startprice;
49.00

New Startprice:
9.00

You may want to go to ...
---

I think it should work, I've tested it in short.

Homer

If you don't know where you're going, any road will get you there.


  Alert | IP Printer-friendly page | Edit | Reply | Reply With Quote
moneysav
Charter Member
102 posts, Rate this user
Oct-21-11, 05:46 PM (CST)
Click to add this user to your buddy list  
10. "RE: selleredit notification"
 
   Hi Homer,

Perfect. !!!!
That worked.

One final bit. How do I get a line-break between the old description and the new description?


  Alert | IP Printer-friendly page | Edit | Reply | Reply With Quote


Page 1 | 2 | Conferences | Topics | Previous Topic | Next Topic
Rate this topic Rate this topic