Same problem here. The download files is, indeed, corrupted. Sorry, I checked, I do not have the original file anymore on my HD...
sanji
Moderator: Integra Moderator
<?php/*************************************************************************** * blocks_imp_recents_topic.php * ------------------- * begin : Saturday, March 20, 2004 * copyright : (C) 2004 masterdavid - Ronald John David * website : [url=http://www.integramod.com]http://www.integramod.com[/url] * email : <a>webmaster@integramod.com</a> * * note: removing the original copyright is illegal even you have modified * the code. Just append yours if you have modified it. ***************************************************************************/ /*************************************************************************** * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * ***************************************************************************/ if ( !defined('IN_PHPBB') ){ die("Hacking attempt");} if(!function_exists(imp_recent_topics_Revie_block_func)){ function imp_recent_topics_Revie_block_func() { global $template, $portal_config, $userdata, $board_config, $db, $phpEx, $var_cache, $lang; $forum_data = array(); if($portal_config['cache_enabled']) { $forum_data = $var_cache->get('forum', 90000, 'forum'); } if(!$forum_data) { $sql = "SELECT * FROM ". FORUMS_TABLE . " ORDER BY forum_id"; if (!$result1 = $db->sql_query($sql)) { message_die(GENERAL_ERROR, 'Could not query forums information', '', __LINE__, __FILE__, $sql); } while( $row1 = $db->sql_fetchrow($result1) ) { $forum_data[] = $row1; } if($portal_config['cache_enabled']) { $var_cache->save($forum_data, 'forum', 'forum'); } } $is_auth_ary = array(); $is_auth_ary = auth(AUTH_ALL, AUTH_LIST_ALL, $userdata, $forum_data); if( $portal_config['md_except_forum_id_Revie'] == '' ) { $except_forum_id = ''start''; } else { $except_forum_id = $portal_config['md_except_forum_id_Revie']; } for ($i = 0; $i <count>sql_query($sql)) { message_die(GENERAL_ERROR, 'Could not query recent topics information', '', __LINE__, __FILE__, $sql); } $number_recent_topics_Revie = $db->sql_numrows($result1); $recent_topic_Revie_row = array(); while ($row1 = $db->sql_fetchrow($result1)) { $recent_topic_Revie_row[] = $row1; } if($portal_config['md_recent_topics_Revie_style']){ $style_row = 'scroll_Revie'; }else { $style_row = 'static_Revie'; } $template->assign_block_vars($style_row,""); for ($i = 0; $i <number_recent_topics_Revie>assign_block_vars($style_row . '.recent_topic_Revie_row', array( 'U_TITLE' => append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $recent_topic_Revie_row[$i]['post_id']) . '#' .$recent_topic_Revie_row[$i]['post_id'], 'L_TITLE' => smilies_pass($recent_topic_Revie_row[$i]['topic_title']), 'L_BY' => $lang['By'], 'U_POSTER' => append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $recent_topic_Revie_row[$i]['user_id']), 'S_POSTER' => $recent_topic_Revie_row[$i]['username'], 'S_POSTTIME' => create_date($board_config['default_dateformat'], $recent_topic_Revie_row[$i]['post_time'], $board_config['board_timezone']) ) ); } else { $template->assign_block_vars($style_row . '.recent_topic_Revie_row', array( 'U_TITLE' => append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $recent_topic_Revie_row[$i]['post_id']) . '#' .$recent_topic_Revie_row[$i]['post_id'], 'L_TITLE' => smilies_pass($recent_topic_Revie_row[$i]['topic_title']), 'L_BY' => $lang['By'], 'U_POSTER' => append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $recent_topic_Revie_row[$i]['user_id']), 'S_POSTER' => $recent_topic_Revie_row[$i]['post_username'], 'S_POSTTIME' => create_date($board_config['default_dateformat'], $recent_topic_Revie_row[$i]['post_time'], $board_config['board_timezone']) ) ); } } }} imp_recent_topics_Revie_block_func();?>
Ah, ok. Try chaging those line to..."tekguru";p="22223" wrote:Teelk that just reverses the list based on the daet of the last posted topic, we're loocking to base the date on the original seed message of the topic so that we get the most recently posted review first.
We're not interested in the date based on subsequent posts replying to the original review.
Registered users: Unspecified Bot