plugin reward

dfdssfsfd3806

Member
YetiShare User
Apr 4, 2014
271
0
16
hello you could add a button instead of requiring the repayment of the money can be converted into premium days
 

enricodias4654

Member
YetiShare User
Jan 13, 2015
411
1
16
I've been working on this plugin recently and I had the same idea. However, this plugin was made in a very strange way and needs modifications on how it stores the user’s gains. Apparently it aggregate the revenue in a different table every day, so you will have 1 record per day per user with the amount earned that they. The total amount is not in a single field but the sum of several rows in a table. With this scheme is not possible to withdrawn any amount of money and therefore not possible to use this money to renew the account, buy vouchers or any other thing.

To solve this, the plugin must be altered to sum the earnings of each user in a single field in a single row. The other tables may still exist to preserve logs and provide a way to audit the values if needed. With this way it will be possible to withdrawn any amount of money as well as use it as a payment method.

Also, the script does not use transactions when it aggregates the earnings. This may cause inconsistencies in case of errors in the mysql.