Slashdot News Block (IM Portal)

Your phpBB Version: 2.0.
phpBB Type: phpBB / IMPortal
MODs: Yes
Your knowledge: Advanced Knowledge
Board URL: http://www.nirvana.cl
PHP Version:
MySQL Version:
What was done before the problem appeared?
What was done to try to solve the problem?
De.scription and Message
Hi
I have Slashdot News Block (IM Portal) installed.
But i want only ONE new in the Im portal, and ten in news_index.php
I Put 10 in the ACP, but in the portal appear 10.
How i can set only one new ??
This is my phpbb_root/blocks/blocks_imp_news.php
Thanks for you help <img>
P.D: Sorry for my bad english
phpBB Type: phpBB / IMPortal
MODs: Yes
Your knowledge: Advanced Knowledge
Board URL: http://www.nirvana.cl
PHP Version:
MySQL Version:
What was done before the problem appeared?
What was done to try to solve the problem?
De.scription and Message
Hi
I have Slashdot News Block (IM Portal) installed.
But i want only ONE new in the Im portal, and ten in news_index.php
I Put 10 in the ACP, but in the portal appear 10.
How i can set only one new ??
This is my phpbb_root/blocks/blocks_imp_news.php
- Code: Select all
<?php/*************************************************************************** * blocks_imp_news.php * ------------------- * begin ]http://phpbbintegramod.sourceforge.net[/url] * email : <a>masterdavid@users.sourceforge.net</a> * ***************************************************************************/ /*************************************************************************** * * 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_news_block_func)){ function imp_news_block_func() { global $phpbb_root_path, $phpEx, $lang, $_GET; include_once ($phpbb_root_path . 'includes/news.' . $phpEx ); $content =& new NewsModule( $phpbb_root_path ); $content->setVariables( array( 'L_INDEX' => $lang['Index'], 'L_CATEGORIES' => $lang['Categories'], 'L_ARCHIVES' => $lang['Archives'] ) ); if( (isset( $_GET['news'] ) && $_GET['news'] == 'categories') ) { // View the news categories. $content->setVariables( array( 'TITLE' => $lang['News'] . ' ' . $lang['Categories'] ) ); $content->renderTopics( ); } elseif( isset( $_GET['news'] ) && $_GET['news'] == 'archives' ) { // View the news Archives. $year = (isset( $_GET['year'] )) ? $_GET['year'] : 0; $month = (isset( $_GET['month'] )) ? $_GET['month'] : 0; $day = (isset( $_GET['day'] )) ? $_GET['day'] : 0; $key = (isset( $_GET['key'] )) ? $_GET['key'] : ''; $content->setVariables( array( 'TITLE' => $lang['News'] . ' ' . $lang['Archives'] ) ); $content->renderArchives( $year, $month, $day, $key ); } else { // View news articles. $topic_id = 0; if( isset( $_GET['topic_id'] ) ) { $topic_id = $_GET['topic_id']; } elseif( isset( $_GET['news_id'] ) ) { $topic_id = $_GET['news_id']; } $content->setVariables( array( 'TITLE' => $lang['News'] . ' ' . $lang['Articles'] ) ); $content->renderArticles( $topic_id ); } $content->renderPagination( ); }} imp_news_block_func();?>
Thanks for you help <img>
P.D: Sorry for my bad english