Slashdot News Block (IM Portal)

Support for the IM Portal Project

Moderator: Integra Moderator

Slashdot News Block (IM Portal)

PostAuthor: GaDo » Sun Feb 18, 2007 9:51 pm

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

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
Last edited by GaDo on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

GaDo
Newbie
Newbie
 
Posts: 3
Likes: 0 post
Liked in: 0 post
Joined: Tue Jan 23, 2007 6:50 pm
Cash on hand: 0.00

Return to IM Portal Support Forum

Who is online

Registered users: Majestic-12 [Bot]