Puika1 Posted March 14, 2010 Report Share Posted March 14, 2010 ka no shi scripta http://defektologs.lv/files/class_ipb_online.zip uztaisit šādu Quote Link to comment Share on other sites More sharing options...
waplet Posted March 14, 2010 Report Share Posted March 14, 2010 Tu tikko "iemācījies" html un nu jau ķeries klāt PHP? :D Quote Link to comment Share on other sites More sharing options...
Puika1 Posted March 14, 2010 Author Report Share Posted March 14, 2010 Savas zināšanas man ir,bet ar gataviem scriptiem ir ta pagrutak Quote Link to comment Share on other sites More sharing options...
waplet Posted March 14, 2010 Report Share Posted March 14, 2010 Lieta tāda, ja tas skripts neko tādu nepiedāvā, tad diezvai tiksi galā, bet jau piedāvā : just turn it on. Quote Link to comment Share on other sites More sharing options...
chizijs Posted March 14, 2010 Report Share Posted March 14, 2010 Forumā pilns ar šādiem jautājumiem un atbildēm, takā meklē, meklē un velreiz meklē :) Quote Link to comment Share on other sites More sharing options...
Snaip3Rs Posted March 14, 2010 Report Share Posted March 14, 2010 Ja atradīsi vai sataisīsi lūdzu ieposto skriptu jo šo es jau mēginu veselu nedēļu sataisīt bet nestrādā! :( Quote Link to comment Share on other sites More sharing options...
2easy Posted March 14, 2010 Report Share Posted March 14, 2010 tikai šo forumu meklē caur googli: "tas ko tu meklē site:php.lv" Quote Link to comment Share on other sites More sharing options...
chizijs Posted March 14, 2010 Report Share Posted March 14, 2010 Pievieno tabulā ibf_members lauku ko_dara un liec šo kodu switch($_GET['lapa']) { case 'news': include_once("news.php"); $ko_dara = "Lasa jaunumus"; mysql_query("UPDATE ibf_members SET ko_dara = '".mysql_real_escape_string($ko_dara)."' WHERE id = '".$_COOKIE['member_id']."'") or die(mysql_error()); break; default: include_once('index.php'); break; } $delay = time()-300; $sql = mysql_query("SELECT * FROM ibf_members WHERE last_activity(hz, kaads tur bija) <= '".$delay."'") or die(mysql_error()); if(mysql_num_rows($sql) != 0){ while($o = mysql_fetch_array($sql)){ echo " <img src='/grupas/".$o['group'].".png' /> <a href='/f/?showuser=".$o['id']."'>".$o['username']."</a><br/>".$o['ko_dara']."<hr/> "; } }else{ echo "nav neviena onlainā"; } Quote Link to comment Share on other sites More sharing options...
marcis Posted March 14, 2010 Report Share Posted March 14, 2010 configuration options:+ (boolean) location - shows what user is doing in forum, false by default // $online->config('location', true); Quote Link to comment Share on other sites More sharing options...
Puika1 Posted March 14, 2010 Author Report Share Posted March 14, 2010 mazliet tiku skaidriba,bet problema Man izskatas sadi Bet gribetos sadi Kas pa problemu reku fragmens no css } * { margin: 0; padding: 0; } .online_members { list-style: none; padding-right: 5px; } .online_members li { line-height: 140%; padding: 2px 20px; padding-right: 5px; } .online_members img { float: left; } .online_members .admin { /* admin group style */ font-weight: bold; /* add icon as background image or anything you want */ } .online_members .time, .online_members .location { color: #aaa; } .board_data { list-style: none; } .board_data li { padding: 1px 0; } .board_data span { } /*--Forums Online----*/ .online_members .gfdsf { background: url("root.gif") no-repeat 0 0; } .online_members .time, .online_members .location { color: #aaa; } .board_data { list-style: none; } .board_data li { padding: 1px 0; } .board_data span { font-weight: none; } Quote Link to comment Share on other sites More sharing options...
Snaip3Rs Posted March 15, 2010 Report Share Posted March 15, 2010 a es tur nomainu ofset no 0 uz 10 man error uzreiz! jo man rādās tādi cilvēki kas nemaz pus dienu nav bijuši online ka var uzlikt lai tos kas nav online nerādītu! Tā rāda tas skripts kam vajag to funkciju Atvainojiet par spam! Tā jārada pareizi Quote Link to comment Share on other sites More sharing options...
chizijs Posted March 16, 2010 Report Share Posted March 16, 2010 (edited) Liec 1 nevis 10 Vai arī uzliec defaultā jeb uz 0 Edited March 16, 2010 by chizijs Quote Link to comment Share on other sites More sharing options...
Snaip3Rs Posted March 16, 2010 Report Share Posted March 16, 2010 Ja lieku <1 "viens vai vairāk par viens uzmet error" Error: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/lockerz/public_html/scripts/online/class_ipb_online.php on line 97 Error rinda kas jaapskata: if(mysql_num_rows($res) < 1) return $this; $groups = $avatars = $members = array(); $count = (object)array( 'members' => 0, 'guests' => 0 ); Un ja es atstāju 0 tad man rāda tādus lietotājus kas jau pirms kādas stundas vai vairāk ir bijuši tikai iekšā! :( Quote Link to comment Share on other sites More sharing options...
briedis Posted March 16, 2010 Report Share Posted March 16, 2010 Vai tiešām līdz šim brīdim vēl neesi sapratis, ka supplied argument is not a valid MySQL result resource nozīmē, ka kļūda kvērija sintaksē? :) Quote Link to comment Share on other sites More sharing options...
Snaip3Rs Posted March 16, 2010 Report Share Posted March 16, 2010 (edited) Tas ir laikam šis mysql_num_rows($res) < 1) ja ir mazāks par < 1 tad izvada datus bet ja lielāks tad error! :) Un ko tad lai es tur rakstu lai man cilvēkus nerādītu pēc 1min kad viņi ir pametuši forumu! Edited March 16, 2010 by Snaip3Rs Quote Link to comment Share on other sites More sharing options...
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.