|
#1
|
||||
|
||||
Connection check mod request
So i need a little function that checks if users pc is connectable
in case it is show one image and in other case another image |
#2
|
||||
|
||||
PHP Code:
__________________
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/ |
#3
|
||||
|
||||
not working
this works better Code:
$sql = "SELECT count(id) as count FROM ".$db_prefix."_peers WHERE connectable = 'yes' and uid = '".$user->id."';"; $conec = $db->sql_query($sql) OR btsqlerror($sql); $conectable = $db->sql_fetchrow($conec); if($conectable['count'] > 0)echo pic('/imperial/transmit_blue.png',NULL,'Conectable'); else echo pic('/imperial/transmit.png',NULL,'Not Conectable'); |
#4
|
||||
|
||||
that well show you I did it for putting in user profile
and you do not have to add theme link its part of the function you only put name of the pic
__________________
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/ |
#5
|
||||
|
||||
it needed to be a little diferent for me since there is a query for all the stuff already :bubble:
any hove good job |
#6
|
||||
|
||||
please this
PHP Code:
PHP Code:
the function auto maticly goes to themes/userstheme/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/ |
#7
|
||||
|
||||
i have all theme icons in themes/pmbt/pics/imperial/
these icons too so i can later do cleanup and have only needed stuff in this case puting new theme icons with old ones in same folder woud make a big mess for me later |
#8
|
||||
|
||||
but you posting like you did well confuse others that follow so Pointing it out to help
__________________
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/ |
#9
|
||||
|
||||
ok i'm sorry
i suggest better deleate all useles posts and leave only working code and move topic to mod section |
Tags |
check , connection , mod , request |
|
|