• Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers! /Peo, FreeWebSpace.net
managed wordpress hosting

Anyone know how this script was done?

Weapon

NLC
NLC
Hi guys

Was just wondering if anyone know how this script was done or if they could maybe point me somewhere in the right direction to start looking

http://portfolio.valueweb.co.nz/trademe/

Basically the script was created by some guy to check the feedback on different members from the website trademe.co.nz (similar to ebay). The good thing with this script was that I was able to check the feedback of a single user all the way from when they first joined.

The link via the official website only lists the most recent 2000 feedbacks only.

I've tried contacting the original script writer but cant seem to get a reply back.

If anyone can help that would be greatly appreciated :)


Thanks
 
<h1>TradeMe Feedback</h1>This will show all feedbacks for a user and allow you to sort by positives, neutrals or negatives only.<br /><br /><form action="http://portfolio.valueweb.co.nz/trademe/index.php/trademe/test2/" method="post">
Member ID:<input type="text" name="memberID">
<input type="submit" value="Get Feedback">
</form>
 
considering it doesnt work, it is a bit hard to tell. it is probably just checking the rss feed for the user, just like mine is here...
http://www.facebook.com/feeds/notif...=1377177147&key=AWiJ8jO_f3Nek-59&format=rss20

Can you please elaborate on this RSS feed? Ive never used something like this before.

Here is an example of an auction on the trademe website: http://www.trademe.co.nz/Browse/Listing.aspx?id=441601354

If you put the username of the person "johnchalmers" into the above website search box, shown here: http://portfolio.valueweb.co.nz/trademe/index.php/trademe/view/536987

That is the result that comes out. As you can see, the trademe member has feedback alot of feedback but the website only gives it up until January of this year?



<h1>TradeMe Feedback</h1>This will show all feedbacks for a user and allow you to sort by positives, neutrals or negatives only.<br /><br /><form action="http://portfolio.valueweb.co.nz/trademe/index.php/trademe/test2/" method="post">
Member ID:<input type="text" name="memberID">
<input type="submit" value="Get Feedback">
</form>

I dont think thats the answer...
 
i'm sorry, i misread your question. dont know why I was thinking you asked how to pull the status updates from a facebook user. so, to answer how to make a feedback script, you need a table in the database, called something like 'feedback'
from there, you would have rows like so...
id, seller_id, buyer_id rating, comments, date, item
when an item is sold, a query would be run that would create a row that insets a unique id, the seller's id, the buyer's id, the date it was purchased and the id of the item that was sold. if the item has no feedback, it would show in not completed. the feedback would need a default value of 0. if it is 0, it is not complete, 1 would be positive, 2 negative, and 3 would be neutral. so, i would set the rating row with enum (0,1,2,3) and set a default of 0 with not null. once someone provides feedback, you update the row accordingly with the feedback.

then for the search, you would make a query that runs something like... "SELECT * from `feedback` WHERE seller_id='{$member_id}' ORDER BY date ASC"; when a link is clicked for positive, negative, neutral or not completed, you would just run another query that would look like... "SELECT * from `feedback` WHERE seller_id='{$member_id}' AND rating=1 ORDER BY date ASC"; **remember 1 is positive, so, swap that with 2 and 3 for the other ratings**

hope that helps answer the question.
 
Back
Top