Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > TBDev
Reply
  #1  
Old 19th July 2013, 16:00
wMan wMan is offline
Banned
 
Join Date: Feb 2008
P2P
Posts: 1,433
Question - Bonus Points for activity on site
im looking for this mod anyone know of it i do have the - Bonus already just need to add it for users online to get it

- Bonus Points for activity on site
Reply With Quote
  #2  
Old 19th July 2013, 16:17
BamBam0077 BamBam0077 is offline
Banned
 
Join Date: Jul 2013
P2P
Posts: 410
Default
for comment on torrent = 3 points
in comment.php just after

  1. @mysql_query("UPDATE torrents SET comments = comments + 1 WHERE id = $torrentid");

add

  1. //===add karma
  2. mysql_query("UPDATE users SET seedbonus = seedbonus+3.0 WHERE id = ".sqlesc($CURUSER["id"])."") or sqlerr(__FILE__, __LINE__);
  3. //===end


also in comment.php just after

  1. mysql_query("UPDATE torrents SET comments = comments - 1 WHERE id = $torrentid");

add

  1. //===Remove karma
  2. mysql_query("UPDATE users SET seedbonus = seedbonus-3.0 WHERE id = ".sqlesc($owner["id"])."") or sqlerr(__FILE__, __LINE__);
  3. //===end
for saying thanks = 2 points - several versions of this adapt yours if you need to



find in takethankyou.php:


  1. mysql_query("UPDATE torrents SET thanks = thanks + 1 WHERE id = ".sqlesc($id)."");



add under it:

  1. mysql_query("UPDATE users SET seedbonus = seedbonus+5.0 WHERE id = ".sqlesc($CURUSER["id"])."") or sqlerr(__FILE__, __LINE__);
Or for putyns new thanks mod find :


  1. print($ajax? json_encode(array('status'=>false,'err'=>$msg)) : $msg);
  2. }
  3. }
  4. }
  5. break;
  6. }
Hope these help you out mate :) if I have miss read please do tell me


Reply With Quote
The Following 2 Users Say Thank You to BamBam0077 For This Useful Post:
ratza (5th August 2013), sushike (4th August 2013)
  #3  
Old 19th July 2013, 16:22
wMan wMan is offline
Banned
 
Join Date: Feb 2008
P2P
Posts: 1,433
Thumbs up
for comment on torrent = 3 points
in comment.php just after

Code:
@mysql_query("UPDATE torrents SET comments = comments + 1 WHERE id = $torrentid");
add

Code:
   //===add karma
    mysql_query("UPDATE users SET seedbonus = seedbonus+3.0 WHERE id = ".sqlesc($CURUSER["id"])."") or sqlerr(__FILE__, __LINE__);
    //===end
also in comment.php just after

Code:
   mysql_query("UPDATE torrents SET comments = comments - 1 WHERE id = $torrentid");
add
for saying thanks = 2 points - several versions of this adapt yours if you need to
Code:
   //===Remove karma
    mysql_query("UPDATE users SET seedbonus = seedbonus-3.0 WHERE id = ".sqlesc($owner["id"])."") or sqlerr(__FILE__, __LINE__);
    //===end
find in takethankyou.php:

Code:
    mysql_query("UPDATE torrents SET thanks = thanks + 1 WHERE id = ".sqlesc($id)."");
add under it:
Or for putyns new thanks mod find :
Code:
 mysql_query("UPDATE users SET seedbonus = seedbonus+5.0 WHERE id = ".sqlesc($CURUSER["id"])."") or sqlerr(__FILE__, __LINE__);

    print($ajax? json_encode(array('status'=>false,'err'=>$msg)) : $msg);
    }
    }
    }
    break;
    }
many thax
Reply With Quote
The Following User Says Thank You to wMan For This Useful Post:
sushike (4th August 2013)
  #4  
Old 19th July 2013, 16:32
BamBam0077 BamBam0077 is offline
Banned
 
Join Date: Jul 2013
P2P
Posts: 410
Default
Your welcomed mate glad I was on track with your idea
Reply With Quote
The Following User Says Thank You to BamBam0077 For This Useful Post:
sushike (4th August 2013)
Reply

Tags
activity , bonus , points , site

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 12:30. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.