PHP Code:
$sql = "SELECT count(id) as count FROM ".$db_prefix."_peers WHERE connectable = 'yes' and uid = '".$userrow["id"]."';";
$conec = $db->sql_query($sql) OR btsqlerror($sql);
$conectable = $db->sql_fetchrow($conec);
if($conectable['count'] > 0)echo pic('icon_active.gif',NULL,'Conectable');
else
echo pic('icon_passive.gif',NULL,'Not Conectable');
should do it the images are in themes/theme/pics/
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent
Do not ask me to make a mod for any other source
Do not Ask me to setup your site.
I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in
BT.Manager™ forum
My Current Demo is here
http://demo.btmanager.org/