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
2008-09-23 21:59:16
"walker1977, post: 42951":
of course there is but not posted here. on my site I give points for forum post, shoutbox post for uploading and filling request I give gigs. maybe one day I will post it here but it is not hard to do yourself. just a sql query in the right place will do it.

Can you post this, as it would be very nice.

For the ones saying that it doesn't work:

1. The person must be downloading for you for a min of 30 mins, so the seed bonus can udpdate itself, if the person stops within those 30 mins, you are not credited.

2. Seedboxes are actually bad because they shorten the time for which you seed, the faster you seed, the less time it will require.

3. If noone is downloading off from you, it will never be updated, at times even if the person is downloading, if the torrent is not being actively downloaded, there it doesn't update either.

4. You can change the default numbers on your PHPmyadmin or whatever you use for the amount given. Points for X.
Unknown User
2008-09-29 20:11:55
if you want to give people bonus points for certain actions then you can post something like this

$bonusf = 1;

 mysql_query("UPDATE users SET seedbonus = seedbonus + '$bonusf' WHERE id=".$CURUSER["id"]) or sqlerr();
you would put that after the main query for what you are giving the points for. lets say in the shoutbox then you would put it after the query which should look like this




$query = "INSERT INTO shoutbox (msgid, user, message, date, userid) VALUES (NULL, '".$CURUSER['username']."', ".$_POST['message'].", '".get_date_time()."', '".$CURUSER['id']."')";

mysql_query($query);



of course you could put it before that query but normally i put it after. the number beside the $bonusf is how many bonus points you want to give for that action
Unknown User
2008-09-29 20:45:40
Thank you walker, but it also works whenever they refresh which is not good, many could easily cheat, I lowered the amount to .1, is there any way to separate the actual posts and visiting the forums?
Unknown User
2008-10-04 17:38:46
$bonusf = 1;

 mysql_query("UPDATE users SET seedbonus = seedbonus + '$bonusf' WHERE id=".$CURUSER["id"]) or sqlerr();
where to put it in comments.php



I try after
mysql_query("INSERT INTO comments (user, ".$type.", added, text) VALUES (".$CURUSER["id"].", ".$id.", '" .get_date_time(). "', " . sqlesc($body).")") or die(mysql_error());



but it doesn't work :)
Unknown User
2008-10-04 18:16:37
it should work. did you look at how many points you hade before and then how many you had after? did you refreash the page and have a look because sometimes it will only show after a refreash. i have not tested it in the comments but i will look later.
Unknown User
2008-10-04 20:20:19
yes ,of course I refresh but not working  :)

this is my comments.php

can you have a look, please ?

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=2947"]comments.php[/url]
comments.php
Download
Unknown User
2008-10-04 21:46:34
ok if you want it to just count only for comments on torrents you will need to put it after

mysql_query("UPDATE torrents SET comments = comments + 1 WHERE id = $id") or die(mysql_error());
but before the




}



i have not tried it yet still but when i do i will update this post

edit: i tried placing it elsewhere but it is not working. i know the script does work because i am using for shouts in my shoutbox and also one for forum posts. i will try looking at it later and see what is going wrong.
Unknown User
2008-10-06 17:18:58
i would add 1 point for a click in a banner_block every 24 hours

it's possible?
Unknown User
2008-10-07 11:47:58
it would add the one point if you used it in the banner code but for doing it every 24 hours you would most likely need an extra part in the user table. you could have a time and date part in that extra field that the script would check for. so something like this may work if you add the extra field with the name banner.

Note: The code below is just an example and has not been tested so it may not work.

$bonusf = 1;

$banner_time = get_date_time(gmtime()-(3600*24)); // the 24hrs is the hours you want listed

 mysql_query("UPDATE users SET seedbonus = seedbonus + '$bonusf' WHERE banner<='$banner_time' AND id=".$CURUSER["id"]) or sqlerr();
Unknown User
2008-10-07 14:21:03
works well in the shoutbox but not in comments

I tried in differents places but not working

Any help?
Unknown User
2008-10-08 07:05:27
mmm

i have add a field  "banner" under "user" table with this query:

ALTER TABLE `users` ADD `banner` DATETIME NOT NULL;
i have insert your code:


$bonusf = 1;

$banner_time = get_date_time(gmtime()-(3600*24)); // the 24hrs is the hours you want listed

 mysql_query("UPDATE users SET seedbonus = seedbonus + '$bonusf' WHERE banner<='$banner_time' AND id=".$CURUSER["id"]) or sqlerr();


in a banner_block.php

this,  add 1 seedbonus everytime the banner_block.php is showed

- don't wait for a click on this

- don't wait 24 hours

help and thanx!
Unknown User
2008-10-08 11:43:54
Hello, excused the disturbance. I the interested to this code am acneh in order to increase to a point to every customer every click on banner but only every hour. that one mailed from walker1977 assigns click a every time that I approach the page where they are present the banner. you would succeed to perfect it? heart thanks  :)
Unknown User
2008-10-13 07:10:14
I do not have hopes for this mod? ;)
Unknown User
2008-10-21 18:15:28
i'm in seed for 3 days, my upload is <> 60k ..

i have receive only 0.6 point in 3 days!!

where is the problem????
Unknown User
2008-10-21 19:01:51
gandalf, read what I said above.

The reason for which why you have only acquired 0.6 points in 3 days is probably because:

1) The downloader is taking breaks between the 30 mins, therefore not giving it chance to update itself.

2) Slow internet by you the downloader

3) The downloader probably has some other things downloading at the same time and his bandwidth is being used at other source.

4) It's possible that you have stopped your client without knowing so.

5) Ports closed

6) It's probable that you are either downloading/uploading too many torrents at once.
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