1 頁 (共 1 頁)

[問題]竹貓的首頁...

發表於 : 2005-02-22 17:07
Man520
白X~~ ;-)
圖檔
外掛是 :?:

發表於 : 2005-02-22 17:08
aHfUi
adv_top5

發表於 : 2005-02-22 17:11
Man520
adv_top5
可否貼上連結? :-P

發表於 : 2005-02-22 17:11
小竹子
白X→是說我白目嗎? T_T

發表於 : 2005-02-22 17:17
aHfUi

發表於 : 2005-02-22 17:34
eduyian
小竹子 寫:白X→是說我白目嗎? T_T
諒他也不敢,除非~他不想混了!! :lol: :lol:

發表於 : 2005-02-22 17:37
aHfUi
哈哈哈哈
不要那樣嚇人 @@

發表於 : 2005-02-22 17:38
小竹子
可是我本來就很白目 XD

發表於 : 2005-02-23 14:57
Man520
它說我在line 428 發生錯誤

代碼: 選擇全部

Parse error: parse error in /home/ipscbb/index.php on line 428
我公佈一下我在line 424-430

代碼: 選擇全部

	$template->assign_vars(array(
		'TOTAL_POSTS' => sprintf($l_total_post_s, $total_posts),
		'TOTAL_USERS' => sprintf($l_total_user_s, $total_users),
		'NEWEST_USER' => sprintf($lang['Newest_user'], '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$newest_uid") . '">',
		'icon_url' => $images['icon_latest_reply'], // TOP5 
        'icon_alt' => $lang['View_latest_post'], // TOP5 
        'L_AUTHOR' => $lang['Author'], // TOP5 $newest_user, '</a>'), 
請問有錯嗎? :-o

發表於 : 2005-02-23 15:24
~倉木麻衣~
Man520 寫:它說我在line 428 發生錯誤

代碼: 選擇全部

Parse error: parse error in /home/ipscbb/index.php on line 428
我公佈一下我在line 424-430

代碼: 選擇全部

	$template->assign_vars(array(
		'TOTAL_POSTS' => sprintf($l_total_post_s, $total_posts),
		'TOTAL_USERS' => sprintf($l_total_user_s, $total_users),
		'NEWEST_USER' => sprintf($lang['Newest_user'], '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$newest_uid") . '">',
		'icon_url' => $images['icon_latest_reply'], // TOP5 
        'icon_alt' => $lang['View_latest_post'], // TOP5 
        'L_AUTHOR' => $lang['Author'], // TOP5 $newest_user, '</a>'), 
請問有錯嗎? :-o
Man520 寫:它說我在line 428 發生錯誤

代碼: 選擇全部

Parse error: parse error in /home/ipscbb/index.php on line 428
我公佈一下我在line 424-430

代碼: 選擇全部

	$template->assign_vars(array(
		'TOTAL_POSTS' => sprintf($l_total_post_s, $total_posts),
		'TOTAL_USERS' => sprintf($l_total_user_s, $total_users),
		'NEWEST_USER' => sprintf($lang['Newest_user'], '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$newest_uid") . '">',
		'icon_url' => $images['icon_latest_reply'], // TOP5 
        'icon_alt' => $lang['View_latest_post'], // TOP5 
        'L_AUTHOR' => $lang['Author'], // TOP5 $newest_user, '</a>'), 
請問有錯嗎? :-o
有....
光看這句也會覺得奇怪\r

代碼: 選擇全部

        'L_AUTHOR' => $lang['Author'], // TOP5 [color=blue]$newest_user, '</a>'[/color]), 
再來就是$lang['Newest_user']這部份~
在lang_main.php裡~它的內容是\r

代碼: 選擇全部

$lang['Newest_user'] = '最新註冊的會員: <b>[color=orange]%s%s%s[/color]</b>';
也就是說~它需要傳三個參數進去才行

反觀您提供的資料~僅傳了第一個參數(底下紅色部份)~而少了剩下的二個

代碼: 選擇全部

      'NEWEST_USER' => sprintf($lang['Newest_user'], [color=red]'<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$newest_uid") . '">'[/color], 
所以結論是~你改錯了~正確的應該是\r

代碼: 選擇全部

      'NEWEST_USER' => sprintf($lang['Newest_user'], '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$newest_uid") . '">',[color=violet] $newest_user, '</a>'), [/color]
      'icon_url' => $images['icon_latest_reply'], // TOP5 
        'icon_alt' => $lang['View_latest_post'], // TOP5 
[color=violet]        'L_AUTHOR' => $lang['Author'], // TOP5 [/color]

發表於 : 2005-02-23 17:01
Man520
~倉木麻衣~ 寫:
Man520 寫:它說我在line 428 發生錯誤

代碼: 選擇全部

Parse error: parse error in /home/ipscbb/index.php on line 428
我公佈一下我在line 424-430

代碼: 選擇全部

	$template->assign_vars(array(
		'TOTAL_POSTS' => sprintf($l_total_post_s, $total_posts),
		'TOTAL_USERS' => sprintf($l_total_user_s, $total_users),
		'NEWEST_USER' => sprintf($lang['Newest_user'], '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$newest_uid") . '">',
		'icon_url' => $images['icon_latest_reply'], // TOP5 
        'icon_alt' => $lang['View_latest_post'], // TOP5 
        'L_AUTHOR' => $lang['Author'], // TOP5 $newest_user, '</a>'), 
請問有錯嗎? :-o
Man520 寫:它說我在line 428 發生錯誤

代碼: 選擇全部

Parse error: parse error in /home/ipscbb/index.php on line 428
我公佈一下我在line 424-430

代碼: 選擇全部

	$template->assign_vars(array(
		'TOTAL_POSTS' => sprintf($l_total_post_s, $total_posts),
		'TOTAL_USERS' => sprintf($l_total_user_s, $total_users),
		'NEWEST_USER' => sprintf($lang['Newest_user'], '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$newest_uid") . '">',
		'icon_url' => $images['icon_latest_reply'], // TOP5 
        'icon_alt' => $lang['View_latest_post'], // TOP5 
        'L_AUTHOR' => $lang['Author'], // TOP5 $newest_user, '</a>'), 
請問有錯嗎? :-o
有....
光看這句也會覺得奇怪\r

代碼: 選擇全部

        'L_AUTHOR' => $lang['Author'], // TOP5 [color=blue]$newest_user, '</a>'[/color]), 
再來就是$lang['Newest_user']這部份~
在lang_main.php裡~它的內容是\r

代碼: 選擇全部

$lang['Newest_user'] = '最新註冊的會員: <b>[color=orange]%s%s%s[/color]</b>';
也就是說~它需要傳三個參數進去才行

反觀您提供的資料~僅傳了第一個參數(底下紅色部份)~而少了剩下的二個

代碼: 選擇全部

      'NEWEST_USER' => sprintf($lang['Newest_user'], [color=red]'<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$newest_uid") . '">'[/color], 
所以結論是~你改錯了~正確的應該是\r

代碼: 選擇全部

      'NEWEST_USER' => sprintf($lang['Newest_user'], '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$newest_uid") . '">',[color=violet] $newest_user, '</a>'), [/color]
      'icon_url' => $images['icon_latest_reply'], // TOP5 
        'icon_alt' => $lang['View_latest_post'], // TOP5 
[color=violet]        'L_AUTHOR' => $lang['Author'], // TOP5 [/color]
:mrgreen: 感謝這位大大的詳細解釋^^
小弟立刻去試試