? //+----------------------------------------------------------------------+ // | //...........Last X Posts phpBB2.0.........\\ // | marquee | // +----------------------------------------------------------------------+ // | Copyright (c) 2002 secra Scripts, Saudi Arabia | // +----------------------------------------------------------------------+ // | http://www.fut4.com | // +----------------------------------------------------------------------+ // | Author:secra4 | // | | // | Date: 2002-04-22 : Lunch of Ver. 1 | // | | // +----------------------------------------------------------------------+ // // Version 1.0 // ***************************************************// // ************* Configration Start ****************// // ***************************************************// PRINTF(""); $openlinks="_blank"; // Open link type [_blank: open in new window] $LIMIT=10; //// Number of Topics $exforum= array(); //Default: No Forum Will Be Execluded - eg. array(1,5,8) define('IN_PHPBB', true); include($phpbb_root_path . 'extension.inc'); include($phpbb_root_path . 'common.'.$phpEx); $fut=""; IF(count($exforum)): $fut="where "; FOR ($Q=0;$Q<=count($exforum)-1;$Q++){ if ($Q== count($exforum)-1): $fut.="forum_id <> '".$exforum[$Q]."' "; ELSE: $fut.="forum_id <> '".$exforum[$Q]."' and "; ENDIF; } ENDIF; PRINTF(""); $QUERY = "SELECT * FROM phpbb_topics ".$fut." ORDER BY topic_time DESC limit $LIMIT"; $result = mysql_query($QUERY); $topics=mysql_num_rows($result); while($myrow= mysql_fetch_array($result)) { IF($myrow["topic_status"]==0): PRINTF(" %s\n\n     ", $myrow["topic_id"], $myrow["topic_title"]); ENDIF; } PRINTF( ""); ?>

FORUM TOP TEN TOPICS


Click on a link to view the thread.






Copyright (c) 2001-2007 www.311s.org
All Rights Reserved.

Reproduction of material presented here is strictly prohibited without written permission.