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
[HACK] New Torrent in Shoutbox
Controls ·  Search New posts · Mark unread

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

Unknown User
2012-01-09 16:05:13
"XIII, post: 77867":
its missing a ;


$user = ($_POST["anonycheck"] == "yes") ? "Anonymous" : $CURUS;

$query = "INSERT INTO shoutbox (user, message, date, userid) VALUES ('SystemBoT', ':smile50: [url=".$site_config['SITEURL']."/torrents-details.php?id=".$id."]".$torrent."[/url] has been uploaded by [url=".$site_config['SITEURL']."/account-details.php?id=".$CURUSER['id']."]" .$user. "[/url]', now(), '2')"



still white page
Unknown User
2012-01-09 16:20:30
	write_log("Torrent $id ($name) was Uploaded by $CURUSER[username]");

$user = ($_POST["anonycheck"] == "yes") ? "Anonymous" : $CURUSER["username"];

$query = "INSERT INTO shoutbox (user, message, date, userid) VALUES ('SystemBoT', ':smile50: [url=".$site_config['SITEURL']."/torrents-details.php?id=".$id."]".$torrent."[/url] has been uploaded by [url=".$site_config['SITEURL']."/account-details.php?id=".$CURUSER['id']."]" .$user. "[/url]', now(), '2')";
Unknown User
2012-01-09 16:35:02
"XIII, post: 77869":
	write_log("Torrent $id ($name) was Uploaded by $CURUSER[username]");

$user = ($_POST["anonycheck"] == "yes") ? "Anonymous" : $CURUSER["username"];

$query = "INSERT INTO shoutbox (user, message, date, userid) VALUES ('SystemBoT', ':smile50: [url=".$site_config['SITEURL']."/torrents-details.php?id=".$id."]".$torrent."[/url] has been uploaded by [url=".$site_config['SITEURL']."/account-details.php?id=".$CURUSER['id']."]" .$user. "[/url]', now(), '2')";

many thax that did the trick
Unknown User
2012-01-09 16:42:56
"matchbox, post: 77870":
many thax that did the trick
one more thing please in my index i have this ok its not showing as Anonymous user at all many thax for your help  on this

}



stdhead("Today's Torrents");



begin_frame("Today's Torrents");



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



$catresult = mysql_query("SELECT id, name FROM categories ORDER BY sort_index");



while($cat = mysql_fetch_array($catresult))

{

$orderby = "ORDER BY torrents.id DESC"; //Order

$where = "WHERE banned = 'no' AND category='$cat[id]' AND visible='yes'";

$limit = "LIMIT 3"; //Limit



$query = "SELECT torrents.id, torrents.category, torrents.leechers, torrents.nfo, torrents.seeders, torrents.name, torrents.times_completed, torrents.size, torrents.added, torrents.comments, torrents.numfiles, torrents.filename, torrents.owner, torrents.external, torrents.freeleech, categories.name AS cat_name, categories.parent_cat AS cat_parent, categories.image AS cat_pic, users.username, users.privacy FROM torrents LEFT JOIN categories ON category = categories.id LEFT JOIN users ON torrents.owner = users.id $where AND torrents.added>='$date_time' $orderby $limit";



$res = mysql_query($query);

$numtor = mysql_num_rows($res);



if ($numtor != 0) {

echo "<B><a href=torrents.php?cat=".$cat[id].">$cat[name]</a></B>";

list($pagertop, $pagerbottom, $limit) = pager(1000, $count, "torrents.php?" . $addparam); //adjust pager to match LIMIT

torrenttable($res);

echo "<BR>";

}





}

end_frame();

if (!$site_config["MEMBERSONLY"] || $CURUSER) {





}
Unknown User
2012-01-09 17:44:47
"matchbox, post: 77872":
one more thing please in my index i have this ok its not showing as Anonymous user at all many thax for your help  on this

}



stdhead("Today's Torrents");



begin_frame("Today's Torrents");



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



$catresult = mysql_query("SELECT id, name FROM categories ORDER BY sort_index");



while($cat = mysql_fetch_array($catresult))

{

$orderby = "ORDER BY torrents.id DESC"; //Order

$where = "WHERE banned = 'no' AND category='$cat[id]' AND visible='yes'";

$limit = "LIMIT 3"; //Limit



$query = "SELECT torrents.id, torrents.category, torrents.leechers, torrents.nfo, torrents.seeders, torrents.name, torrents.times_completed, torrents.size, torrents.added, torrents.comments, torrents.numfiles, torrents.filename, torrents.owner, torrents.external, torrents.freeleech, categories.name AS cat_name, categories.parent_cat AS cat_parent, categories.image AS cat_pic, users.username, users.privacy FROM torrents LEFT JOIN categories ON category = categories.id LEFT JOIN users ON torrents.owner = users.id $where AND torrents.added>='$date_time' $orderby $limit";



$res = mysql_query($query);

$numtor = mysql_num_rows($res);



if ($numtor != 0) {

echo "<B><a href=torrents.php?cat=".$cat[id].">$cat[name]</a></B>";

list($pagertop, $pagerbottom, $limit) = pager(1000, $count, "torrents.php?" . $addparam); //adjust pager to match LIMIT

torrenttable($res);

echo "<BR>";

}





}

end_frame();

if (!$site_config["MEMBERSONLY"] || $CURUSER) {





}

its ok ive fix it lol easy if you know how
Unknown User
2012-02-01 21:19:42
"iMagin3 SweeTDeviL, post: 34417":
This hack is entirely based in the v Torrential Storm 1.x hack, with the correct changes.

In torrents-upload.php find:

write_log("Torrent $id ($torrent) was uploaded by " . $CURUSER["username"]);
Insert after:


mysql_query("INSERT INTO shoutbox VALUES('', 'System', 'New Torrent: ".$torrent." has been uploaded by ."]" .$CURUSER['username']. "', now(), '0')") or sqlerr(__FILE__,__LINE__);







and in shoutbox.php find:


$THEME = $ss_a["uri"];

$lng_a = mysql_fetch_array(mysql_query("select uri from languages where id='" . $site_config['default_language'] . "'")) or die(mysql_error());

if ($lng_a)

$LANGUAGE = $lng_a["uri"];

}





add after:


//replace [url] tags with a proper link

$msg = preg_replace("/[url]([^[]+)[/url]/i","<a href="1" target="_blank">1</a>",$msg);
[/code]






Have fun!

iMagin3

hy i am newbie plz tell me where i have to  //replace [url] tags with a proper link  
$msg = preg_replace("/[url]([^[]+)[/url]/i","<a href="1" target="_blank">1</a>",$msg);

if(!isset($_GET['history'])){
Unknown User
2012-02-01 22:11:14
Open the file shoutbox.php and look for and find:



$THEME = $ss_a["uri"];

   $lng_a = mysql_fetch_array(mysql_query("select uri from languages where id='" . $site_config['default_language'] . "'")) or die(mysql_error());

   if ($lng_a)

   $LANGUAGE = $lng_a["uri"];

}

and just under that add this:






//replace [url] tags with a proper link

$msg = preg_replace("/[url]([^[]+)[/url]/i","<a href="1" target="_blank">1</a>",$msg);




save file
Unknown User
2012-02-02 19:18:53
"dent, post: 80697":
Open the file shoutbox.php and look for and find:



$THEME = $ss_a["uri"];

$lng_a = mysql_fetch_array(mysql_query("select uri from languages where id='" . $site_config['default_language'] . "'")) or die(mysql_error());

if ($lng_a)

$LANGUAGE = $lng_a["uri"];

}

and just under that add this:






//replace [url] tags with a proper link

$msg = preg_replace("/[url]([^[]+)[/url]/i","<a href="1" target="_blank">1</a>",$msg);




save file
i do it , but when i click link in shoutbox it redirected to :   /torrents-details.php?=id4 and  not to  [url="http://sitename"]http://sitename[/url]/torrents-details.php?=id4this is the problem ;)
Unknown User
2012-02-02 19:35:02
http://".$SITEURL."

Should be

".$site_config["SITEURL"]."
Unknown User
2012-03-01 10:52:32
$query = "INSERT INTO shoutbox (user, message, date, userid) VALUES ('<font color=red>System</font>', 'New Torrent: [url=".%24site_config%5B"]."/torrents-details.php?id=".$id."]".$torrent."[/url] Uploader: [url=".%24site_config%5B"]."/account-details.php?id=".$CURUSER['id']."]" .$CURUSER['username']. "[/url] Thanks!', now(), '0')";
mysql_query($query);

work me in v2.08
Unknown User
2014-09-15 17:16:59
[url="http://torrenttrader.org/topic/17526-mod-approval-torrents-for-tt208/?hl=approval"]http://devscorner.xyz/topic/17526-mod-approval-torrents-for-tt208/?hl=approval[/url]

use this mod, how to appear in the shoutbox torrent after being released by moderation
Unknown User
2014-09-23 02:30:26
I had to use this code to print the Torrent name instead, but now if there is a comma in the Name, the line does not print.  Why?  -  In torrents-upload.php


$query = "INSERT INTO shoutbox (msgid, user, message, date, userid) VALUES (NULL, 'System', 'New Torrent: ."/torrents-details.php?id=".$id."]".$name." has been uploaded by ."/account-details.php?id=".$CURUSER['id']."]" .$CURUSER['username']. "', now(), '0')";mysql_query($query);
2014-09-23 10:22:02
Try this :


$query = "INSERT INTO shoutbox (msgid, user, message, date, userid) VALUES (NULL, 'System', 'New Torrent: ."/torrents-details.php?id=".$id."]".sqlesc($name)." has been uploaded by ."/account-details.php?id=".$CURUSER['id']."]" .$CURUSER['username']. "', now(), '0')";mysql_query($query);
Unknown User
2014-09-26 16:11:29
Torrent shows server time, not user current time
Unknown User
2014-10-02 23:37:02
hello Dewey look this hack by Tiloup

[url="http://torrenttrader.org/topic/17860-torrent-new-image-shout/?hl=%2Btorrent+%2Bshoutbox"]http://torrenttrader.org/topic/17860-torrent-new-image-shout/?hl=%2Btorrent+%2Bshoutbox[/url]

add torrent-upload.php

//Nouveau torrent en message et image sur shoutbox
   $image = $inames[0];
   $membre = ( $anon == 'yes' || $CURUSER['privacy'] == 'strong' ) ? 'Anonyme' : $CURUSER['username'];
   SQL_Query_exec("INSERT INTO shoutbox VALUES('', 'Systeme', '

 Nouveau Torrent : ."/torrents-details.php?id=".$id."]".$torrent."n[img]%22.%24site_config%5B'SITEURL'[/img]."/uploads/images/".$image."]n Upload de".($anon == 'no' ? " ."/account-details.php?id=".$CURUSER['id']."] " .$CURUSER['username']. "


" : "")."'Merci!', now(), '0')") ;
       //Fin Nouveau torrent en message et image sur shoutbox

   write_log ( sprintf(T_("TORRENT_UPLOADED"), htmlspecialchars($name), $CURUSER["username"]) );    
   $anonyupload = unesc($_POST["anonycheck"]);
   
if ($anonyupload == "yes" || $CURUSER["privacy"] == "strong") {
   $uploader = "anonyme";
} else {
   $uploader = "."/account-details.php?id=".$CURUSER['id']."]" .$CURUSER['username']. "";
}
   //SQL_Query_exec("INSERT INTO shoutbox VALUES('', 'System', 'New Torrent: ."/torrents-details.php?id=".$id."]".$torrent." a &eacute;t&eacute; uploader par ."/account-details.php?id=".$CURUSER['id']."] .$CURUSER['username']. ' Merci!', now(), '0')") or sqlerr(__FILE__,__LINE__);
   SQL_Query_exec("INSERT INTO shoutbox VALUES('', 'System', 'Nouveau Torrent: ."/torrents-details.php?id=".$id."]<font color=FF0000>".htmlspecialchars($name)." a &eacute;t&eacute; uploader ".($anon == 'no' ? "par ."/account-details.php?id=".$CURUSER['id']."] <font color=FF0000>" .$CURUSER['username']. "" : "")."Merci!', now(), '0')") or sqlerr(__FILE__,__LINE__);                                                                                                                        
   //Uploaded ok message (update later)
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