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
[Mod] Who's Where Improvement
Controls ·  Search New posts · Mark unread

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

Unknown User
2011-10-14 13:37:19
"Noname12, post: 75595":
Powered by TorrentTrader v2.07


well it must not be able to find the function for now change to mysql_query and ill look at what is wrong tomorrow.
Unknown User
2011-10-14 13:42:27
in the line

$where = where ($_SERVER["SCRIPT_FILENAME"], $row["id"], 0);

SQL_Query_exec("UPDATE users SET last_access='" . get_date_time() . "', ip=".sqlesc($ip).", page=".sqlesc($where)." WHERE id=" . $row["id"]);





i have

 

 $where = where ($_SERVER["SCRIPT_FILENAME"], $row["id"], 0);

mysql_query("UPDATE users SET last_access='" . get_date_time() . "', ip=".sqlesc($ip).", page=".sqlesc($where)." WHERE id=" . $row["id"]) or die(mysql_error());
Unknown User
2011-10-14 13:56:59
"Noname12, post: 75597":
in the line

$where = where ($_SERVER["SCRIPT_FILENAME"], $row["id"], 0);

SQL_Query_exec("UPDATE users SET last_access='" . get_date_time() . "', ip=".sqlesc($ip).", page=".sqlesc($where)." WHERE id=" . $row["id"]);
i have

 
 $where = where ($_SERVER["SCRIPT_FILENAME"], $row["id"], 0);

mysql_query("UPDATE users SET last_access='" . get_date_time() . "', ip=".sqlesc($ip).", page=".sqlesc($where)." WHERE id=" . $row["id"]) or die(mysql_error());




yeh should work but today i don't have much time some real life things to do will look over it all tomorrow ;)
Unknown User
2011-10-14 14:03:56
use mysql_query, SQL_Query_exec was implemented after the release of 2.07
Unknown User
2011-10-14 15:45:26
"djhowarth, post: 75600":
use mysql_query, SQL_Query_exec was implemented after the release of 2.07
no error now ..excellent   ;) But how time take to see the changes who look a member?
Unknown User
2011-10-14 19:11:43
i delete this code because i have a problem.....  i dont see any member in Users Online in home page
Unknown User
2011-10-18 14:34:43
its ok now
Unknown User
2011-10-18 22:15:08
if you don't mind , could you post the fix , if it was code based ?
Unknown User
2011-10-19 03:37:15
i dont understand how fix the problem, i write the first post and after 2 days all its ok

i change the  SQL_Query_exec as mysql_query
Unknown User
2011-10-19 18:50:09
a small problem, the time is 3 hours before. how to fix it?

Screenshot.png
Screenshot.png
Unknown User
2011-10-19 18:55:53
Find in admincp.php

if ($action=="whoswhere"){

stdhead("Where are members");

navmenu();



begin_frame("Last 100 page views");

print("<CENTER><table class=table_table width=80%><tr><td class=table_head>User</td><td class=table_head>Page</td><td class=table_head>Accessed</td></tr>");

$res = SQL_Query_exec("SELECT id, username, page, last_access FROM users ORDER BY last_access DESC LIMIT 100");

while ($arr = mysql_fetch_assoc($res))

print("<tr><td class=table_col1><a href=account-details.php?id=$arr[id]><b>$arr[username]</b></a></td><td class=table_col2>".htmlspecialchars($arr["page"])."</td><td  class=table_col1>$arr[last_access]</td></tr>");

print("</table></CENTER>");

end_frame();



stdfoot();

}
replace with




if ($action=="whoswhere"){

stdhead("Where are members");

navmenu();



begin_frame("Last 100 page views");

print("<CENTER><table class=table_table width=80%><tr><td class=table_head>User</td><td class=table_head>Page</td><td class=table_head>Accessed</td></tr>");

$res = SQL_Query_exec("SELECT id, username, page, last_access FROM users ORDER BY last_access DESC LIMIT 100");

while ($arr = mysql_fetch_assoc($res))

print("<tr><td class=table_col1><a href=account-details.php?id=$arr[id]><b>$arr[username]</b></a></td><td class=table_col2>".htmlspecialchars($arr["page"])."</td><td  class=table_col1>".utc_to_tz($arr["last_access"]."</td></tr>");

print("</table></CENTER>");

end_frame();



stdfoot();

}



remember  SQL_Query_exec = mysql_query if u dont have it
Unknown User
2011-10-20 15:28:05
Parse error: syntax error, unexpected ';' in /home/content/xxxxxx/html/xx/admincp.php on line 865
Unknown User
2011-10-20 16:11:15
missing a )

	if ($action=="whoswhere"){

stdhead("Where are members");

navmenu();



begin_frame("Last 100 page views");

print("<CENTER><table class=table_table width=80%><tr><td class=table_head>User</td><td class=table_head>Page</td><td class=table_head>Accessed</td></tr>");

$res = SQL_Query_exec("SELECT id, username, page, last_access FROM users ORDER BY last_access DESC LIMIT 100");

while ($arr = mysql_fetch_assoc($res))

print("<tr><td class=table_col1><a href=account-details.php?id=$arr[id]><b>$arr[username]</b></a></td><td class=table_col2>".htmlspecialchars($arr["page"])."</td><td  class=table_col1>".utc_to_tz($arr["last_access"])."</td></tr>");

print("</table></CENTER>");

end_frame();



stdfoot();

}
Unknown User
2011-10-20 17:37:30
Thanks my friend  ;)
Unknown User
2011-10-28 08:25:12
this mod is ok for TorrentTrader v2-svn??
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