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
[HACK] Signature List
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2 Only Mods Complete

Unknown User
2010-08-16 17:03:30
List users signatures in admincp, based on the avatar list.

I searched and didnt find in the forum, so I did my own, quite simple.

First you need to create the link:

In Admincp Find the last link image, something like this...

<td align="center"><a href=admincp.php?action=users><img src="images/admin/users.gif" border=0 width=32 height=32><br>Users</a><BR></td>


Add Below

<td align="center"><a href=admincp.php?action=signature><img src="images/admin/avatar.gif" border=0 width=32 height=32><br>Signature Log</a><BR></td>


Then Find

if ($action=="avatars"){stdhead("Avatar Log");

navmenu();

begin_frame("Avatar Log");

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

$count = mysql_fetch_row($query);

$count = $count[0];

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

echo ($pagertop);

?>

<CENTER><TABLE class=table_table>

<TR>

<TD class=table_head><b>User</b></TD>

<TD class=table_head><b><center>Avatar</center></b></TD>

</TR><?

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

$res = mysql_query($query);

while($arr = mysql_fetch_array($res)){

echo("<TR><TD class=table_col1><b><A href=\"account-details.php?id=" . $arr['id'] . "\">" . $arr['username'] . "</b></A></TD><TD class=table_col2>");

if (!$arr['avatar'])

echo "<img width=\"80\" src=images/default_avatar.gif></td>";

else

echo "<img width=\"80\" src=\"".htmlspecialchars($arr["avatar"])."\"></td>";

}

?>

</TABLE></CENTER>

<?

echo ($pagerbottom);

end_frame();

stdfoot();

}



Add Below

/////list signaturesif ($action=="signature"){

stdhead("Signature Log");

navmenu();

begin_frame("Signature Log");

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

$count = mysql_fetch_row($query);

$count = $count[0];

list($pagertop, $pagerbottom, $limit) = pager(15, $count, 'admincp.php?action=signature&');

echo ($pagertop);

?>

<CENTER><TABLE class=table_table>

<TR>

<TD class=table_head><b>User</b></TD>

<TD class=table_head><b><center>Signature</center></b></TD>

</TR><?

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

$res = mysql_query($query);

while($arr = mysql_fetch_array($res)){

$usersignature = stripslashes(format_comment($arr["signature"]));

echo("<TR><TD class=table_col1><b><A href=\"account-details.php?id=" . $arr['id'] . "\">" . $arr['username'] . "</b></A></TD><TD class=table_col2>");

echo "$usersignature</tr>";

}

?>

</TABLE></CENTER>

<?

echo ($pagerbottom);

end_frame();

stdfoot();

}

///////////////////

Unknown User
2010-08-19 22:15:12
hi ya thanks for this quick mod all working on 2.06 ;)
Unknown User
2010-10-06 19:55:39
Tnx, work fine.
Unknown User
2011-01-28 15:54:50
Hi Guys,

Instead of having links in the ADMINCP.php, would it be possible to see the SIGNATURE in IMAGES, same as the avatar log.

Thanx. Regards.
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