1 頁 (共 1 頁)

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

發表於 : 2004-10-15 00:08
夜楓
我如果去註冊的話...點系統相簿時..上方會出現\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-15 00:45
aiken
1.我猜是不是245行沒有";"做結尾\r
2."../../language"這個路徑確定是正確的嗎?

發表於 : 2004-10-15 06:37
夜楓
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"這個路徑確定是正確的嗎?

這句話有點看不懂?什麼意思阿??