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
Show New Message In Shoutbox [TTv3]
Controls ·  Search New posts · Mark unread

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

2019-03-16 07:08:51
Updated for V3 credit to Original Author

in shoutbox.php find
    $query = 'SELECT * FROM shoutbox ORDER BY msgid DESC LIMIT 20';
}


add below
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;");

}
Unknown User
2019-04-01 20:11:39
this was given to tt.org by me who coder it up its about time u looked who coder up and who by
2019-04-04 23:40:19
just a note, I dont think <blink> works anymore if I remember correctly. You have to do some css to blink the text, something like this. If I dont have this correct, just look at the modded version login_block and you should see what I mean. I did this to the connectable mod to blink NO if a user wasnt connectable to get their attention lol
print("<font color='#ff0000' size='3' class='blink'><b><center>You Got A New PM </font>[<a href='mailbox.php?inbox' target='_blank'>$unreadmail</a>]</center></b></a></font>&nbsp;&nbsp;");

and then add to theme.css
@keyframes marquee {
   0%   { transform: translate(0, 0); }
   100% { transform: translate(-100%, 0); }
}
   .blink {
   -webkit-animation: 2s linear infinite condemed_blink_effect; // for android
   animation: 2s linear infinite condemed_blink_effect;
}
@-webkit-keyframes condemed_blink_effect { // for android
   0% {
       visibility: hidden;
   }
   50% {
       visibility: hidden;
   }
   100% {
       visibility: visible;
   }
}
@keyframes condemed_blink_effect {
   0% {
       visibility: hidden;
   }
   50% {
       visibility: hidden;
   }
   100% {
       visibility: visible;
   }
}

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)
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: 9
  • Members: 0
  • Guests online: 9
  • Comments: 3
  • Messages: 1,728