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
Seedbonus when login
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / Torrent Trader / v3 Mods in Progress

2022-01-10 09:16:58
On index.php you need:

//Site Notice
if ($site_config['SITENOTICEON']){
begin_frame(T_("NOTICE"));
echo $site_config['SITENOTICE'];
end_frame();
}


Then proceed to scroll under it and now place:

/* seedbonus everytime your on the index page or script :) */
SQL_Query_exec("UPDATE users SET seedbonus = seedbonus+5.0 WHERE id = ".$CURUSER["id"]."") ;


Your are required to install seedbonus hack to use this product it should just update your seedbonus when you login into index page just edit the 5.0 to be 2.0 or more up to your web developer at the time now as far as I understand it updates every refresh so text it at own risk remembering you need seedbonus hack to get it to run so read and install : https://torrenttrader.uk/topic?topicid=9722
2022-01-10 09:21:58
News with seedbonus hack 2.0 to 10.0 seedbonus per newsfeed posted shared within whom that are $CURSUSER & not just the person whom post gets 2.0 seedbonus also everyone whom goes to that page and sees the post.



//Site News
if ($site_config['NEWSON'] && $CURUSER['view_news'] == "yes"){
begin_frame(T_("NEWS"));
$res = SQL_Query_exec("SELECT news.id, news.title, news.added, news.body, users.username FROM news LEFT JOIN users ON news.userid = users.id ORDER BY added DESC LIMIT 10");
if (mysqli_num_rows($res) > 0){

/* seedbonus everytime a newsfeed is posted not just the person whom post gets a 2.0 bonus though also whom that login to read I guess is the best way to explain it. */
SQL_Query_exec("UPDATE users SET seedbonus = seedbonus+2.0 WHERE id = ".$CURUSER["id"]."") ;

print("<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td>\n<ul>");
$news_flag = 0;

while($array = mysqli_fetch_assoc($res)){

           if (!$array["username"])
                $array["username"] = T_('UNKNOWN_USER');

$numcomm = get_row_count("comments", "WHERE news='".$array['id']."'");

// Show first 2 items expanded
if ($news_flag < 2) {
$disp = "block";
$pic = "minus";
} else {
$disp = "none";
$pic = "plus";
}

print("<br /><a href=\"javascript: klappe_news('a".$array['id']."')\"><img border=\"0\" src=\"".$site_config["SITEURL"]."/images/$pic.gif\" id=\"pica".$array['id']."\" alt=\"Show/Hide\" />");
print("&nbsp;<b>". $array['title'] . "</b></a> - <b>".T_("POSTED").":</b> " . date("d-M-y", utc_to_tz_time($array['added'])) . " <b>".T_("BY").":</b> $array[username]");

print("<div id=\"ka".$array['id']."\" style=\"display: $disp;\"> ".format_comment($array["body"])." <br /><br />".T_("COMMENTS")." (<a href='comments.php?type=news&id=".$array['id']."'>".number_format($numcomm)."</a>)</div><br /> ");

$news_flag++;
}
print("</ul></td></tr></table>\n");
}else{
echo "<br /><b>".T_("NO_NEWS")."</b>";
}
end_frame();
}

2022-01-10 09:25:28
MySQL FOR SEEDBONUS!!


CREATE TABLE IF NOT EXISTS `bonus` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`title` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`cost` decimal(10,1) unsigned NOT NULL DEFAULT '0.0',
`value` bigint(20) unsigned NOT NULL DEFAULT '0',
`descr` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
`type` enum('traffic','invite','VIP','other','HnR') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'other',
PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=7;

INSERT INTO `bonus` (`id`, `title`, `cost`, `value`, `descr`, `type`) VALUES
(1, '1GB Uploaded', '70.0', 1073741824, 'Exchange 70 points for 1 GB upload.', 'traffic'),
(2, '2 GB Uploaded', '100.0', 2147483648, 'Exchange 100 points for  GB upload.', 'traffic'),
(3, '5 GB Uploaded', '250.0', 5368709120, 'Exchange 250 points for 5 GB upload.', 'traffic'),
(4, '10 GB Uploaded', '500.0', 10737418240, 'Exchange 500 points for 10 GB upload.', 'traffic'),
(5, 'Invitations', '1000.0', 2, 'Receive 2 Invites for 1000.00 seedbonus points.', 'invite');



ALTER TABLE users ADD `seedbonus` decimal(10,1) NOT NULL;
               
2022-01-10 09:30:47
Taken from u232 v3

ALTER TABLE users ADD `seedbonus` decimal(10,1) NOT NULL DEFAULT '200.0';
2022-01-10 09:44:10


2022-01-10 09:49:28
MyBonus.php upload into main_dir:

https://files.fm/u/a74evextm
2022-01-10 09:54:45

<br>Seedbonus : <b><a href=mybonus.php>".$bonus."</a></b>


Now add to your header where username warnings donors staff upload download bar is
2022-01-10 09:56:02
Above that need:

$bonus = $CURUSER['seedbonus'];
2022-01-10 10:02:51

$seedbonus = $CURUSER[“seedbonus”];


Updated:

seedbonus = “.$seedbonus.”+2.0

NOT TESTED EDIT WHERE NEEDED.

Thank You/
2022-01-10 10:07:37
Would look something similar to this/


/* seedbonus everytime your on the index page or script :) */
SQL_Query_exec("UPDATE users SET seedbonus = seedbonus+5.0 WHERE id = ".$CURUSER["id"]."") ;


Updated:

$seedbonus = $CURUSER[“seedbonus”];

/* seedbonus everytime your on the index page or script :) */
SQL_Query_exec("UPDATE users SET seedbonus = “.$CURUSER[“seedbonus”].”+5.0 WHERE id = ".$CURUSER["id"]."") ;
2022-01-10 10:09:16
Seedbonus 2.0 above is 5.0



$seedbonus = $CURUSER[“seedbonus”];

/* seedbonus everytime your on the index page or script :) */
SQL_Query_exec("UPDATE users SET seedbonus = “.$CURUSER[“seedbonus”].”+2.0 WHERE id = ".$CURUSER["id"]."") ;
2022-01-10 20:40:29
official beta test code for index to allow an update every time on reload/refresh to basically add seedbonus points as appointed by whomever edits the sql query

Okay!

TESTED NOW!!!

MySQL

CREATE TABLE IF NOT EXISTS `bonus` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`title` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`cost` decimal(10,1) unsigned NOT NULL DEFAULT '0.0',
`value` bigint(20) unsigned NOT NULL DEFAULT '0',
`descr` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
`type` enum('traffic','invite','VIP','other','HnR') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'other',
PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=7;

INSERT INTO `bonus` (`id`, `title`, `cost`, `value`, `descr`, `type`) VALUES
(1, '1GB Uploaded', '70.0', 1073741824, 'Exchange 70 points for 1 GB upload.', 'traffic'),
(2, '2 GB Uploaded', '100.0', 2147483648, 'Exchange 100 points for  GB upload.', 'traffic'),
(3, '5 GB Uploaded', '250.0', 5368709120, 'Exchange 250 points for 5 GB upload.', 'traffic'),
(4, '10 GB Uploaded', '500.0', 10737418240, 'Exchange 500 points for 10 GB upload.', 'traffic'),
(5, 'Invitations', '1000.0', 2, 'Receive 2 Invites for 1000.00 seedbonus points.', 'invite');




ALTER TABLE users ADD `seedbonus` decimal(10,1) NOT NULL DEFAULT '0.0';


header.php:


<!-- Start Infobar -->
       <div style='color:white;' class='infobar'>
         <?php
               if (!$CURUSER){
                   echo "[<a href=\"account-login.php\">".T_("LOGIN")."</a>]<b> ".T_("OR")." </b>[<a href=\"account-signup.php\">".T_("SIGNUP")."</a>]";
               }else{
$bonus=$CURUSER['seedbonus'];
                   print (T_("LOGGED_IN_AS").": ".$CURUSER["username"]."

<br>Seedbonus :<b><a href=mybonus.php>".$bonus."</a></b>");


                   echo " [<a href=\"account-logout.php\">".T_("LOGOUT")."</a>] ";
                   if ($CURUSER["control_panel"]=="yes") {
                       print("[<a href='admincp.php'>".T_("STAFFCP")."</a>] ");
                   }
           
                   //check for new pm's
                   $res = SQL_Query_exec("SELECT COUNT(*) FROM messages WHERE receiver=" . $CURUSER["id"] . " and unread='yes' AND location IN ('in','both')");
                   $arr = mysqli_fetch_row($res);
                   $unreadmail = $arr[0];
                   if ($unreadmail){
                       print("[<a href='mailbox.php?inbox'><b><font color='#ff0000'>$unreadmail</font> ".P_("NEWPM", $unreadmail)."</b></a>]");  
                   }else{
                       print("[<a href='mailbox.php'>".T_("YOUR_MESSAGES")."</a>] ");
                   }
                   //end check for pm's
               }
               ?>
       </div>
       <!-- End Infobar -->


now add into index.php

/* seedbonus everytime your on the index page or script :) */
SQL_Query_exec("UPDATE users SET seedbonus=".$CURUSER['seedbonus']."+2.0 where seedbonus = ".$CURUSER['seedbonus']." ");


That’s it now it should start to work don’t forget to add mybonus to main_dir okay! <3
2022-01-10 20:44:01
https://sendeyo.com/show/baf97650ab
2022-01-10 21:02:06
2022-01-11 20:22:47
Thank you for sharing, but this all seems like a completely bad idea. Just my opinion tho. Do as you will
TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
Last edited by MicroMonkey on 2022-01-11 20:26:35
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: 2
  • Members: 0
  • Guests online: 2
  • Comments: 3
  • Messages: 1,728