halil1487 Posted September 7, 2007 Share Posted September 7, 2007 işi çözdüm arkadaşlar ipb her türlü sürümde çalıştırabilirsiniz endinize göre bazı editlemler yabilirsiniz forumdan son mesajlar : <?phpdefine( 'ROOT_PATH', "./" );define( 'KERNEL_PATH', ROOT_PATH.'ips_kernel/' );$INFO['sql_driver'] = ! $INFO['sql_driver'] ? 'mysql' : strtolower($INFO['sql_driver']);require ( KERNEL_PATH.'class_db_'.$INFO['sql_driver'].".php" );$INFO = array();require ROOT_PATH."conf_global.php";$DB = new db_driver;$DB->obj['sql_database'] = $INFO['sql_database'];$DB->obj['sql_user'] = $INFO['sql_user'];$DB->obj['sql_pass'] = $INFO['sql_pass'];$DB->obj['sql_host'] = $INFO['sql_host'];$DB->obj['sql_tbl_prefix'] = $INFO['sql_tbl_prefix'];$DB->obj['query_cache_file'] = ROOT_PATH.'sources/sql/'.$INFO['sql_driver'].'_queries.php';$DB->obj['use_shutdown'] = USE_SHUTDOWN;if ( is_array( $DB->connect_vars ) and count( $DB->connect_vars ) ){foreach( $DB->connect_vars as $k => $v ){$DB->connect_vars[ $k ] = $INFO[ $k ];}}$DB->connect();$sira=0;$resulta = mysql_query("SELECT * FROM `ibf_topics` where last_post order by last_post desc LIMIT 0 , 30");echo "<table id='userlinks' width='500' border='1' cellspacing='0' cellpadding='0'>";echo " <td id='userlinks' width='5'>Sıra</td>";echo " <td id='userlinks' align='center' width='300'><b>Forum'larda Son Mesaj Yazılan Konular</b></td>";echo " <td id='userlinks' align='center' width='25'>Mesaj</td>";echo " <td id='userlinks' align='center' width='100'>Mesaj Yazan</td>";while ($resultat = mysql_fetch_array($resulta)) {$sira++;$tid=$resultat[tid];$baslik=$resultat[title];$forumid=$resultat[forum_id];$sonyazan=$resultat[last_poster_name]; $lastpost=$resultat[last_post];$userid=$resultat[last_poster_id];$toplammesaj=$resultat[posts];echo " <tr >";echo " <td id='userlinks' width='15'>";echo " <div align='center'>$sira</div>";echo " </td>";echo " <td id='userlinks' width='300'><a href='index.php?showtopic=$tid&view=getnewpost'>$baslik</a></td>";echo " <td id='userlinks' align='right' width='35'><a href='index.php?showtopic=$tid&view=getnewpost'>$toplammesaj</a></td>";echo " <td id='userlinks' width='100'><a href='index.php?showuser=$userid'>$sonyazan</a></td>";echo " </tr>";}echo "</table> ";?>[/CODE]Yukarıdaki Kodlara Göre Son 30 Mesajı Gösteriyor Sayıyı Belirlemek İçin:[CODE]$resulta = mysql_query("SELECT * FROM `ibf_topics` where last_post order by last_post desc LIMIT 0 , 30");[/CODE]Alanını Bulun [CODE]LIMIT 0 , 30");[/CODE] 30 yazan yere istediğiniz bir sayı girin girdiğiniz sayı kadar mesaj gösterilecektir Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.