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
[ADDON] Not Connectable Warning
Controls ·  Search New posts · Mark unread

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

Unknown User
2008-01-26 18:32:06
This addon will inform your members if they are not connectable, short and simple  :)

open index.php

find:

//Not Connectable

$res = mysql_query("SELECT connectable FROM peers WHERE userid=" . $CURUSER['id'] . "");

if (mysql_num_rows($res) > 0)

{

$arr = mysql_fetch_assoc($res);

$connect = $arr["connectable"];

}

if ($connect == "no")

show_error_msg("Not Connectable", "Warning this site is showing that you are not connectable please review <a href=faq.php>faq </a> . If your still having issues please contact a member of the staff thank you.",0);

*Tested and working on TT V2.03*
Unknown User
2008-01-27 00:19:03
thanks for the addon but i get a warning

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in

index.php on line 29
Unknown User
2008-01-27 00:29:06
what version of TT are you using also what is your line 29? I added this to mine around line 14 thanks
Unknown User
2008-01-27 02:16:49
Here's my own code (ported from 1.x, another dusty mod I never posted). This wrkd fine on my production site:

//SYSTEM CONNECTABLE

if ($CURUSER){

$sqlcon = mysql_query("Select * from peers where userid =" . $CURUSER["id"] . "");

$resultadocon = mysql_fetch_array($sqlcon);

if($resultadocon[connectable] == 'yes')

{

print("<b>Connectable: <font color=green>YES</b></font>");

}

else

{

print("<b>Connectable: <font color=red>NO</b></font>");

}

}

// END CONNECTATBLE
Unknown User
2008-01-27 03:21:04
my code works fine on my site so it should work ezerbeth, also the only reason why I prefer my method is if a user is connectable I dont think they need to be made aware of the fact only if there is an issue that way you dont have a perm block for just connectability, other then that your a coding god in my eyes :)
Unknown User
2008-01-27 04:31:04
or...

blocks/login_block.php, find:

 print ("<center><img width=80 height=80 src=$avatar></center><br>" . DOWNLOADED . ": $userdownloaded<br>" . UPLOADED . ": $useruploaded<BR>" . ACCOUNT_PRIVACY_LV . ": $privacylevel<BR>". RATIO .": $userratio");



add below:



$connectable = get_row_count("peers", "WHERE connectable='yes' AND userid=$CURUSER[id]");

$unconnectable = get_row_count("peers", "WHERE connectable='no' AND userid=$CURUSER[id]");

if ($unconnectable)

print "<br><b>Connectable: <font color='#FF0000'>NO</font></b>";

elseif ($connectable)

print "<br><b>Connectable: <font color='#00FF00'>YES</font></b>";

else

print "<br><b>Connectable: <font color='#FF9900'>N/A</font></b>";
Unknown User
2008-01-27 05:49:17
very nice TS that is a not so in your face approach lol I think I will switch my site to that my only suggestion and I wont repost the code since its so simple but users may want to add a href link to faq if the connectablity is No for the users can have direct link to a guide on how to fix, thanks Ts for your input we now have 3 different approaches to this issue  :)  so users have lots of options :P
Unknown User
2008-01-27 19:58:33
"TorrentialStorm, post: 38033":
or...blocks/login_block.php, find:

 print ("<center><img width=80 height=80 src=$avatar></center><br>" . DOWNLOADED . ": $userdownloaded<br>" . UPLOADED . ": $useruploaded<BR>" . ACCOUNT_PRIVACY_LV . ": $privacylevel<BR>". RATIO .": $userratio");
add below:


$connectable = get_row_count("peers", "WHERE connectable='yes' AND userid=$CURUSER[id]");

$unconnectable = get_row_count("peers", "WHERE connectable='no' AND userid=$CURUSER[id]");

if ($unconnectable)

print "<b>Connectable: <font color='#FF0000'>NO</font></b>";

elseif ($connectable)

print "<b>Connectable: <font color='#00FF00'>YES</font></b>";

else

print "<b>Connectable: <font color='#FF9900'>N/A</font></b>";




thank you. i ran into a problem with this, the connectable was showing on the same line as the ratio, but i fixed it. i added a <br> after ": $userratio" in the part that you said to find.
Unknown User
2008-01-28 19:10:14
"Lenaud01, post: 38008":
This addon will inform your members if they are not connectable, short and simple  :)

not connectable to what, site/tracker etc etc
Unknown User
2008-01-29 16:01:12
"Lenaud01, post: 38008":
This addon will inform your members if they are not connectable, short and simple  :)
I installed this hack and at all users show Connectable: NO or Connectable: N/A.

What that is mean, what I have to do for fixing this problem.

Thanks
Unknown User
2008-01-29 17:25:46
this will tell the user if they are able to be connected to via there torrent client so they are uploading and downloading at best speeds, if a user is not connectable it is usually caused by them having a router that does not have the ports properly forwarded for more information please visit

[url="http://www.portforward.com"]Portforwarding Guide[/url]

thanks and let us know if you have any more problems or questions
Unknown User
2008-01-29 18:37:37
"Lenaud01, post: 38154":
this will tell the user if they are able to be connected to via there torrent client so they are uploading and downloading at best speeds, if a user is not connectable it is usually caused by them having a router that does not have the ports properly forwarded for more information please visit
[url="http://www.portforward.com"]Portforwarding Guide[/url]

thanks and let us know if you have any more problems or questions
No, I think that is some things wrong with server settings. my port properly forwarded, I have excellent speed with other torrent sites and my connection icon on utorrent is green. Besides, 150 users can't have same problem with port forwarding.

Help me please guys
Unknown User
2008-02-02 16:44:43
"TorrentialStorm, post: 38033":
or...blocks/login_block.php, find:

 print ("<center><img width=80 height=80 src=$avatar></center><br>" . DOWNLOADED . ": $userdownloaded<br>" . UPLOADED . ": $useruploaded<BR>" . ACCOUNT_PRIVACY_LV . ": $privacylevel<BR>". RATIO .": $userratio");
add below:


$connectable = get_row_count("peers", "WHERE connectable='yes' AND userid=$CURUSER[id]");

$unconnectable = get_row_count("peers", "WHERE connectable='no' AND userid=$CURUSER[id]");

if ($unconnectable)

print "<br><b>Connectable: <font color='#FF0000'>NO</font></b>";

elseif ($connectable)

print "<br><b>Connectable: <font color='#00FF00'>YES</font></b>";

else

print "<br><b>Connectable: <font color='#FF9900'>N/A</font></b>";




It is working. Thanks :)
Unknown User
2008-02-05 14:15:58
me 2...

im considered connectable in IPTorrents.com

but in unconnectable in iLoveTorrents.com...

this is confusing...

someone enlighten?
Unknown User
2008-03-30 08:59:37
"Lenaud01, post: 38035":
very nice TS that is a not so in your face approach lol I think I will switch my site to that my only suggestion and I wont repost the code since its so simple but users may want to add a href link to faq if the connectablity is No for the users can have direct link to a guide on how to fix, thanks Ts for your input we now have 3 different approaches to this issue  :D  so users have lots of options  :D

On that note, I'm using both Lenaud01 and TorrentialStorm code.  That way, users know if they are N/A or YES and if they are a NO then they get the nice disclaimer with the link.  Great work!
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