[問題] 請問首頁發表人欄位.. (已解決)

phpBB Installation & Usage Support
phpBB 2 安裝於各類型作業平台之問題討論;外掛問題,請到相關版面依發問格式發表!
(發表文章請按照公告格式發表,違者砍文)

版主: 版主管理群

版面規則
本區是討論關於 phpBB 2.0.X 架設安裝上的問題,只要有安裝任何外掛,請到外掛討論相關版面按照公告格式發表。
(發表文章請按照公告格式發表,違者砍文)
主題已鎖定
peter37
星球公民
星球公民
文章: 99
註冊時間: 2004-12-31 16:35

[問題] 請問首頁發表人欄位.. (已解決)

文章 peter37 »

請問首頁發表人欄位,要讓日期在下,會員名稱在上
請問要如何修改?

圖檔
最後由 peter37 於 2005-02-23 19:23 編輯,總共編輯了 2 次。
頭像
心靈捕手
默默耕耘的老師
默默耕耘的老師
文章: 8547
註冊時間: 2004-04-30 01:54
來自: Taiwan

Re: [問題] 請問首頁發表人欄位..

文章 心靈捕手 »

peter37 寫:請問首頁發表人欄位,要讓日期在下,會員名稱在上
請問要如何修改?

圖檔
以下的修改提供您參考:

代碼: 選擇全部

-----[open]-----
index.php

-----[find]-----
							$last_post = $last_post_time . '<br />';

								$last_post .= ( $forum_data[$j]['user_id'] == ANONYMOUS ) ? ( ($forum_data[$j]['post_username'] != '' ) ? $forum_data[$j]['post_username'] . ' ' : $lang['Guest'] . ' ' ) : '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '='  . $forum_data[$j]['user_id']) . '">' . $forum_data[$j]['username'] . '</a> ';
								
								$last_post .= '<a href="' . append_sid("viewtopic.$phpEx?"  . POST_POST_URL . '=' . $forum_data[$j]['forum_last_post_id']) . '#' . $forum_data[$j]['forum_last_post_id'] . '"><img src="' . $images['icon_latest_reply'] . '" border="0" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" /></a>';

-----[replace]-----	
							$last_post = ( $forum_data[$j]['user_id'] == ANONYMOUS ) ? ( ($forum_data[$j]['post_username'] != '' ) ? $forum_data[$j]['post_username'] . ' ' : $lang['Guest'] . ' ' ) : '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '='  . $forum_data[$j]['user_id']) . '">' . $forum_data[$j]['username'] . '</a> ';
								
								$last_post .= '<a href="' . append_sid("viewtopic.$phpEx?"  . POST_POST_URL . '=' . $forum_data[$j]['forum_last_post_id']) . '#' . $forum_data[$j]['forum_last_post_id'] . '"><img src="' . $images['icon_latest_reply'] . '" border="0" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" /></a>' . '<br />';
								
								$last_post .= $last_post_time;
施比受有福,祝福您好運! ^_^
歡迎光臨★★心靈捕手★★ :: 討論區
https://wang5555.dnsfor.me/phpBB3/
peter37
星球公民
星球公民
文章: 99
註冊時間: 2004-12-31 16:35

Re: [問題] 請問首頁發表人欄位..

文章 peter37 »

心靈捕手 寫:
peter37 寫:請問首頁發表人欄位,要讓日期在下,會員名稱在上
請問要如何修改?

圖檔
以下的修改提供您參考:

代碼: 選擇全部

-----[open]-----
index.php

-----[find]-----
							$last_post = $last_post_time . '<br />';

								$last_post .= ( $forum_data[$j]['user_id'] == ANONYMOUS ) ? ( ($forum_data[$j]['post_username'] != '' ) ? $forum_data[$j]['post_username'] . ' ' : $lang['Guest'] . ' ' ) : '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '='  . $forum_data[$j]['user_id']) . '">' . $forum_data[$j]['username'] . '</a> ';
								
								$last_post .= '<a href="' . append_sid("viewtopic.$phpEx?"  . POST_POST_URL . '=' . $forum_data[$j]['forum_last_post_id']) . '#' . $forum_data[$j]['forum_last_post_id'] . '"><img src="' . $images['icon_latest_reply'] . '" border="0" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" /></a>';

-----[replace]-----	
							$last_post = ( $forum_data[$j]['user_id'] == ANONYMOUS ) ? ( ($forum_data[$j]['post_username'] != '' ) ? $forum_data[$j]['post_username'] . ' ' : $lang['Guest'] . ' ' ) : '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '='  . $forum_data[$j]['user_id']) . '">' . $forum_data[$j]['username'] . '</a> ';
								
								$last_post .= '<a href="' . append_sid("viewtopic.$phpEx?"  . POST_POST_URL . '=' . $forum_data[$j]['forum_last_post_id']) . '#' . $forum_data[$j]['forum_last_post_id'] . '"><img src="' . $images['icon_latest_reply'] . '" border="0" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" /></a>' . '<br />';
								
								$last_post .= $last_post_time;
謝謝 "心靈捕手" 再次指點,已照您所說的作修改,在沒裝任何外掛下是可以, :-D
但我裝了 COLOR GROUPS 1.2.0 的外掛,此部份的碼已被改過,(如下)
想再請教 "心靈捕手" 如下的部份.
我又應該如何修改為首頁發表人欄位,日期在下,會員名稱在上,
請再指點,先謝了... :oops:

代碼: 選擇全部

$last_post = $last_post_time . '<br />';

								$last_post .= ( $forum_data[$j]['user_id'] == ANONYMOUS ) ? ( ($forum_data[$j]['post_username'] != '' ) ? $forum_data[$j]['post_username'] . ' ' : $lang['Guest'] . ' ' ) : color_group_colorize_name($forum_data[$j]['user_id']);
								
								$last_post .= '<a href="' . append_sid("viewtopic.$phpEx?"  . POST_POST_URL . '=' . $forum_data[$j]['forum_last_post_id']) . '#' . $forum_data[$j]['forum_last_post_id'] . '"> <img src="' . $images['icon_latest_reply'] . '" border="0" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" /></a>';
頭像
心靈捕手
默默耕耘的老師
默默耕耘的老師
文章: 8547
註冊時間: 2004-04-30 01:54
來自: Taiwan

Re: [問題] 請問首頁發表人欄位..

文章 心靈捕手 »

peter37 寫:謝謝 "心靈捕手" 再次指點,已照您所說的作修改,在沒裝任何外掛下是可以, :-D
但我裝了 COLOR GROUPS 1.2.0 的外掛,此部份的碼已被改過,(如下)
想再請教 "心靈捕手" 如下的部份.
我又應該如何修改為首頁發表人欄位,日期在下,會員名稱在上,
請再指點,先謝了... :oops:

代碼: 選擇全部

$last_post = $last_post_time . '<br />';

								$last_post .= ( $forum_data[$j]['user_id'] == ANONYMOUS ) ? ( ($forum_data[$j]['post_username'] != '' ) ? $forum_data[$j]['post_username'] . ' ' : $lang['Guest'] . ' ' ) : color_group_colorize_name($forum_data[$j]['user_id']);
								
								$last_post .= '<a href="' . append_sid("viewtopic.$phpEx?"  . POST_POST_URL . '=' . $forum_data[$j]['forum_last_post_id']) . '#' . $forum_data[$j]['forum_last_post_id'] . '"> <img src="' . $images['icon_latest_reply'] . '" border="0" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" /></a>';
請試試: 將下列程式碼取代引言部份程式碼: :-)

代碼: 選擇全部

$last_post = ( $forum_data[$j]['user_id'] == ANONYMOUS ) ? ( ($forum_data[$j]['post_username'] != '' ) ? $forum_data[$j]['post_username'] . ' ' : $lang['Guest'] . ' ' ) : color_group_colorize_name($forum_data[$j]['user_id']);
								
$last_post .= '<a href="' . append_sid("viewtopic.$phpEx?"  . POST_POST_URL . '=' . $forum_data[$j]['forum_last_post_id']) . '#' . $forum_data[$j]['forum_last_post_id'] . '"> <img src="' . $images['icon_latest_reply'] . '" border="0" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" /></a>' . '<br />';

$last_post .= $last_post_time;
施比受有福,祝福您好運! ^_^
歡迎光臨★★心靈捕手★★ :: 討論區
https://wang5555.dnsfor.me/phpBB3/
peter37
星球公民
星球公民
文章: 99
註冊時間: 2004-12-31 16:35

Re: [問題] 請問首頁發表人欄位..

文章 peter37 »

心靈捕手 寫:
peter37 寫:謝謝 "心靈捕手" 再次指點,已照您所說的作修改,在沒裝任何外掛下是可以, :-D
但我裝了 COLOR GROUPS 1.2.0 的外掛,此部份的碼已被改過,(如下)
想再請教 "心靈捕手" 如下的部份.
我又應該如何修改為首頁發表人欄位,日期在下,會員名稱在上,
請再指點,先謝了... :oops:

代碼: 選擇全部

$last_post = $last_post_time . '<br />';

								$last_post .= ( $forum_data[$j]['user_id'] == ANONYMOUS ) ? ( ($forum_data[$j]['post_username'] != '' ) ? $forum_data[$j]['post_username'] . ' ' : $lang['Guest'] . ' ' ) : color_group_colorize_name($forum_data[$j]['user_id']);
								
								$last_post .= '<a href="' . append_sid("viewtopic.$phpEx?"  . POST_POST_URL . '=' . $forum_data[$j]['forum_last_post_id']) . '#' . $forum_data[$j]['forum_last_post_id'] . '"> <img src="' . $images['icon_latest_reply'] . '" border="0" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" /></a>';
請試試: 將下列程式碼取代引言部份程式碼: :-)

代碼: 選擇全部

$last_post = ( $forum_data[$j]['user_id'] == ANONYMOUS ) ? ( ($forum_data[$j]['post_username'] != '' ) ? $forum_data[$j]['post_username'] . ' ' : $lang['Guest'] . ' ' ) : color_group_colorize_name($forum_data[$j]['user_id']);
								
$last_post .= '<a href="' . append_sid("viewtopic.$phpEx?"  . POST_POST_URL . '=' . $forum_data[$j]['forum_last_post_id']) . '#' . $forum_data[$j]['forum_last_post_id'] . '"> <img src="' . $images['icon_latest_reply'] . '" border="0" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" /></a>' . '<br />';

$last_post .= $last_post_time;
OK 了! :-D
謝謝您伸出援手,銘記在心!
"心靈捕手" 謝了!
dp0000

文章 dp0000 »

假如排列的方式我想改成::

代碼: 選擇全部

發表人:
發表主題:
發表時間:
發表主題插入其中, 這樣的順序, 是不是有辦法改呢??? :roll:

P.S::和這個主題很像的問題,所以就不再開新主題了!!!
頭像
心靈捕手
默默耕耘的老師
默默耕耘的老師
文章: 8547
註冊時間: 2004-04-30 01:54
來自: Taiwan

文章 心靈捕手 »

dp0000 寫:假如排列的方式我想改成::

代碼: 選擇全部

發表人:
發表主題:
發表時間:
發表主題插入其中, 這樣的順序, 是不是有辦法改呢??? :roll:

P.S::和這個主題很像的問題,所以就不再開新主題了!!!
問題雖然很像, 但是不太一樣.

除非您安裝其他外掛,
否則在那個欄位, 怎麼會有" 發表主題" 呢? :-?

建議您:
依發問格式, 在適當的版面, 發表新的主題, 比較妥當.
施比受有福,祝福您好運! ^_^
歡迎光臨★★心靈捕手★★ :: 討論區
https://wang5555.dnsfor.me/phpBB3/
主題已鎖定

回到「phpBB 2 安裝與使用」