Sub Menu
Links Menu
Online Users

In total there are 851 users online :: 4 registered, 0 hidden and 847 guests

Most users ever online was 1091 on Wed Aug 16, 2023 5:27 pm

Registered users: Bing [Bot], Google [Bot], Helter, Majestic-12 [Bot] based on users active over the past 60 minutes

need help about IM portal

Support for the IM Portal Project

Moderator: Integra Moderator

need help about IM portal

PostAuthor: panjabiz » Wed Apr 26, 2006 12:22 pm

hallo

i have installed IM portal with my forum.

on portal page at news blocks it shows the topics of first category from my forum.


how can i show instead 1st category the second category from my forum at news block

please help
Last edited by panjabiz on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

panjabiz
Newbie
Newbie
 
Posts: 3
Likes: 0 post
Liked in: 0 post
Joined: Wed Apr 26, 2006 12:18 pm
Cash on hand: 0.00

PostAuthor: Michaelo » Wed Apr 26, 2006 2:18 pm

Give link so we can see what you mean...
Last edited by Michaelo on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
Kiss Portal Engine phpbbireland (status: Released)
User avatar
Michaelo
Administrator
Administrator
 
Posts: 1646
Likes: 0 post
Liked in: 0 post
Joined: Sat Mar 11, 2006 5:14 pm
Cash on hand: 0.00
Location: Dublin, Ireland

Re: need help about IM portal

PostAuthor: panjabiz » Thu Apr 27, 2006 1:42 am

this is content of portal.php

instead of default news category i want to change other category of my forum
Code: Select all
 <?php/**************************************************************************** portal.php* -------------------* begin ]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.****************************************************************************///// Set up for phpBB integration.//define('IN_PHPBB', true);$phpbb_root_path = './';  //// phpBB related files//include_once( $phpbb_root_path . 'extension.inc' );include_once( $phpbb_root_path . 'common.' . $phpEx );  //// Start session management//$userdata = session_pagestart( $user_ip, PAGE_INDEX );init_userprefs( $userdata );  define('PORTAL_INIT', TRUE);include($phpbb_root_path . 'includes/functions_portal.' . $phpEx);portal_config_init($portal_config);include_once($phpbb_root_path . 'includes/lite.'.$phpEx);$options = array('cacheDir' => $phpbb_root_path . 'var_cache/','fileLocking' => $portal_config['md_cache_file_locking'],'writeControl' => $portal_config['md_cache_write_control'],'readControl' => $portal_config['md_cache_read_control'],'readControlType' => $portal_config['md_cache_read_type'],'fileNameProtection' => $portal_config['md_cache_filename_protect'],'automaticSerialization' => $portal_config['md_cache_serialize']);$var_cache = new Cache_Lite($options);  if(isset($HTTP_GET_VARS['page'])){$layout = intval($HTTP_GET_VARS['page']);}else{$layout = $portal_config['default_portal'];}  if($portal_config['cache_enabled'])$layout_row=$var_cache->get('lr' . strval($layout), 86400, 'layout');if(!$layout_row){$sql = "SELECT template, forum_wide, view, groups FROM " . LAYOUT_TABLE . " WHERE lid = '" . $layout . "'";if( !($layout_result = $db->sql_query($sql)) ){message_die(CRITICAL_ERROR, "Could not query portal layout information", "", __LINE__, __FILE__, $sql);}$layout_row = $db->sql_fetchrow($layout_result);if(($layout_row['template']!='')&&$portal_config['cache_enabled'])$var_cache->save($layout_row, 'lr' . strval($layout), 'layout');}$layout_template = $layout_row['template'];$layout_forum_wide_flag = ($layout_row['forum_wide']) ? FALSE : TRUE;  if ($userdata['user_id'] == ANONYMOUS){$lview = in_array($layout_row['view'], array(0,1));}else{switch($userdata['user_level']){case USER:$lview = in_array($layout_row['view'], array(0,2));break;case MOD:$lview = in_array($layout_row['view'], array(0,2,3));break;case ADMIN:$lview = in_array($layout_row['view'], array(0,1,2,3,4));break;default:$lview = in_array($layout_row['view'], array(0));}}  $not_group_allowed = FALSE;if(!empty($layout_row['groups'])){$not_group_allowed = TRUE;$group_content = explode(",",$layout_row['groups']);for ($i = 0; $i <count>get('lr' . strval($layout), 86400, 'layout');if(!$layout_row){$sql = "SELECT template, forum_wide FROM " . LAYOUT_TABLE . " WHERE lid = '" . $layout . "'";if( !($layout_result = $db->sql_query($sql)) ){message_die(CRITICAL_ERROR, "Could not query portal layout information", "", __LINE__, __FILE__, $sql);}$layout_row = $db->sql_fetchrow($layout_result);if($portal_config['cache_enabled'])$var_cache->save($layout_row, 'lr' . strval($layout), 'layout');}$layout_template = $layout_row['template'];$layout_forum_wide_flag = ($layout_row['forum_wide']) ? FALSE : TRUE;}  //// Start output of page//$page_title = $lang['Home'];define('SHOW_ONLINE', true);include($phpbb_root_path . 'includes/page_header.'.$phpEx);  // Tell the template class which template to use.$template->set_filenames( array( 'body' => 'layout/' . $layout_template ) );  //// Start Blocks//portal_parse_blocks($layout);  $template->pparse('body');  include($phpbb_root_path . 'includes/page_tail.'.$phpEx);?>  
Last edited by panjabiz on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

panjabiz
Newbie
Newbie
 
Posts: 3
Likes: 0 post
Liked in: 0 post
Joined: Wed Apr 26, 2006 12:18 pm
Cash on hand: 0.00

Re: need help about IM portal

PostAuthor: panjabiz » Fri Apr 28, 2006 3:28 am

can someone help me
Last edited by panjabiz on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

panjabiz
Newbie
Newbie
 
Posts: 3
Likes: 0 post
Liked in: 0 post
Joined: Wed Apr 26, 2006 12:18 pm
Cash on hand: 0.00


Return to IM Portal Support Forum

Who is online

Registered users: Bing [Bot], Google [Bot], Helter, Majestic-12 [Bot]

cron