[外掛] 收錄文章的問題

phpBB 2 Style Support
討論的範圍包含版面排列、樣式、配置;外掛問題,請到相關版面依發問格式發表!
(發表文章請按照公告格式發表,違者砍文)

版主: 版主管理群

主題已鎖定
bc010843
竹貓忠實會員
竹貓忠實會員
文章: 333
註冊時間: 2004-10-13 18:33
聯繫:

[外掛] 收錄文章的問題

文章 bc010843 »

外掛連結

phpbb 2.0.18
os linux
快速程式 無\r
風格 icg

問題:
收錄文章的的icon連結跑到網頁的左上角了,請問可以改到個人資料旁嗎?
圖檔

我的overall_header.tpl

代碼: 選擇全部

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="{S_CONTENT_DIRECTION}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={S_CONTENT_ENCODING}">
<meta http-equiv="Content-Style-Type" content="text/css">
{META}
{NAV_LINKS}
<title>{SITENAME} :: {PAGE_TITLE}</title>
<link rel="stylesheet" href="templates/iCGstation/{T_HEAD_STYLESHEET}" type="text/css" -->
<script language="JavaScript" src="ch.js"></script>

<!-- BEGIN switch_enable_pm_popup -->
<script language="Javascript" type="text/javascript"> 
<!-- 
   var new_pm_flag = {PRIVATE_MESSAGE_NEW_FLAG}; 
   var w = 400; 
   var h = 225; 
   var left = (screen.width - w) / 2; 
   var top = (screen.height - h) / 2; 
   var props = 'height='+h+',width='+w+',top='+top+',left='+left+',resizable=yes'; 

   if( new_pm_flag ) 
   { 
      win = window.open('{U_PRIVATEMSGS_POPUP}', '_phpbbprivmsg', props);; 
                win.window.focus(); 
   } 
//--> 
</script>
<!-- END switch_enable_pm_popup -->

</head>
<body background=http://www.fountain-pen-zone.com/photos/BG12-06.jpg style="background-attachment:fixed">

<a name="top"></a>
<table width="92%" cellpadding="0" cellspacing="0" border="0" align="center">
  <tr> 
	<td width="5" nowrap="nowrap" class="lefttd"></td>
	<td width="94%">
		<table width="100%" cellpadding="0" cellspacing="1" border="0" class="forumline">
			<tr> 
<!-- BEGIN switch_user_logged_in -->
&nbsp;<a href="{U_BOOK}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_groups.gif" width="12" height="13" border="0" alt="{L_BOOK}" hspace="3" />{L_BOOK}</a>&nbsp;
<!-- END switch_user_logged_in -->
				<!-- BEGIN switch_user_logged_out -->
				<td class="row2" width="100%" align="center">
				<form method="post" action="{S_LOGIN_ACTION}">
				<img src="templates/iCGstation/images/login_logo.gif" border="0" alt="{L_LOGIN}" align="absmiddle" /><img src="templates/iCGstation/images/username.gif" border="0" alt="{L_USERNAME}" align="absmiddle" /><input type="text" name="username" size="10" /><img src="templates/iCGstation/images/password.gif" border="0" alt="{L_PASSWORD}" align="absmiddle" /><input type="password" name="password" size="10" maxlength="32" /><br />{L_AUTO_LOGIN} <input class="text" type="checkbox" name="autologin" checked/>&nbsp;&nbsp;&nbsp;<input type="hidden" name="submit" value="{L_LOGIN}"><input type="hidden" name="login" value="{L_LOGIN}"><input type="submit" name="login" value="{L_LOGIN}"/></td>
				</form></td>
				<td class="row2" width="150" nowrap="nowrap" align="center"><img src="templates/iCGstation/images/icon/icon_register.gif" border="0" alt="{L_REGISTER}" align="absmiddle" /><br /><a href="{U_REGISTER}" class="mainmenu">{L_REGISTER}</a></td>
				<!-- END switch_user_logged_out -->
				<!-- BEGIN switch_user_logged_in -->
				<td class="row2" width="20%" align="center"><img src="templates/iCGstation/images/icon/icon_faq.gif" border="0" alt="{L_FAQ}" align="absmiddle" /><br /><a href="{U_FAQ}" class="mainmenu">{L_FAQ}</a></td>
				<td class="row2" width="20%" align="center"><img src="templates/iCGstation/images/icon/icon_search.gif" border="0" alt="{L_SEARCH}" align="absmiddle" /><br /><a href="{U_SEARCH}" class="mainmenu">{L_SEARCH}</a></td>
				<td class="row2" width="20%" align="center"><img src="templates/iCGstation/images/icon/icon_memberlist.gif" border="0" alt="{L_MEMBERLIST}" align="absmiddle" /><br /><a href="{U_MEMBERLIST}" class="mainmenu">{L_MEMBERLIST}</a></td>
				<td class="row2" width="20%" align="center"><img src="templates/iCGstation/images/icon/icon_group.gif" border="0" alt="{L_USERGROUPS}" align="absmiddle" /><br /><a href="{U_GROUP_CP}" class="mainmenu">{L_USERGROUPS}</a></td>
				<td class="row2" width="20%" align="center"><img src="templates/iCGstation/images/icon/icon_profile.gif" border="0" alt="{L_PROFILE}" align="absmiddle" /><br /><a href="{U_PROFILE}" class="mainmenu">{L_PROFILE}</a></td>
				<td class="row2" width="150" nowrap="nowrap" align="center"><img src="templates/iCGstation/images/icon/icon_login.gif" border="0" alt="{L_LOGIN_LOGOUT}" align="absmiddle" /><br /><a href="{U_LOGIN_LOGOUT}" class="mainmenu">{L_LOGIN_LOGOUT}</a></td>
				<!-- END switch_user_logged_in -->
				<td class="row2" width="150" nowrap="nowrap" align="center"><img src="templates/iCGstation/images/icon/icon_pm.gif" border="0" alt="{PRIVATE_MESSAGE_INFO}" align="absmiddle" /><br /><a href="{U_PRIVATEMSGS}" class="mainmenu">{PRIVATE_MESSAGE_INFO}</a></td>
			</tr>
		</table>
		<table width="100%" cellspacing="0" cellpadding="0" border="0">
			<tr> 
				<td width="100%" valign="middle" align="center"><a href="{U_INDEX}"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="930" height="100"> 
<param name="movie" value="templates/iCGstation/images/banner.swf"> 
<param name="quality" value="high"> 
<embed src="templates/iCGstation/images/banner.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="251" height="148"></embed></object></a></td>
			</tr>
			<tr> 
				<td width="100%" class="navpic">&nbsp;&nbsp;<span class="maintitle">{SITENAME}</span><span class="maintitle">&nbsp;-&nbsp;{SITE_DESCRIPTION}</span></td>
			</tr>
		</table>
		<table width="100%" cellspacing="10" cellpadding="0" border="0">
			<tr>
				<td align="center" width="100%" valign="middle">
---------------------------------------------------------------------------

viewtopic_body.tpl

代碼: 選擇全部

<table border="0" cellpadding="0" cellspacing="0" class="tbn">
<tr>
<td class="tbnl" rowspan="3"><img src="images/spacer.gif" alt="" width="76" height="39" /></td>
<td height="17"></td>
<td height="17"></td>
</tr>
<td class="tbnbot"><span class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a></span>  &raquo; {FORUM_PATH}</span></td>
<td class="tbnr"><img src="images/spacer.gif" alt="" width="39" height="22" /></td>
</tr>
</table>
<br />
<table width="100%" cellspacing="2" cellpadding="2" border="0">
  <tr> 
	<td align="left" valign="bottom" nowrap="nowrap"><span class="nav"><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" align="middle" /></a>&nbsp;&nbsp;&nbsp;<a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" border="0" alt="{L_POST_REPLY_TOPIC}" align="middle" /></a></span></td>
  </tr>
</table>

<table border="0" cellpadding="0" cellspacing="0" class="tbt"><tr><td class="tbtl"><img src="images/spacer.gif" alt="" width="22" height="22" /></td><td class="tbtbot"><a class="maintitle" href="{U_VIEW_TOPIC}">{TOPIC_TITLE}</a> {PAGINATION}<img src="images/spacer.gif" alt="" width="8" height="22" align="absmiddle" /></td><td class="tbtr"><img src="images/spacer.gif" alt="" width="124" height="22" /></td></tr></table>
<table class="forumline" width="100%" cellspacing="1" cellpadding="0" border="0">
	<tr align="right">
		<td class="cat" colspan="2" height="28<span class="nav"><a href="{U_VIEW_OLDER_TOPIC}" class="nav">{L_VIEW_PREVIOUS_TOPIC}</a> :: <a href="{U_VIEW_NEWER_TOPIC}" class="nav">{L_VIEW_NEXT_TOPIC}"><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td align="left" width="50%"><span class="nav">&nbsp;{U_BOOKMARK}</span></td><td align="right"><span class="nav"></a> &nbsp;</span></td></tr></table></td>
	</tr>
	{POLL_DISPLAY} 
	<tr>
		<th class="thLeft" width="150" height="26" nowrap="nowrap">{L_AUTHOR}</th>
		<th class="thRight" nowrap="nowrap">{L_MESSAGE}</th>
	</tr>
	<!-- BEGIN postrow -->
	<tr> 
		<td width="150" align="left" valign="top" class="{postrow.ROW_CLASS}"><span style="<span class="name"><a name="{postrow.U_POST_ID}"></a><b>{postrow.POSTER_NAME}</b></span><br /><span class="postdetails">{postrow.POSTER_RANK}<br />{postrow.RANK_IMAGE}{postrow.POSTER_AVATAR}<fieldset><legend>小檔案&nbsp;</legend><table width="100%" cellpadding="0" cellspacing="0" border="0"><br /><br />{postrow.POSTER_JOINED}<br />{postrow.POSTER_POSTS}<br />{postrow.POST_DAY_STATS}<br /><br />{postrow.CASH}{postrow.POSTER_FROM}</table></fieldset></span><br /></td>
		<td class="{postrow.ROW_CLASS}" width="100%" height="28" valign="top"><table height="100%" width="100%" border="0" cellspacing="1" cellpadding="0">
			<tr>
				<td width="100%"><a href="{postrow.U_MINI_POST}"><img src="{postrow.MINI_POST_IMG}" alt="{postrow.L_MINI_POST_ALT}" title="{postrow.L_MINI_POST_ALT}" border="0" /></a><span class="postdetails">{L_POSTED}: {postrow.POST_DATE}<span class="gen">&nbsp;</span>&nbsp; &nbsp;{L_POST_SUBJECT}: {postrow.POST_SUBJECT}</span></td>
				<td valign="top" nowrap="nowrap">{postrow.QUOTE_IMG} {postrow.EDIT_IMG} {postrow.DELETE_IMG} {postrow.IP_IMG}{postrow.TOPIC_VIEW_IMG}</td>
			</tr>
			<tr> 
				<td colspan="2"><hr /></td>
			</tr>
 <tr> 
                        <td colspan="2"><div style="float:right"><a href="{postrow.U_MINI_POST}"><img src="{postrow.MINI_POST_IMG}" alt="{postrow.L_MINI_POST_ALT}" title="{postrow.L_MINI_POST_ALT}" border="0" />{postrow.POST_NUMBER}</a></div></td> 
                    </tr> 
			<tr>
				<td colspan="2"height="100%" valign="top"><span class="postbody">{postrow.MESSAGE}<br /><br /><br /><br /><br /><br /><span class="gensmall">☆本文內容為 <font color="blue">{postrow.POSTER_NAME}</font> 和 <font color="red">{SITENAME}</font> 所有,未經許可不得轉載☆</span></span></td>
<!-- Start add - Bottom aligned signature MOD --> 
</tr> 
<tr> 
<td colspan="2"><SPAN CLASS="postbody">{postrow.SIGNATURE}</SPAN><SPAN CLASS="gensmall">{postrow.EDITED_MESSAGE}</SPAN></td> 
<!-- End add - Bottom aligned signature MOD --> 
			</tr>
		</table></td>
	</tr>
	<tr> 
		<td class="{postrow.ROW_CLASS}" width="150" align="left" valign="middle"><span class="nav"><a href="#top" class="nav">{L_BACK_TO_TOP}</a></span></td>
		<td class="{postrow.ROW_CLASS}" width="100%" height="28" valign="bottom" nowrap="nowrap"><table cellspacing="1" cellpadding="0" border="0" height="18" width="18">
			<tr> 
				<td valign="middle" nowrap="nowrap">{postrow.PROFILE_IMG} {postrow.PM_IMG} {postrow.EMAIL_IMG} {postrow.WWW_IMG} {postrow.AIM_IMG} {postrow.YIM_IMG} {postrow.MSN_IMG} {postrow.ICQ_IMG}</td>
\n			</tr>
		</table></td>
	</tr>
	<!-- END postrow -->
<tr align="center"> 
		<td class="row1" colspan="2" >
		{QUICKREPLY_OUTPUT}
		</td>
	</tr>
	<tr align="center"> 
		<td class="cat" colspan="2" height="28"><table cellspacing="1" cellpadding="0" border="0">
			<tr><form method="post" action="{S_POST_DAYS_ACTION}">
				<td align="center"><span class="gensmall">{L_DISPLAY_POSTS}: {S_SELECT_POST_DAYS}&nbsp;{S_SELECT_POST_ORDER}&nbsp;<input type="submit" value="{L_GO}" class="liteoption" name="submit" /></span></td>
			</form></tr>
		</table></td>
	</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" class="tbl"><tr><td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td><td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td><td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td></tr></table>

<table width="100%" cellspacing="2" cellpadding="2" border="0" align="center">
  <tr> 
	<td align="left" valign="middle" nowrap="nowrap"><span class="nav"><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" align="middle" /></a>&nbsp;&nbsp;&nbsp;<a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" border="0" alt="{L_POST_REPLY_TOPIC}" align="middle" /></a></span></td>
	<td align="left" valign="middle" width="100%"><span class="nav">&nbsp;&nbsp;&nbsp;<a href="{U_INDEX}" class="nav">{L_INDEX}</a> 
	  &raquo; <a href="{U_VIEW_FORUM}" class="nav">{FORUM_NAME}</a></span></td>
	<td align="right" valign="top" nowrap="nowrap"><span class="gensmall">{S_TIMEZONE}</span><br /><span class="nav">{PAGINATION}</span> 
	  </td>
  </tr>
  <tr>
	<td align="left" colspan="3"><span class="nav">{PAGE_NUMBER}</span></td>
  </tr>
</table>

<table width="100%" cellspacing="2" border="0" align="center">
  <tr> 
	<td width="40%" valign="top" nowrap="nowrap" align="left"><span class="gensmall">{S_WATCH_TOPIC}</span><br />
	  &nbsp;<br />
	  {S_TOPIC_ADMIN}</td>
	<td align="right" valign="top" nowrap="nowrap">{JUMPBOX}<span class="gensmall">{S_AUTH_LIST}</span></td>
  </tr>
</table>
PHPBB:2.0.20
OS:LINUX
風格: ICG
快速程式:無
上網方式:Hinet 8m/640
架設環境:竹貓空間
吉川拓也
竹貓忠實會員
竹貓忠實會員
文章: 1215
註冊時間: 2003-02-09 18:24
來自: [ G.I.T ]
聯繫:

文章 吉川拓也 »

該安裝文件應該有寫唷 :lol:

代碼: 選擇全部

#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/viewtopic_body.tpl
#
#-----[ FIND ]------------------------------------------
#
	<tr align="right">
		<td class="catHead" colspan="2" height="28"><span class="nav"><a href="{U_VIEW_OLDER_TOPIC}" class="nav">{L_VIEW_PREVIOUS_TOPIC}</a> :: <a href="{U_VIEW_NEWER_TOPIC}" class="nav">{L_VIEW_NEXT_TOPIC}</a> &nbsp;</span></td>
	</tr>
#
#-----[ IN-LINE FIND ]------------------------------------------
#
<span class="nav">
#
#-----[ IN-LINE BEFORE, ADD ]------------------------------------------
#
<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td align="left" width="50%"><span class="nav">&nbsp;{U_BOOKMARK}</span></td><td align="right"><span class="nav">
#
#-----[ IN-LINE FIND ]------------------------------------------
#
{L_VIEW_NEXT_TOPIC}</a> &nbsp;</span></td>
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
</tr></table></td>
#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php
#
#-----[ FIND ]------------------------------------------
#
	'U_POST_REPLY_TOPIC' => $reply_topic_url)
);
#
#-----[ AFTER, ADD ]------------------------------------------
# 
// Bookmarks MOD, 1.0.1
// Check to see if the topic has already been bookmarked


if ($userdata['session_logged_in']) {
	
	$sql = "SELECT *
		FROM " . BOOKMARKS_TABLE . "
		WHERE user_id = '" . $userdata['user_id'] . "' AND topic_id = '" . intval($topic_id) ."'";

	$result = $db->sql_query($sql);

	$num_row = $db->sql_numrows($result);
	
	if (intval($num_row) == 0) {
		$template->assign_vars(array(
			'U_BOOKMARK' => "<a class=\"nav\" href=\"". append_sid("bookmarks.$phpEx?t=" . $topic_id . "&mode=add" . "\">" . $lang['add_book'] . "</a>")) 
		);
	}
	else {
		$template->assign_vars(array(
			'U_BOOKMARK' => "<a class=\"nav\" href=\"". append_sid("bookmarks.$phpEx?t=" . $topic_id . "&mode=remove" . "\">" . $lang['remove_book'] . "</a>")) 
		);
	}

}
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
善用 搜尋 可以解決您 90% 的問題
頭腦清晰,選擇正確。 (╯▔︹▔)╯~╘═╛
bc010843
竹貓忠實會員
竹貓忠實會員
文章: 333
註冊時間: 2004-10-13 18:33
聯繫:

文章 bc010843 »

吉大~~小弟是照著文件改的呀,可是一直找不到問題所在 :cry:

請指點一下

感謝
PHPBB:2.0.20
OS:LINUX
風格: ICG
快速程式:無
上網方式:Hinet 8m/640
架設環境:竹貓空間
吉川拓也
竹貓忠實會員
竹貓忠實會員
文章: 1215
註冊時間: 2003-02-09 18:24
來自: [ G.I.T ]
聯繫:

文章 吉川拓也 »

bc010843 寫:吉大~~小弟是照著文件改的呀,可是一直找不到問題所在 :cry:

請指點一下

感謝
如果你是要改在 viewtopic.php 頁面 !
#
#--- [ 找到 ] ---
#

代碼: 選擇全部

<td valign="middle" nowrap="nowrap">{postrow.PROFILE_IMG}
#
#--- [ 之後加入 ] ---
#

代碼: 選擇全部

<!-- BEGIN switch_user_logged_in -->
&nbsp;<a href="{U_BOOK}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_groups.gif" width="12" height="13" border="0" alt="{L_BOOK}" hspace="3" />{L_BOOK}</a>&nbsp;
<!-- END switch_user_logged_in -->
#
#--- [ 儲存關閉 ] ---
# eom

如果不是這樣請詳述一下 ;-)
善用 搜尋 可以解決您 90% 的問題
頭腦清晰,選擇正確。 (╯▔︹▔)╯~╘═╛
bc010843
竹貓忠實會員
竹貓忠實會員
文章: 333
註冊時間: 2004-10-13 18:33
聯繫:

文章 bc010843 »

吉大\r

在首面的地方有搜尋 常見問題 個人資料 登出...等等
我想把書籤改在個人資料旁

不知這樣描述是否清楚...

謝謝
PHPBB:2.0.20
OS:LINUX
風格: ICG
快速程式:無
上網方式:Hinet 8m/640
架設環境:竹貓空間
吉川拓也
竹貓忠實會員
竹貓忠實會員
文章: 1215
註冊時間: 2003-02-09 18:24
來自: [ G.I.T ]
聯繫:

文章 吉川拓也 »

可能會有點擠喔 ..
#
#--- [ 找到 ] ---
#

代碼: 選擇全部

            <td class="row2" width="10%" align="center"><img src="templates/iCGstation/images/icon/icon_profile.gif" border="0" alt="{L_PROFILE}" align="absmiddle" /><br /><a href="{U_PROFILE}" class="mainmenu">{L_PROFILE}</a></td>


#
#--- [ 之後加入 ] ---
#

代碼: 選擇全部

            <td class="row2" width="10%" align="center"><!-- BEGIN switch_user_logged_in --> 
            <a href="{U_BOOK}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_groups.gif" border="0" alt="{L_BOOK}" hspace="3" /></a><br><a href="{U_BOOK}" class="mainmenu">{L_BOOK}</a>&nbsp; 
            <!-- END switch_user_logged_in --></td>


#
#--- [ 儲存關閉 ] ---
# eom
善用 搜尋 可以解決您 90% 的問題
頭腦清晰,選擇正確。 (╯▔︹▔)╯~╘═╛
主題已鎖定

回到「風格問題討論」