[問題]版面發生問題..求助~(解決)

phpBB 2 MOD Support
無論是官方或非官方認證之外掛,安裝與使用問題討論。
(發表文章請按照公告格式發表,違者砍文)

版主: 版主管理群

主題已鎖定
夜楓
星球公民
星球公民
文章: 131
註冊時間: 2003-05-16 21:19

[問題]版面發生問題..求助~(解決)

文章 夜楓 »

我如果去註冊的話...點系統相簿時..上方會出現\r

Warning: Missing argument 31 for display_avatar_gallery() in c:\appserv\www\includes\usercp_avatar.php on line 245

Warning: Missing argument 32 for display_avatar_gallery() in c:\appserv\www\includes\usercp_avatar.php on line 245

Warning: Missing argument 33 for display_avatar_gallery() in c:\appserv\www\includes\usercp_avatar.php on line 245

Warning: Missing argument 34 for display_avatar_gallery() in c:\appserv\www\includes\usercp_avatar.php on line 245


請問一下哪裡出問題了~?幫我看一下~~多謝

紅色那段是第245行

代碼: 選擇全部

		$l_avatar_size = sprintf($lang['Avatar_imagesize'], $board_config['avatar_max_width'], $board_config['avatar_max_height']);

		$error = true;
		$error_msg = ( !empty($error_msg) ) ? $error_msg . '<br />' . $l_avatar_size : $l_avatar_size;
	}

	return $avatar_sql;
}

[color=red]function display_avatar_gallery($mode, &$category, &$user_id, &$email, &$current_email, &$coppa, &$username, &$email, &$new_password, &$cur_password, &$password_confirm, &$icq, &$aim, &$msn, &$yim, &$website, &$location, &$occupation, &$interests, &$signature, &$viewemail, &$notifypm, &$popup_pm, &$notifyreply, &$attachsig, &$allowhtml, &$allowbbcode, &$allowsmilies, &$hideonline, &$style, &$language, &$timezone, &$dateformat, &$session_id)[/color]
{
	global $board_config, $db, $template, $lang, $images, $theme;
	global $phpbb_root_path, $phpEx;

	$dir = @opendir($board_config['avatar_gallery_path']);



還有一個問題
我在"會員管理"管理選項時..查詢會員的時候...上面會出現\r

Warning: opendir(../../language): failed to open dir: Invalid argument in c:\appserv\www\includes\functions_selects.php on line 31

Warning: readdir(): supplied argument is not a valid Directory resource in c:\appserv\www\includes\functions_selects.php on line 34

Warning: closedir(): supplied argument is not a valid Directory resource in c:\appserv\www\includes\functions_selects.php on line 45

藍色是第31行~還請多多幫忙~

代碼: 選擇全部


[color=blue]$dir = opendir($phpbb_root_path . $dirname);[/color]

	$lang = array();
	while ( $file = readdir($dir) )
	{
		if (preg_match('#^lang_#i', $file) && !is_file(@phpbb_realpath($phpbb_root_path . $dirname . '/' . $file)) && !is_link(@phpbb_realpath($phpbb_root_path . $dirname . '/' . $file)))
		{
			$filename = trim(str_replace("lang_", "", $file));
			$displayname = preg_replace("/^(.*?)_(.*)$/", "\\\1 [ \\\2 ]", $filename);
			$displayname = preg_replace("/\[(.*?)_(.*)\]/", "[ \\\1 - \\\2 ]", $displayname);
			$lang[$displayname] = $filename;
		}
	}

	closedir($dir);

最後由 夜楓 於 2004-10-17 15:31 編輯,總共編輯了 1 次。
aiken
竹貓忠實會員
竹貓忠實會員
文章: 1514
註冊時間: 2003-11-09 11:02
來自: 大頭真論壇
聯繫:

文章 aiken »

1.我猜是不是245行沒有";"做結尾\r
2."../../language"這個路徑確定是正確的嗎?
夜楓
星球公民
星球公民
文章: 131
註冊時間: 2003-05-16 21:19

文章 夜楓 »

aiken 寫:1.我猜是不是245行沒有";"做結尾\r
2."../../language"這個路徑確定是正確的嗎?
如果245行用";"作結尾的話\r
案系統相簿直接出現Parse error: parse error, unexpected ';', expecting '{' in c:\appserv\www\includes\usercp_avatar.php on line 245

連選頭像的畫面都沒有~
沒加的話還可以選\r

../../language"這個路徑確定是正確的嗎?

這句話有點看不懂?什麼意思阿??
主題已鎖定

回到「外掛問題討論」