GregFest Posted March 17, 2011 Posted March 17, 2011 How would you set up a event logs like the mail logs Quote
GregFest Posted March 17, 2011 Author Posted March 17, 2011 this is what i have, but its not showing logs function view_event_logs() { global $db,$ir,$c,$h,$userid; $_GET['st']=abs((int) $_GET['st']); $rpp=100; print "<h3>events Logs</h3> <table width=75% cellspacing='1' border='1' class=''> \n<tr style='background:darkred'> <th>ID</th> <th>Time</th> <th>User ID</th> <th width=30%>Event</th> <th></th> </tr>"; while($r=$db->fetch_row($q)) { print "\n<tr><td>{$r['evID']}</td> <td>" . date("F j, Y, g:i:s a",$r['evTIME']) . "</td><td>{$r['evUSER']} [{$r['evUSER']}] </td> {$r['evTEXT']}</td> \n<td>{$r['evTEXT']}</td> <td> </tr>"; } print "</table> "; $mypage=floor($_GET['st']/$rpp)+1; $q2=$db->query("SELECT evID FROM events WHERE evUSER != 0"); $rs=$db->num_rows($q2); $pages=ceil($rs/$rpp); print "Pages: "; for($i=1;$i<=$pages;$i++) { $st=($i-1)*$rpp; print "$i"; if($i % 7 == 0) { print " \n"; } } stafflog_add("Viewed the events Logs (Page $mypage)"); } Quote
a_bertrand Posted March 18, 2011 Posted March 18, 2011 Why not use the mod: http://makewebgames.io/board901/35073-entire-game-logs Quote
Paul Evans Posted March 19, 2011 Posted March 19, 2011 I think Bertrand's suggestion may be a good idea Quote
GregFest Posted March 19, 2011 Author Posted March 19, 2011 Brought good idea, works done.. lol Quote
Maniak Posted March 19, 2011 Posted March 19, 2011 Just looking at your post, no wonder the Events are not showing... Where is the query?! Quote
GregFest Posted March 19, 2011 Author Posted March 19, 2011 gave up just brought the game logs mod Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.