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
Duplicate comment / Post ?¿
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / Torrent Trader / v3 Support

2019-05-30 13:34:03
Hi

Example:
If I make a comment on a torrent and I update (F5) my web page my commentary is doubled ,,,, insi de suite!

How to prevent the Refresh of the page of a comment or a post on the forum does not draw this doubled continually

Merci et désolé pour mon anglais.
Unknown User
2019-05-31 13:06:36
Use the anti-flood plugin. (it will not work for new threads only)
2019-05-31 23:16:23
I would think you would use isset() and unset(), but Im not sure. I have something to go do right, now, but I can try this when I get back and see if I can help
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)
2019-06-01 01:58:48
mmm ... I'm on the v3 friends, other than adding mod offered for the v3 I did not do anything more.  :)
2019-06-01 04:51:49
torrents-details.php. Seems easy enough to use the autolink

//take comment add
if ($_GET["takecomment"] == 'yes'){
   loggedinonly();
   $body = $_POST['body'];
   
   if (!$body)
   autolink("torrents-details.php?id=$id", T_("YOU_DID_NOT_ENTER_ANYTHING"));

   SQL_Query_exec("UPDATE torrents SET comments = comments + 1 WHERE id = $id");

   SQL_Query_exec("INSERT INTO comments (user, torrent, added, text) VALUES (".$CURUSER["id"].", ".$id.", '" .get_date_time(). "', " . sqlesc($body).")");

   if (mysqli_affected_rows($GLOBALS["DBconnector"]) == 1)
   autolink("torrents-details.php?id=$id", T_("COMMENT_ADDED"));
       else
   autolink("torrents-details.php?id=$id", T_("UNABLE_TO_ADD_COMMENT"));
}//end insert comment

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)
2019-06-02 06:55:30
a big thank you M8
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