phpMyBitTorrent

Powered by
SourceForge.net Logo

Today's Messages (ON)  | Unanswered Messages (OFF)

Forum: M0dZ & HaCkZ
 Topic: Last Donors block
Last Donors block [message #2257] Tue, 06 January 2009 19:59
DrAgon  
Messages: 187
Registered: August 2007
Super-Seeder
Bug hunter
This hack might be like a continution to donation hack Joe wrote few year ago at http://www.phpmybittorrent.com/forum/index.php/t/94/153/

I applied this donor hack to pmbt 1.2.2, but it will most likely work with full-mod and 2.x, if not.. If you find your way around php/mysql then it is a piece of cake to make it work in other releases of pmbt.

Anyways, the story is this:

so paypal.php was updating reseaved_donation field everytime donation was coming as gross_mc from paypal via IPN record in the torrent_paypal table...on my pmbt tracker for a while...

but then I have another tracker that was using same web notification url from incoming donation and it was updating my pmbt torrent_papal table..... and it just started to get too old and pissing me off, since I had to clean up the torrent_paypal table every time a donation was made on other tracker. Laughing

So Finally, I cleaned up paypal accounts and donation buttons and seperated each of the notification url returns unique for each tracker in paypal accounts. Cool

Then I said..hm..now that's a bit cleaner....and I can easily capture more info from IPN record coming back and list the donor's name and how much donated from paypal.php instantly in a block for recognition of people who donate to the site. Smile

so I create a new table called torrent_donors and added a sql insert in paypal.php to update the donors table as IPN comes in from paypal.

Then I created lastdonors.php which is small php/sql that will list the last few names from donors table and how much was donated.

if you are interested, reply with a note on this thread Razz and
I'll post the following:

-the sql I used to create donors table
-paypal.php
-lastdonors.php

I had few html tabling column and sql issues and questions that Joe helped me with and I cleaned it up.

meanwhile I perhaps can clean up the hack with any enhancement I can think of and make sure all sql are using same database class that pmbt basecode uses per Joe's suggestion.

btw..pmbt 2.0.3 is starting to look very good Smile ..if you have been in touch with Joe and helping him out..and etc....

Cheers

[Updated on: Tue, 06 January 2009 20:02]


Current Time: Tue Jan 6 20:41:41 PST 2009

Total time taken to generate the page: 0.01949 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 2.7.7.
Copyright ©2001-2007 FUD Forum Bulletin Board Software