phpBB 2 MOD Support
無論是官方或非官方認證之外掛,安裝與使用問題討論。
(發表文章請按照公告格式發表,違者砍文)
版主: 版主管理群
-
kk1010qq
- 星球普通子民

- 文章: 14
- 註冊時間: 2004-11-02 18:18
文章
由 kk1010qq »
因為我的風格不是預設的subSilver而是iCGstation所以改overall_header.tpl我不是照他的方式改的。現在的問題是overall_header.tpl上面的表格亂掉了~
他原本要改的overall_header.tpl
尋找\r
代碼: 選擇全部
{L_USERGROUPS}</a>
之後加上
代碼: 選擇全部
<a href="{U_MEDALS}" class="mainmenu">{I_MEDALS}{L_MEDALS}</a>
我有試過他原本的方式,是不會照成版面混亂沒錯但是因為我不是使用預設的風格所以以他的方式來修改的話版面並不美觀。
我改的overall_header.tpl
我直接在上方的表格插入欄
然後在攔當中打入:
代碼: 選擇全部
<img src="templates/iCGstation/images/icon_mini_medal.gif" border="0" alt="{L_SEARCH}" align="absmiddle" /><br>
<a href="{U_MEDALS}" class="mainmenu">{L_MEDALS}</a>
而且奇怪的事是在未登入時會:

登入之後不會:

[/code]
-
吉川拓也
- 竹貓忠實會員

- 文章: 1215
- 註冊時間: 2003-02-09 18:24
- 來自: [ G.I.T ]
-
聯繫:
文章
由 吉川拓也 »
儲存格多加一個即可 !
列如原本是 8 就改成 9 ..
善用
搜尋 可以解決您 90% 的問題
頭腦清晰,選擇正確。 (╯▔︹▔)╯~╘═╛
-
心靈捕手
- 默默耕耘的老師

- 文章: 8538
- 註冊時間: 2004-04-30 01:54
- 來自: Taiwan
文章
由 心靈捕手 »
kk1010qq 寫:請問要再哪個檔案改?
建議您貼出\r
overall_hearde.tpl
假如您在修改上有困難的話.

-
kk1010qq
- 星球普通子民

- 文章: 14
- 註冊時間: 2004-11-02 18:18
文章
由 kk1010qq »
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" -->
<!-- BEGIN switch_enable_pm_popup -->
<script language="Javascript" type="text/javascript">
<!--
if ( {PRIVATE_MESSAGE_NEW_FLAG} )
{
window.open('{U_PRIVATEMSGS_POPUP}', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');;
}
//-->
</script>
<!-- END switch_enable_pm_popup -->
<script language="Javascript" type="text/javascript">
<!--
function img_popup(image_url, image_width, image_height, popup_rand)
{
screenwidth = false;
screenwidth = screen.Width;
if ( !screenwidth )
{
screenwidth = window.outerWidth;
}
screenheight = false;
screenheight = screen.Height;
if ( !screenheight )
{
screenheight = window.outerHeight;
}
if ( screenwidth < image_width || screenheight < image_height || image_width == null || image_height == null )
{
window.open(image_url, 'limit_image_mod_popup_img_' + popup_rand, 'resizable=yes,top=0,left=0,screenX=0,screenY=0,scrollbars=yes', false);
}
else
{
window.open(image_url, 'limit_image_mod_popup_img_' + popup_rand, 'resizable=yes,top=0,left=0,screenX=0,screenY=0,height=' + image_height + ',width=' + image_width, false);
}
}
//-->
</script>
</head>
<body>
<a name="top"></a>
<table width="760" cellpadding="0" cellspacing="0" border="0" align="center">
<tr>
<td width="10" nowrap="nowrap" class="lefttd"></td>
<td width="740">
<table width="100%" cellpadding="0" cellspacing="1" border="0" class="forumline">
<tr>
<!-- 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" /> <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>
<tr><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="10%" 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 width="10%" align="center" valign="top" class="row2"><img src="templates/iCGstation/images/icon_mini_medal.gif" border="0" alt="{L_SEARCH}" align="absmiddle" /><br>
<a href="{U_MEDALS}" class="mainmenu">{L_MEDALS}</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"><a href="{U_INDEX}"><img src="templates/iCGstation/images/banner.jpg" border="0" /></a></td>
</tr>
<tr>
<td width="100%" class="navpic"> <span class="maintitle">{SITENAME}</span><span class="maintitle"> - {SITE_DESCRIPTION}</span></td>
</tr>
</table>
<table width="100%" cellspacing="10" cellpadding="0" border="0">
<tr>
<td align="center" width="100%" valign="middle">
-
心靈捕手
- 默默耕耘的老師

- 文章: 8538
- 註冊時間: 2004-04-30 01:54
- 來自: Taiwan
文章
由 心靈捕手 »
kk1010qq 寫: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" -->
<!-- BEGIN switch_enable_pm_popup -->
<script language="Javascript" type="text/javascript">
<!--
if ( {PRIVATE_MESSAGE_NEW_FLAG} )
{
window.open('{U_PRIVATEMSGS_POPUP}', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');;
}
//-->
</script>
<!-- END switch_enable_pm_popup -->
<script language="Javascript" type="text/javascript">
<!--
function img_popup(image_url, image_width, image_height, popup_rand)
{
screenwidth = false;
screenwidth = screen.Width;
if ( !screenwidth )
{
screenwidth = window.outerWidth;
}
screenheight = false;
screenheight = screen.Height;
if ( !screenheight )
{
screenheight = window.outerHeight;
}
if ( screenwidth < image_width || screenheight < image_height || image_width == null || image_height == null )
{
window.open(image_url, 'limit_image_mod_popup_img_' + popup_rand, 'resizable=yes,top=0,left=0,screenX=0,screenY=0,scrollbars=yes', false);
}
else
{
window.open(image_url, 'limit_image_mod_popup_img_' + popup_rand, 'resizable=yes,top=0,left=0,screenX=0,screenY=0,height=' + image_height + ',width=' + image_width, false);
}
}
//-->
</script>
</head>
<body>
<a name="top"></a>
<table width="760" cellpadding="0" cellspacing="0" border="0" align="center">
<tr>
<td width="10" nowrap="nowrap" class="lefttd"></td>
<td width="740">
<table width="100%" cellpadding="0" cellspacing="1" border="0" class="forumline">
<tr>
<!-- 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" /> <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>
<tr><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="10%" 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 width="10%" align="center" valign="top" class="row2"><img src="templates/iCGstation/images/icon_mini_medal.gif" border="0" alt="{L_SEARCH}" align="absmiddle" /><br>
<a href="{U_MEDALS}" class="mainmenu">{L_MEDALS}</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"><a href="{U_INDEX}"><img src="templates/iCGstation/images/banner.jpg" border="0" /></a></td>
</tr>
<tr>
<td width="100%" class="navpic"> <span class="maintitle">{SITENAME}</span><span class="maintitle"> - {SITE_DESCRIPTION}</span></td>
</tr>
</table>
<table width="100%" cellspacing="10" cellpadding="0" border="0">
<tr>
<td align="center" width="100%" valign="middle">
不知道您原先是不是故意將大部分的選項,
如: 常見問題, 搜尋, 會員列表, 個人資料...等,
設定為
登入後才能看見.
一般而言, 除了"登出"的選項之外,
都不會將這些選項做這樣的設定.
以下的修正, 提供您參考:
代碼: 選擇全部
-----[FIND]---------
<table width="100%" cellpadding="0" cellspacing="1" border="0" class="forumline">
<tr>
<!-- 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" /> <input type="hidden" name="submit" value="{L_LOGIN}"><input type="hidden" name="login" value="{L_LOGIN}"><input type="submit" name="login" value="{L_LOGIN}"/>
</form></td></tr>
<!-- END switch_user_logged_out -->
<tr>
<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="10%" 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 width="10%" align="center" valign="top" class="row2"><img src="templates/iCGstation/images/icon_mini_medal.gif" border="0" alt="{L_SEARCH}" align="absmiddle" /><br>
\n <a href="{U_MEDALS}" class="mainmenu">{L_MEDALS}</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>
<!-- BEGIN switch_user_logged_out -->
<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="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>
-----[REPLACE]----------
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" id="table1">
<!-- BEGIN switch_user_logged_out -->
<tr>
<td class="row2" width="100%" align="center" colspan="9"><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" /> <input type="hidden" name="submit" value="{L_LOGIN}"><input type="hidden" name="login" value="{L_LOGIN}"><input type="submit" name="login" value="{L_LOGIN}"/>
</form></td>
</tr>
<!-- END switch_user_logged_out -->
<tr>
<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="10%" 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 width="10%" align="center" valign="top" class="row2"><img src="templates/iCGstation/images/icon_mini_medal.gif" border="0" alt="{L_SEARCH}" align="absmiddle" /><br>
<a href="{U_MEDALS}" class="mainmenu">{L_MEDALS}</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>
<!-- BEGIN switch_user_logged_out -->
<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="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>
ps. 建議您再做以下的修正:
1. 調整各個欄位的寬度, 避免超過 100%;
2. 勳章圖示的說明, 可以更改如下:
代碼: 選擇全部
-----[FIND]----------
<img src="templates/iCGstation/images/icon_mini_medal.gif" border="0" alt="{L_SEARCH}" align="absmiddle" />
-----[REPLACE]----------
<img src="templates/iCGstation/images/icon_mini_medal.gif" border="0" alt="{L_MEDALS}" align="absmiddle" />