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
User Posts

Go to Profile

could someone help me tidy the MOD, he is showing his friends online.

Please help me.

<?php

begin_block("Amigos");

$sql = "SELECT id, friendid FROM friends WHERE userid = '$CURUSER[id]'";

$mysql_result=mysql_query($sql) or die (mysql_error());

$res = mysql_fetch_assoc($mysql_result);

$id = $res['friendid'];

$dt = get_date_time(gmtime() - 180);

$contagem = mysql_query("SELECT count(*) FROM users WHERE id = '$id' AND last_access > $dt");

if ( $contagem > 0 ) {

echo"<table widt=100%>";

echo"<tr>";

while ($row=mysql_fetch_array($mysql_result)){

$idami = $row['friendid'];

$sql2 = mysql_query("SELECT id, username, last_access, avatar FROM users WHERE id = '$idami'");

$res2= mysql_fetch_array($sql2) or die (mysql_error());

$ami = $res2['username'];

$avatar = htmlspecialchars($res2["avatar"]);

if (!$avatar) {

$avatar = "".$site_config["SITEURL"]."/images/semimagem.gif";

}

echo "<td><a href=account-details.php?id=$id><b><font size=2>".$ami."</font></b></a></td>";

echo "<td><a href=mailbox.php?compose&id=$res2[id]>". "Enviar MP</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src=$avatar width=60 height=75 border=0></td><br><br>";

}

echo"</tr>";

echo "</table>";

print ("<center><a href=friend.php>V
for those who prefer that the link is in the torrent name him make these changes.

change:

 <td><div align="center"><b><?=$dispname?></b></div></td>
By:


<td><div align="center"><b><? echo "<a href=torrents-details.php?id=$torid>$dispname</a>";?></b></div></td>





change:



<td><div align="center"><font color="#009900">[Comments: <? echo "<a href=torrents-details.php?id=$torid

hit=1>$numcomments</a>";?>]</font></div></td>





By:



<td><div align="center"><font color="green">[Comments: <?=$numcomments?>]</font></div></td>



I am happy to know that there are people seeking to help the other members, as nigthmare ... I think it is always good new ideas arise and anyone can perform.

Great work nigthmare.

Hugs to all.
Yes this code is correct, the only mistake is that he is not showing a friend when he is online, what would be the adjustment to appear? But apart from this error is perfect, just need to get the friend to appear online when it is not showing. What has put that to appear online?
Nightmare I'm not getting the code to make friends who are not online does not appear on the Block, which would be how you get the code that I will post here and then post to me correctly?

<?php
if (!$site_config["MEMBERSONLY"] || $CURUSER) {

begin_block("Amigos");

/*if ($site_config["MEMBERSONLY"] && !$CURUSER) {

echo "<BR><BR><b><CENTER>Voc
I'm with other problem is showing the phrase "No friends online" in the same amount of friends aicionados, as I do to appear only once?

About friend deleted not leave the block you think is the takedelfriends.php?

How would you get this code will not appear for any online friend when you're not anyone online?

<?php
if (!$site_config["MEMBERSONLY"] || $CURUSER) {

begin_block("Amigos");

/*if ($site_config["MEMBERSONLY"] && !$CURUSER) {

echo "<BR><BR><b><CENTER>Voc
there is a problem when you delete a friend he leaves the block, he continues in that block you from deleting it Friend.php
someone could modify the code that I posted up there, only to appear on the block that the friend is online, and when there is no written up a sentence "There is no online friends?

thank you very much
I started doing the way that the MOD Chujh2 but I wanted to go to sleep, lack some things, like when you're not no friend Online does not appear anyone, and get the space that is appearing at the beginning of the block.

ALL THE MERITS OF THIS MOD TO GO nightmare, ME BASI IN HIS MOD.

Thank you nightmare

Hugs to everyone even more.

<?php
begin_block("Amigos");

if ($site_config["MEMBERSONLY"] && !$CURUSER) {

echo "<BR><BR><b><CENTER>Voc

in fact this is not my part here:

print("<td class=ttable_col2 nowrap><a href=\"java script: klappe_torrent('t".$row['id']."')\"><img border=\"0\" src=\"".$site_config["SITEURL"]."/images/plus.gif\" id=\"pict".$row['id']."\" alt=\"Show/Hide\" class=\"showthecross\"><a title=\"".$row["name"]."\" href=\"torrents-details.php?id=$id&amp;hit=1\">$dispname</a>");
I do not have that aquivor "header.php" as I do I get it?
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