Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
[ADDON] SEED BONUS
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2 Only Mods Complete

Unknown User
2009-06-07 13:33:50
anyone know my problem ALTER TABLE `users` ADD `seedbonus` DECIMAL( 10, 1 ) NOT NULL ; MySQL a r
Unknown User
2009-06-07 14:08:47
"XWantedX, post: 58307":
anyone know my problem ALTER TABLE `users` ADD `seedbonus` DECIMAL( 10, 1 ) NOT NULL ; MySQL a r
Unknown User
2009-08-21 02:20:37
Hi,

I have a problem, it wont let me make it require more than 999.9 points to buy something. If I try to raise it I get the following message

Warning: #1264 Out of range value adjusted for column 'points' at row 1

Edit: Never mind I found out what was wrong
Unknown User
2009-08-21 05:15:44
"swml24, post: 59614":
Hi,
I have a problem, it wont let me make it require more than 999.9 points to buy something. If I try to raise it I get the following message

Warning: #1264 Out of range value adjusted for column 'points' at row 1

Edit: Never mind I found out what was wrong


Tell me to, whats was wrong. I was same problem. Can
Unknown User
2009-08-21 10:49:18
decimal(4,1) NOT NULL default '000.0',

try changing it to a higher amount
Unknown User
2009-09-14 19:13:33
Hi, guys!

Could you help me with one small patch for the tracker?

I just need to use algorithm of the seeding bonus based on seeding time, not speed or upload ratio.

Could you, please, advice which DB tables should i use, may be you have samples of code?

Currently i see next algorithm:

if exists(Select distinct userId from peers where userId=X)

BEGIN

seedingHours = CalculateSeedingHours()

bonusToPay = seedingHours*SomeConstRatio

Update users set seedbonus = bonusToPay

END

Could you advice which tables to use to get:

1) seedingHours

2) Active torrents of the peer

Currently i'm in process of installing DB and will investigate structure of tables

Thanks
Unknown User
2009-09-16 20:07:46
Hey, guys, how your are applied this ADDON?

I see that here is used peers.uploadoffset column but not present SQL script for this colunb, who should take care about updating data in the column?

;)
Unknown User
2009-10-13 18:45:50
thank you !

it's perfect :lol:
Unknown User
2009-10-19 18:58:39
Hi, I found one bug in this mod. All my torrents in
Unknown User
2009-10-28 15:02:19
Ty dude...

thanx
Unknown User
2009-11-16 03:00:30
i want my member exchange the point for VIP member class ...

is possible to make this for me please ...

I think is on the database but i need your help

Thanks you so much

for your help.

My english is not very good sorry
Unknown User
2009-12-10 00:37:33
to allow admins to change bonus amounts

in account-details.php

find

print("<tr><td>GBP
Unknown User
2010-01-10 17:26:54
hi , thanks for this mods ,  but i have a question , it'S possible to have seedbonus per hour  and per number of torrent i seed , not just global !??

exemple , if i have 9 torrent in seed , i got , 0.5 seedbonus per torrent and per hour

Some one can help me with this ?
Unknown User
2010-01-15 23:31:20
sendbonus.php:

<?
require_once("backend/functions.php");

dbconn(false);

stdhead("Bonus gift");

loggedinonly();

begin_frame("Seed Bonus Gift");

if ($_SERVER["REQUEST_METHOD"] == "POST") {

$nick = $_POST["nick"];

$amount = (int)$_POST['amount'];

if (empty($nick)) {

show_error_msg($tracker_lang['error'], "Insert name!");

die();

}

if(!preg_match("/^[a-zA-Z0-9_\+]+$/", $nick)) {

show_error_msg($tracker_lang['error'], "Illegal signs!");

die();

}

if ($amount<0) {

show_error_msg($tracker_lang['error'], "I smell the rat!");

die();

}

$msg = @$_POST['msg'];

$res = mysql_query("SELECT * FROM users WHERE `username` = '$nick'") or sqlerr(__FILE__,__LINE__);

$receiver = mysql_fetch_assoc($res);

if(!$receiver['id']) {

show_error_msg($tracker_lang['error'], "No such user: " . $nick ."!");

die();

}

if($receiver['id'] == $CURUSER["id"]) {

show_error_msg($tracker_lang['error'], "Can
Unknown User
2010-01-16 15:06:28
Thanks
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 1
  • Members: 0
  • Guests online: 1
  • Comments: 3
  • Messages: 1,728