Update auf 1.0.6 - portal.php

Aktuelle Version: 1.0.6
Veröffentlicht: 01.09.10
Forum rules
Vor dem erstellen neuer Supportanfragen bitte zuerst in die board3 Portal FAQ schauen und die Suche benutzen!
Viele Fragen sind bereits schon gestellt und beantwortet worden.
Bitte auch unsere Forumsregeln lesen und beachten!
Locked

Topic author
Morgos
Active Member
Posts: 5
Joined: 12. August 2010 11:10
phpBB.de User: Morgos
phpBB.com User: Morgos

Update auf 1.0.6 - portal.php

Post by Morgos »

Deine Portal Version: 1.0.6
Typ Deines phpBB Forums: Standard phpBB3
MODs installiert: Nein
Dein Wissensstand: Grundwissen

Was hast Du gemacht, bevor das Problem aufgetreten ist?


Was hast Du bereits versucht um das Problem zu lösen?


Fehlerbeschreibung und Nachricht
Hallo zusammen :D

ich mache gerade das Update auf 1.0.6
Ich hab alle Dateien hochgeladen, fast alles editiert und dann die install.php ausgeführt. Soweit läuft alles und das Update war eigentlich erfolgreich ABER:

Ich hab die Anweisung die portal.php zu bearbeiten nicht gemacht, weil bei meiner portal.php der Text nicht vollständig ist den ich ersetzen soll:



Hier die Anweisung:
Open: portal.php
Find
Tip: This may be a partial find and not the whole line.

Code: Select all

// show login box and user menu
	// only registered user see user menu
	if ($user->data['is_registered'])
	{
		include($phpbb_root_path . 'portal/block/user_menu.' . $phpEx);
	}
	else
	{
		include($phpbb_root_path . 'portal/block/login_box.' . $phpEx);
	}
	
	if ($portal_config['portal_user_menu'])
	{
		$template->assign_var('S_DISPLAY_USERMENU', true);
	}

Replace with
Tip: Replace the preceding line(s) to find with the following lines.

Code: Select all

if ($portal_config['portal_user_menu'])
	{
		// show login box and user menu
		// only registered user see user menu
		if ($user->data['is_registered'])
		{
			include($phpbb_root_path . 'portal/block/user_menu.' . $phpEx);
		}
		else
		{
			include($phpbb_root_path . 'portal/block/login_box.' . $phpEx);
		}
		$template->assign_var('S_DISPLAY_USERMENU', true);
		
		if($config['allow_topic_notify'] || $config['allow_forum_notify'])
		{
			$template->assign_var('S_DISPLAY_SUBSCRIPTIONS', true);
		}
	}

Und das hier ist meine portal.php:

Code: Select all

<?php

/**
*
* @package - Board3portal
* @version $Id: portal.php 591 2009-12-11 23:48:49Z marc1706 $
* @copyright (c) kevin / saint ( www.board3.de/ ), (c) Ice, (c) nickvergessen ( www.flying-bits.org/ ), (c) redbull254 ( www.digitalfotografie-foren.de ), (c) Christian_N ( www.phpbb-projekt.de )
* @based on: phpBB3 Portal by Sevdin Filiz, www.phpbb3portal.com
* @license http://opensource.org/licenses/gpl-license.php GNU Public License 
*
*/

define('IN_PHPBB', true);
define('IN_PORTAL', true);

$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';

$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
include($phpbb_root_path . 'includes/functions_display.' . $phpEx);
include($phpbb_root_path . 'includes/message_parser.' . $phpEx);
include($phpbb_root_path . 'portal/includes/functions.' . $phpEx);

$portal_config = obtain_portal_config();

// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup('mods/lang_portal');

if (!$portal_config['portal_enable'])
{
	redirect(reapply_sid($phpbb_root_path . 'index.' . $phpEx));
}

$load_center = true;

// Always load center column html-file in portal
$template->assign_var('S_CENTER_COLUMN', true);

if (file_exists($phpbb_root_path . 'install/index.' . $phpEx) && ($user->data['user_type'] == USER_FOUNDER))
{
	$template->assign_var('S_DISPLAY_GENERAL', true);
	$load_center = false;
}

if ($portal_config['portal_phpbb_menu'])
{
	$template->assign_var('S_DISPLAY_PHPBB_MENU', true);
}

if ($portal_config['version_check_time'] + 86400 < time())
{
	// Scare the user of outdated versions
	if (!function_exists('mod_version_check'))
	{
		$phpbb_admin_path = $phpbb_root_path . 'adm/';
		include($phpbb_root_path . 'portal/includes/functions_version_check.' . $phpEx);
	}
	set_portal_config('version_check_time', time());
	set_portal_config('version_check_version', mod_version_check(true));
}

if ($auth->acl_get('a_') && version_compare($portal_config['portal_version'], $portal_config['version_check_version'], '<') && $portal_config['portal_version_check'])
{
	$user->add_lang('mods/lang_portal_acp');
	$template->assign_vars(array(
		'PORTAL_VERSION_CHECK'			=> sprintf($user->lang['NOT_UP_TO_DATE'], $user->lang['PORTAL']),
	));
}

if ($load_center)
{
	if ($portal_config['portal_forum_index'])
	{
		display_forums('', $config['load_moderators'], false);

		$template->assign_vars(array(
			'FORUM_IMG'						=> $user->img('forum_read', 'NO_NEW_POSTS'),
			'FORUM_NEW_IMG'					=> $user->img('forum_unread', 'NEW_POSTS'),
			'FORUM_LOCKED_IMG'				=> $user->img('forum_read_locked', 'NO_NEW_POSTS_LOCKED'),
			'FORUM_NEW_LOCKED_IMG'			=> $user->img('forum_unread_locked', 'NO_NEW_POSTS_LOCKED'),
			'S_DISPLAY_PORTAL_FORUM_INDEX'	=> true,
			'U_MARK_FORUMS'					=> ($user->data['is_registered'] || $config['load_anon_lastread']) ? append_sid("{$phpbb_root_path}index.$phpEx", 'hash=' . generate_link_hash('global') . '&mark=forums') : '',
			'U_MCP'							=> ($auth->acl_get('m_') || $auth->acl_getf_global('m_')) ? append_sid("{$phpbb_root_path}mcp.$phpEx", 'i=main&mode=front', true, $user->session_id) : '',
		));
	}

	if ($portal_config['portal_recent'])
	{
		include($phpbb_root_path . 'portal/block/recent.' . $phpEx);
	}

	if ($portal_config['portal_wordgraph'])
	{
		include($phpbb_root_path . 'portal/block/wordgraph.' . $phpEx);
	}

	if ($portal_config['portal_poll_topic'])
	{
		include($phpbb_root_path . 'portal/block/poll.' . $phpEx);
	}

	if ($portal_config['portal_welcome'])
	{
		include($phpbb_root_path . 'portal/block/welcome.' . $phpEx);
	}

	if ($portal_config['portal_welcome_guest'])
	{
		$template->assign_var('S_DISPLAY_WELCOME_GUEST', true);
	}

	if ($portal_config['portal_announcements'])
	{
		include($phpbb_root_path . 'portal/block/announcements.' . $phpEx);
		$template->assign_var('S_ANNOUNCE_COMPACT', $portal_config['portal_announcements_style']);
	}

	if ($portal_config['portal_news'])
	{
		include($phpbb_root_path . 'portal/block/news.' . $phpEx);
		$template->assign_var('S_NEWS_COMPACT', $portal_config['portal_news_style']);
	}

	if ($portal_config['portal_custom_center'] || $portal_config['portal_custom_small'])
	{
		include($phpbb_root_path . 'portal/block/custom.' . $phpEx);
	}

	if ($portal_config['portal_pay_s_block'] || ($portal_config['portal_pay_c_block']))
	{
		include($phpbb_root_path . 'portal/block/donate.' . $phpEx);
	}

	if ($config['load_online'] && $config['load_online_time'] && $portal_config['portal_whois_online'])
	{
		include($phpbb_root_path . 'portal/block/whois_online.' . $phpEx);
	}
}

// load blocks in the left column
if($portal_config['portal_left_column'])
{
	$template->assign_var('S_LEFT_COLUMN', true);
	
	// show login box and user menu
	// only registered user see user menu
	if ($user->data['is_registered'])
	{
		include($phpbb_root_path . 'portal/block/user_menu.' . $phpEx);
	}
	else
	{
		include($phpbb_root_path . 'portal/block/login_box.' . $phpEx);
	}
		
	if ($portal_config['portal_main_menu'])
	{
		include($phpbb_root_path . 'portal/block/main_menu.' . $phpEx);
	}
	
	if ($portal_config['portal_search'])
	{
		include($phpbb_root_path . 'portal/block/search.' . $phpEx);
	}
	
	if ($portal_config['portal_birthdays'])
	{
		include($phpbb_root_path . 'portal/block/birthday_list.' . $phpEx);
	}

	if ($portal_config['portal_attachments'] && $config['allow_attachments'])
	{
		include($phpbb_root_path . 'portal/block/attachments.' . $phpEx);
	}
	
	if ($portal_config['portal_top_posters'])
	{
		include($phpbb_root_path . 'portal/block/top_posters.' . $phpEx);
	}

	if ($portal_config['portal_latest_members'])
	{
		include($phpbb_root_path . 'portal/block/latest_members.' . $phpEx);
	}

	if ($portal_config['portal_random_member'])
	{
		include($phpbb_root_path . 'portal/block/random_member.' . $phpEx);
	}
	
	if ($portal_config['portal_link_us'])
	{
		include($phpbb_root_path . 'portal/block/link_us.' . $phpEx);
	}
	
	if ($portal_config['portal_change_style'])
	{
		include($phpbb_root_path . 'portal/block/change_style.' . $phpEx);
	}

	if ($portal_config['portal_clock'])
	{
		$template->assign_var('S_DISPLAY_CLOCK', true);
	}
}

// load blocks in the right column
if($portal_config['portal_right_column'])
{
	$template->assign_var('S_RIGHT_COLUMN', true);

		
	if ($portal_config['portal_user_menu'])
	{
		$template->assign_var('S_DISPLAY_USERMENU', true);
	}
	
	if ($portal_config['portal_advanced_stat'])
	{
		include($phpbb_root_path . 'portal/block/statistics.' . $phpEx);
	}

	if ($portal_config['portal_minicalendar'])
	{
		include($phpbb_root_path . 'portal/block/mini_cal.' . $phpEx);
	}

	if ($portal_config['portal_leaders'] && $portal_config['portal_leaders_ext'])
	{
		include($phpbb_root_path . 'portal/block/leaders_ext.' . $phpEx);
	}
	elseif ($portal_config['portal_leaders'])
	{
		include($phpbb_root_path . 'portal/block/leaders.' . $phpEx);
	}
	
	if ($portal_config['portal_load_last_visited_bots'])
	{
		include($phpbb_root_path . 'portal/block/latest_bots.' . $phpEx);
	}
	
	if ($portal_config['portal_friends'])
	{
		include($phpbb_root_path . 'portal/block/friends.' . $phpEx);
	}
	
	if ($portal_config['portal_links'])
	{
		include($phpbb_root_path . 'portal/block/links.' . $phpEx);
	}
}

include($phpbb_root_path . 'portal/block/additional_blocks.' . $phpEx);

$template->assign_vars(array(
	'PORTAL_LEFT_COLUMN'	=> $portal_config['portal_left_column_width'],
	'PORTAL_RIGHT_COLUMN'	=> $portal_config['portal_right_column_width'],
));

// output page
page_header($user->lang['PORTAL']);

$template->set_filenames(array(
	'body' => '/portal/portal_body.html'
));

make_jumpbox(append_sid("{$phpbb_root_path}viewforum.$phpEx"));

page_footer();

?>

Kann mir jemand helfen? :)[/i]
User avatar

Marc
Dev
Posts: 2504
Joined: 17. July 2008 21:08
phpBB.de User: marc1706
phpBB.com User: Marc
Location: Clausthal-Zellerfeld / München
Contact:

Re: Update auf 1.0.6 - portal.php

Post by Marc »

Kann es sein, dass du dein Benutzermenü verschoben hast? Wenn ja, dann hast du das nicht korrekt gemacht. Du hättest den ganzen Teil den du auch suchen sollst verschieben müssen.
Den Teil findest du in der linken Spalte:

Code: Select all

// show login box and user menu
   // only registered user see user menu
   if ($user->data['is_registered'])
   {
      include($phpbb_root_path . 'portal/block/user_menu.' . $phpEx);
   }
   else
   {
      include($phpbb_root_path . 'portal/block/login_box.' . $phpEx);
   }
Und das hier in der rechten:

Code: Select all

   if ($portal_config['portal_user_menu'])
   {
      $template->assign_var('S_DISPLAY_USERMENU', true);
   }

Topic author
Morgos
Active Member
Posts: 5
Joined: 12. August 2010 11:10
phpBB.de User: Morgos
phpBB.com User: Morgos

Re: Update auf 1.0.6 - portal.php

Post by Morgos »

Merci
Locked

Return to “board3 Portal 1.0.x - Deutscher Support”