1 頁 (共 1 頁)

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

發表於 : 2005-02-22 00:33
peter37
請問首頁發表人欄位,要讓日期在下,會員名稱在上
請問要如何修改?

圖檔

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

發表於 : 2005-02-22 17:28
心靈捕手
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;

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

發表於 : 2005-02-22 22:31
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>';

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

發表於 : 2005-02-22 22:47
心靈捕手
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;

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

發表於 : 2005-02-22 22:52
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
謝謝您伸出援手,銘記在心!
"心靈捕手" 謝了!

發表於 : 2005-12-02 11:15
dp0000
假如排列的方式我想改成::

代碼: 選擇全部

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

P.S::和這個主題很像的問題,所以就不再開新主題了!!!

發表於 : 2005-12-02 14:50
心靈捕手
dp0000 寫:假如排列的方式我想改成::

代碼: 選擇全部

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

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

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

建議您:
依發問格式, 在適當的版面, 發表新的主題, 比較妥當.