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
Trading to delete H&R
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2.08 Mods Completed

Unknown User
2013-08-30 17:25:50
"ArcticWolf, post: 91873":

[size=18px]all[/size] of

modcomment = '$modcomment'
with

modcomment = " . sqlesc($modcomment) . "
[size=18px]Also If posting about "Database Error. Please report this to an administrator." or something along that lines,[/size]

does no good if you don't also add the last info from your_siteurl/admincp.php?action=sqlerr


I made the appropriate changes required.php but it did not help.

if delete H&R points "Trade to Delete" system then, after Force Cleanup they are all back.

and see SQL error

Quote:
Database Error in backend/cleanup.php on line 295: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 're warned because you have accumulated 5 HnR','2013-08-30 16:57:01','13-Sep-2013' at line 1. Query was: INSERT INTO warnings (userid, reason, added, expiry, warnedby, type) VALUES (378,'You're warned because you have accumulated 5 HnR','2013-08-30 16:57:01','13-Sep-2013 15:57:01','0','HnR').
[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=6933"]cleanup.php[/url][url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=6934"]required.php[/url]
cleanup.php
Download
required.php
Download
Unknown User
2013-08-30 17:33:00
Maybe replace You're ligne 287 / 295

by You are
Unknown User
2013-08-30 19:00:25
I guess this addon needs work too...

1st this sql

ALTER TABLE `snatched` ADD `done` enum('yes','no') NOT NULL default 'no';any way to fix the cleanup change
SQL_Query_exec("INSERT INTO warnings (userid, reason, added, expiry, warnedby, type) VALUES ($user,'".$reason."','".get_date_time()."','".$expiretime."','0','HnR')");

to
SQL_Query_exec("INSERT INTO warnings (userid, reason, added, expiry, warnedby, type) VALUES ($user,".sqlesc($reason).",'".get_date_time()."','".$expiretime."','0','HnR')");

and in the same file
$a = SQL_Query_exec("SELECT DISTINCT uid FROM snatched WHERE hnr = 'yes'");

with
$a = SQL_Query_exec("SELECT DISTINCT uid FROM snatched WHERE hnr = 'yes' AND done='no'");

and replace
SQL_Query_exec("UPDATE snatched SET hnr = 'yes' WHERE completed = '1' AND hnr = 'no' AND uload < dload AND $timenow - $site_config[hnr_deadline] > stime AND $site_config[hnr_seedtime] > ltime");

with
SQL_Query_exec("UPDATE snatched SET hnr = 'yes' WHERE completed = '1' AND hnr = 'no' AND uload < dload AND $timenow - $site_config[hnr_deadline] > stime AND $site_config[hnr_seedtime] > ltime AND done='no'");

and use this new required.php[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=6935"]required.php[/url]

should basically make an torrent immune to being picked up after they use bp or upload after you upload the new attached file and do the other changes :P
required.php
Download
2013-08-31 01:26:13
Woww very generous, big thanks!    :)
Unknown User
2013-08-31 08:19:54
Thank you so much ArcticWolft

It seems that now everything is working perfectly. No SQL errors and still have not come back H&R points.  :)

How to disable seedbonus trading? When a user downloads and 100GB and trade H&R to 100 seedbonus points  is not normal,  :P
Unknown User
2014-07-13 18:53:09
Nm, Arctic Wolfs required.php has solved my sql errors, thank Wolf  ;)
Unknown User
2019-08-23 02:22:54
update post bigmax1

and file footer.php theme


// Start Hit and Run Warning
$qry = SQL_Query_exec("SELECT COUNT(`hnr`) FROM `snatched` WHERE `uid` = '".$CURUSER["id"]."' AND `hnr` = 'yes'");
$res2 = mysql_fetch_row($qry);
$hnr = "<font style=background-color:#252525 color=#FEFEFE><b>&nbsp; ".$res2[0]." &nbsp;</font>";
$hnr2 = $res2[0];

if ($res2[0] > 0) {
   echo "<div style=margin-bottom:5px>
           <table align=center width=100% border=0 cellspacing=0 cellpadding=10>
       <tr>
           <td style='padding: 10px; background: #AB0000' align=center>
           <div style='font: bold 15px Times New Roman; color:#FFBF00'>
           Hey $CURUSER[username], you have ".$hnr." recording".($hnr2 > 1 ? "s" : "")." for Hit and Run!&nbsp; View the recordings into <a href=snatched.php><font size=3 color=#CBCBCB>Your Snatch List</font></a>
       </div>
           <div style='font: bold 15px Times New Roman; color:#FFBF00'>
           You must to keep seeding or you can <a href=required.php><font size=3 color=#CBCBCB>Trade to Delete</font></a> ".($hnr2 > 1 ? "these recordings" : "this recording")." with Seed Bonus or Upload
       </div>
       </td>
       </tr>
       </table>
       </div>\n";
}
// End Hit and Run Warning
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