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
mp shoutbox
Controls ·  Search New posts · Mark unread

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

2019-12-10 19:50:20
Hello, can you look at making this module to ttrader v3 compatible because I added the code and it doesn't work, thank you in advance o_O


[URL unfurl="true"]https://www.torrenttrader.xyz/index.php?threads/new-pm-in-shoutbox.3981[/url]
Unknown User
2019-12-10 20:16:55
if ($CURUSER) {
    //check for new pm's
    $res = SQL_Query_exec("SELECT * FROM messages WHERE receiver=" . $CURUSER["id"] . " and unread='yes' AND location IN ('in','both')");
    $arr = mysqli_num_rows($res)
    if ($arr)
        print("<font color='#ff0000' size='3'><b><center><blink>You Got A New PM </font>[<a href='mailbox.php?inbox' target='_blank'>click here to read</a>]</blink></center></b></a></font>&nbsp;&nbsp;");
}
2019-12-10 21:04:47
thanks for your help but with this code the messages from the shoutbox have disappeared
Unknown User
2019-12-10 21:20:17
if ($CURUSER) {
    //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("<font color='#ff0000' size='3'><b><center><blink>You Got A New PM </font>[<a href='mailbox.php?inbox' target='_blank'>$unreadmail</a>]</blink></center></b></a></font>&nbsp;&nbsp;");

}
2019-12-11 16:19:01
"shadows, post: 67650, member: 20311":

if ($CURUSER) {
    //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("<font color='#ff0000' size='3'><b><center><blink>You Got A New PM </font>[<a href='mailbox.php?inbox' target='_blank'>$unreadmail</a>]</blink></center></b></a></font>&nbsp;&nbsp;");

}






Good evening, a big thank you to you shadows it works well now with this code, and you can put it in the finished modules (y):D
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: 5
  • Members: 0
  • Guests online: 5
  • Comments: 3
  • Messages: 1,728