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
New Avatar Log Function
Controls ·  Search New posts · Mark unread

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

Unknown User
2012-11-17 14:15:09
For a better view replaces the 'avatars' function in admincp.php with this one:



#======================================================================#

# Avatar Log - Updated by BigMax (17-11-2012)

#======================================================================#

if ($action=="avatars"){

stdhead("Avatar Log");

navmenu();



begin_frame("Avatar Log");



if (!$CURUSER || $CURUSER["control_panel"]!="yes"){

show_error_msg(T_("ERROR"), T_("SORRY_NO_RIGHTS_TO_ACCESS"), 1);

}



$query = SQL_Query_exec("SELECT count(*) FROM users WHERE enabled='yes' AND avatar !=''");

$count = mysql_fetch_row($query);

$count = $count[0];



print("<div style='margin-top:10px; margin-bottom:10px' align=center><font size=2>The gallery of avatars. Click on image to view owner profile.</font></div>");



list($pagertop, $pagerbottom, $limit) = pager(50, $count, 'admincp.php?action=avatars&amp;');

echo ($pagertop);



$query = "SELECT id, username, avatar FROM users WHERE enabled='yes' AND avatar !='' $limit;";

$res = SQL_Query_exec($query);



?>

<table align=center cellpadding=5>

<?php

$cols = 5; //set cols number here



while($arr = mysql_fetch_array($res))

{

if (($cols % 5) == 0) echo "<tr>";



echo "<td class=embedded width=150><center><a href="account-details.php?id=".$arr['id'].""><br>";



if (!$arr['avatar'])

echo "<img width="150" src='images/default_avatar.png' alt='' /></td>";

else

echo "<img width="150" src="".htmlspecialchars($arr["avatar"])."" border=0 alt=".$arr['username']." title=".$arr['username']."></a></center></td>";



if (($cols % 1) != 0)

echo "</tr>";



$cols++;

}

?>

</table>

<?php

echo ($pagerbottom);

end_frame();

stdfoot();

}

#======================================================================#

# End Avatar Log

#======================================================================#


avatars.png
avatars.png
2012-11-17 21:18:29
Thanks a lot. Works great.
2012-11-18 16:01:36
nice, works great. thanks for sharing :)
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)
Unknown User
2014-10-30 18:37:40
Thx work fine on tt v2.8
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