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
[Solved] User class and uploaded torrent
Controls ·  Search New posts · Mark unread

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

Unknown User
2019-04-28 11:25:30
How to add those inside topics and posts on forums.php?
2019-04-28 15:01:35
Do you mean where the users avatar, upload, download etc is so it would look like
Class - member
Torrents shared - 6 (this could be link to a list)
Unknown User
2019-04-28 15:35:21
Yeah, exactly that.
Unknown User
2019-04-28 17:06:15
Also, one more question [USER=20288]@m-jay[/USER] which variable is to show custom message when registrations are open and when are closed in header.php
2019-04-28 17:44:40
ive managed to get the class number and torrent posted number to show just need the group name to show now

find
print ("<tr valign='top''><td width='150' align='left' class='comment-details'><center><i>$title</i>


replace with full line with
    $res2 = SQL_Query_exec("SELECT COUNT(*) FROM `torrents` WHERE `owner` = '$posterid' ");
       $arr2 = mysqli_fetch_row($res2);
       $torrentposts = $arr2[0];

       $res3 = SQL_Query_exec("SELECT class FROM `users` WHERE id=$posterrid ");
       $arr3 = mysqli_fetch_row($res3);
       $group = $arr3[0];
     

     
           print ("<tr valign='top''><td width='150' align='left' class='comment-details'><center><i>$title</i></center><br /><center><img width='80' height='80' src='$avatar' alt='' /></center><br />Class:$group<br />Uploaded: $useruploaded<br />Downloaded: $userdownloaded<br />Posts: $forumposts <br />Torrents: $torrentposts<br /><br />Ratio: $userratio<br />Location: $usercountry<br /><br /></td>");
Unknown User
2019-04-28 18:15:33
[USER=20288]@m-jay[/USER] Thanks for fast reply, but I think it shows for everyone number of torrents of current logged user.
2019-04-28 19:26:34
You can try on first line at end replace
$userid with $topic_userid
If not I'll have a play with it next time I get some free time, and get a link to a php file

It might be possible to add a php file useractivey.php with action uploaded torrents, action members comments so you could put all these on the forum
Unknown User
2019-04-28 19:56:42
[USER=20288]@m-jay[/USER] adding it now shows 0 to everyone.
2019-04-28 20:11:28
sorry it should be $posterid first reply updated
Unknown User
2019-04-28 21:53:11
It works now [USER=20288]@m-jay[/USER], just remove quotes from = posterid

Also, do you happen to have an answer for post #4?
2019-04-29 15:32:05
It depends on if you have invites on or off or invites enabled it would be something like
if ($site_config['INVITEONLY']){
    print("open");
}else{
    print("closed");
}    

you can put this near staff panel link code in header to see, then its just about positioning it to your liking you could add above infobar or below header you can always center code and add a space like
if ($site_config['INVITEONLY']){
    print("<center>open</center>");
}else{
    print("<center>closed</center>");
}    <br />
Unknown User
2019-04-29 17:05:07
Awesome and everything for this thread is now solved.
2019-04-30 13:55:06
ive added group name instead of user class
        $res2 = SQL_Query_exec("SELECT COUNT(*) FROM `torrents` WHERE `owner` = $posterid ");
       $arr2 = mysqli_fetch_row($res2);
       $torrentposts = $arr2[0];

       $res3 = SQL_Query_exec("SELECT class FROM `users` WHERE id=$posterid ");
       $arr3 = mysqli_fetch_row($res3);
       $group1 = $arr3[0];
       $res5 = SQL_Query_exec("SELECT level FROM `groups` WHERE group_id=$group1 ");
       $arr6 = mysqli_fetch_row($res5);
       $group = $arr6[0];

       
           print ("<tr valign='top''><td width='150' align='left' class='comment-details'><center><i>$title</i></center><br /><center><img width='80' height='80' src='$avatar' alt='' /></center><br />Class:$group<br />Uploaded: $useruploaded<br />Downloaded: $userdownloaded<br />Posts: $forumposts <br />Torrents: $torrentposts<br /><br />Ratio: $userratio<br />Location: $usercountry<br /><br /></td>");


at the weekend im going to play around with a php file im hoping its possible to list all users comments, uploads, completed etc so you could add these with links to the page on the forum, but also to a block maybe for that user to see his own or for staff
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