[問題][外掛]跑馬燈公告1.2版
版主: 版主管理群
請教大大!因為我有使用EXOBud播放器!所以有使用框架來分隔!
但是卻導致跑馬燈功能上的連結功能有問題!也就是說原本指在跑馬燈上會直接連結到該篇文章!卻無法連結,並且導致重覆讀取音樂播放器!
小弟是否可請教:如何移除跑馬燈功能中的URL功能呢?感激不盡!
小弟PO出小弟的index.htm給大大參考:
================================
規格如下:
但是卻導致跑馬燈功能上的連結功能有問題!也就是說原本指在跑馬燈上會直接連結到該篇文章!卻無法連結,並且導致重覆讀取音樂播放器!
小弟是否可請教:如何移除跑馬燈功能中的URL功能呢?感激不盡!
小弟PO出小弟的index.htm給大大參考:
代碼: 選擇全部
<HTML>
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=big5">
<TITLE>解悶論壇</TITLE>
</HEAD>
<frameset rows="*,25" framespacing="0" border="0" frameborder="0">
<frame name="content" src="http://203.217.121.11/phpbb/index.php" noresize>
<frame name="exobud_mp" src="http://203.217.121.11/phpbb/exobud_mp/exobud.htm"
scrolling="no" noresize>
</frameset>
<NOFRAMES>
<BODY>
<P>您的網頁不支援框架(給不支援框架的網友訊息,不過應該沒有了吧)</P>
</BODY>
</NOFRAMES>
</HTML>
規格如下:
- phpBB 2.0.13 by phpbb-tw
- MODS
- 虛擬形象\r
- 銀行外掛
- 性別外掛
- 跑馬燈外掛
- easy-mod
- O.S:Windows XP SP2 professional
- SQL:MySQL 版本 4.0.16-nt
- phpMyAdmin 2.5.4
不好意思!那我馬上補上ahdaa 寫:要看的檔案應該是在您風格目錄裡的index_body.tpl檔吧
代碼: 選擇全部
<script language="JavaScript" src="face_js.js"></script>
<table width="100%" cellspacing="0" cellpadding="2" border="0" align="center">
<tr>
<td align="left" valign="bottom"><span class="gensmall">
<!-- BEGIN switch_user_logged_in -->
{LAST_VISIT_DATE}<br />
<!-- END switch_user_logged_in -->
{CURRENT_TIME}<br /></span><span class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a></span><br><img src="images/announce.gif"><marquee scrollamount=3 scrolldelay=75 width="50%" onmouseover=this.stop(); onmouseout=this.start();>{ANNOUNCEMENT}</marquee></td>
<td align="right" valign="bottom" class="gensmall">
<!-- BEGIN switch_user_logged_in -->
<a href="{U_SEARCH_NEW}" class="gensmall">{L_SEARCH_NEW}</a><br /><a href="{U_SEARCH_SELF}" class="gensmall">{L_SEARCH_SELF}</a><br />
<!-- END switch_user_logged_in -->
<a href="{U_SEARCH_UNANSWERED}" class="gensmall">{L_SEARCH_UNANSWERED}</a></td>
</tr>
</table>
<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
<tr>
<th colspan="2" class="thCornerL" height="25" nowrap="nowrap"> {L_FORUM} </th>
<th width="50" class="thTop" nowrap="nowrap"> {L_TOPICS} </th>
<th width="50" class="thTop" nowrap="nowrap"> {L_POSTS} </th>
<th class="thCornerR" nowrap="nowrap"> {L_LASTPOST} </th>
</tr>
<!-- BEGIN catrow -->
<tr>
<td class="catLeft" colspan="2" height="28"><span class="cattitle"><a href="{catrow.U_VIEWCAT}" class="cattitle">{catrow.CAT_DESC}</a></span></td>
<td class="rowpic" colspan="3" align="right"> </td>
</tr>
<!-- BEGIN forumrow -->
<tr>
<td class="row1" align="center" valign="middle" height="50"><img src="{catrow.forumrow.FORUM_FOLDER_IMG}" width="46" height="25" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" /></td>
<td class="row1" width="100%" height="50"><span class="forumlink"> <a href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink">{catrow.forumrow.FORUM_NAME}</a><br />
</span> <span class="genmed">{catrow.forumrow.FORUM_DESC}<br />
</span><span class="gensmall">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}</span></td>
<td class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.TOPICS}</span></td>
<td class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.POSTS}</span></td>
<td class="row2" align="center" valign="middle" height="50" nowrap="nowrap"> <span class="gensmall">{catrow.forumrow.LAST_POST}</span></td>
</tr>
<!-- END forumrow -->
<!-- END catrow -->
</table>
<table width="100%" cellspacing="0" border="0" align="center" cellpadding="2">
<tr>
<td align="left"><span class="gensmall"><a href="{U_MARK_READ}" class="gensmall">{L_MARK_FORUMS_READ}</a></span></td>
<td align="right"><span class="gensmall">{S_TIMEZONE}</span></td>
</tr>
</table>
<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
<tr>
<td class="catHead" colspan="2" height="28"><span class="cattitle"><a href="{U_VIEWONLINE}" class="cattitle">{L_WHO_IS_ONLINE}</a></span></td>
</tr>
<tr>
<td class="row1" align="center" valign="middle" rowspan="2"><img src="templates/subSilver/images/whosonline.gif" alt="{L_WHO_IS_ONLINE}" /></td>
<td class="row1" align="left" width="100%"><span class="gensmall">{TOTAL_POSTS}<br />{TOTAL_USERS}<br />{NEWEST_USER}</span>
</td>
</tr>
<tr>
<td class="row1" align="left"><span class="gensmall">{TOTAL_USERS_ONLINE} [ {L_WHOSONLINE_ADMIN} ] [ {L_WHOSONLINE_MOD} ]<br />{RECORD_USERS}<br />{LOGGED_IN_USER_LIST}</span></td>
</tr>
</table>
<table width="100%" cellpadding="1" cellspacing="1" border="0">
<tr>
<td align="left" valign="top"><span class="gensmall">{L_ONLINE_EXPLAIN}</span></td>
</tr>
</table>
<!-- BEGIN switch_user_logged_out -->
<form method="post" action="{S_LOGIN_ACTION}">
<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
<tr>
<td class="catHead" height="28"><a name="login"></a><span class="cattitle">{L_LOGIN_LOGOUT}</span></td>
</tr>
<tr>
<td class="row1" align="center" valign="middle" height="28"><span class="gensmall">{L_USERNAME}:
<input class="post" type="text" name="username" size="10" />
{L_PASSWORD}:
<input class="post" type="password" name="password" size="10" maxlength="32" />
{L_AUTO_LOGIN}
<input class="text" type="checkbox" name="autologin" />
<input type="submit" class="mainoption" name="login" value="{L_LOGIN}" />
</span> </td>
</tr>
</table>
</form>
<!-- END switch_user_logged_out -->
<br clear="all" />
<table cellspacing="3" border="0" align="center" cellpadding="0">
<tr>
<td width="20" align="center"><img src="templates/subSilver/images/folder_new_big.gif" alt="{L_NEW_POSTS}"/></td>
<td><span class="gensmall">{L_NEW_POSTS}</span></td>
<td> </td>
<td width="20" align="center"><img src="templates/subSilver/images/folder_big.gif" alt="{L_NO_NEW_POSTS}" /></td>
<td><span class="gensmall">{L_NO_NEW_POSTS}</span></td>
<td> </td>
<td width="20" align="center"><img src="templates/subSilver/images/folder_locked_big.gif" alt="{L_FORUM_LOCKED}" /></td>
<td><span class="gensmall">{L_FORUM_LOCKED}</span></td>
</tr>
</table>
[問題] 跑馬燈外掛
我在這裡遇到問題......Martinet 寫:應該是下面這樣:
然後在 overall_header.tpl內喜歡的地方放置
<br><img src="images/announce.gif"><marquee scrollamount=3 scrolldelay=75 width="50%" onmouseover=this.stop(); onmouseout=this.start();>{ANNOUNCEMENT}</marquee>
就是怎麼放.. 都無法讓跑馬燈放在.. av8d 論壇連結 那一列中間...
請各位大大幫忙一下...
究竟要放在哪?
架設主機作業系統:Windows Server 2003
上網方式:LOCAL NET
安裝的程式:IIS6.0 + php5.1.4 + MySQL 5.0.22 + phpMyAdmin 2.8.1
版本:PHPBB 2.0.21
上網方式:LOCAL NET
安裝的程式:IIS6.0 + php5.1.4 + MySQL 5.0.22 + phpMyAdmin 2.8.1
版本:PHPBB 2.0.21
因為原始的每頁都顯示跑馬燈的修改
您最後訪問於 時間
現在的時間是 時間
的上面....
可是我比較喜歡他放在 xxxx 首頁以及 發表主題 下面
如圖一和圖二所示
圖一
圖二
且為了將原先的跑馬燈用了框框圍起來....
因此,我作了以下的修改....
首先,在安裝完主要的1.2版後
新增框框的部分....
在每頁都顯示如上的跑馬燈部分....
會將跑馬燈放在Source: http://phpbb-tw.net/phpbb/viewtopic.php?p=174054#174054
目的: 將跑馬燈公告放在每一頁
打開 includes/page_header.php
找到
//
// The following assigns all _common_ variables that may be used at any point
// in a template.
//
前面加上
// 跑馬燈公告 By Martinet Oaf~
$sql = "SELECT * FROM phpbb_announce ORDER BY a_order";
if(!$a_result = $db->sql_query($sql))
{
message_die(GENERAL_ERROR, "Could not query Announce information", "", __LINE__, __FILE__, $sql);
}
$i=0;
$marque = "";
while ($a_row = $db->sql_fetchrow($a_result))
{
$i++;
$a_name = $a_row['a_name'];
$a_url = $a_row['a_url'];
$marque .= "<span class=\"genmed\"><b><a href=\"$a_url\">[$i]$a_name</a></b> </span>";
}
if($i == 0)
$marque = "<span class=\"genmed\"><b>".$lang['Announce_no_announce']."</b></span>";
// 跑馬燈公告結束
找到
'PRIVATE_MESSAGE_NEW_FLAG' => $s_privmsg_new,
下面加上
'ANNOUNCEMENT'=>$marque,
然後在 overall_header.tpl內喜歡的地方放置
<br><img src="images/announce.gif"><marquee scrollamount=3 scrolldelay=75 width="50%" onmouseover=this.stop(); onmouseout=this.start();>{ANNOUNCEMENT}</marquee>
您最後訪問於 時間
現在的時間是 時間
的上面....
可是我比較喜歡他放在 xxxx 首頁以及 發表主題 下面
如圖一和圖二所示
圖一
圖二
且為了將原先的跑馬燈用了框框圍起來....
因此,我作了以下的修改....
首先,在安裝完主要的1.2版後
新增框框的部分....
目的: 將跑馬燈公告放置於框框中並置中
#
#-----[ Open ]-----
#
templates/subSilver/index_body.tpl
#
#-----[ Find ]-----
# ( 最上面的第一個 <table...>...</table>)
<table width="100%" cellspacing="0" cellpadding="2" border="0" align="center">
<tr>
<td align="left" valign="bottom"><span class="gensmall">
<!-- BEGIN switch_user_logged_in -->
{LAST_VISIT_DATE}<br />
<!-- END switch_user_logged_in -->
{CURRENT_TIME}<br /></span><span class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a></span></td>
<td align="right" valign="bottom" class="gensmall">
<!-- BEGIN switch_user_logged_in -->
<a href="{U_SEARCH_NEW}" class="gensmall">{L_SEARCH_NEW}</a><br /><a href="{U_SEARCH_SELF}" class="gensmall">{L_SEARCH_SELF}</a><br />
<!-- END switch_user_logged_in -->
<a href="{U_SEARCH_UNANSWERED}" class="gensmall">{L_SEARCH_UNANSWERED}</a></td>
</tr>
</table>
#
#-----[ After add ]-----
#
<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
<tr>
<th colspan="2" class="thCornerL" height="25" nowrap="nowrap"> {L_GOGO_ANNOUNCE} </th>
</tr>
<tr>
<td class="row1" align="center" valign="middle" height="25"><img src="images/announce.gif">
<td class="row1" width="100%" height="25"><marquee scrollamount=3 scrolldelay=75 width="100%" onmouseover=this.stop(); onmouseout=this.start();>{ANNOUNCEMENT}</marquee><br /></td>
</tr>
</table><br />
#
#-----[ Open ]-----
#
index.php
#
#-----[ Find ]-----
#
'L_ONLINE_EXPLAIN' => $lang['Online_explain'],
#
#-----[ After Add ]-----
#
//for 跑馬燈公告之公告字樣
'L_GOGO_ANNOUNCE' => $lang['Gogo_announce'],
//for 跑馬燈公告之公告字樣
#
#-----[ Open ]-----
#
language\lang_chinese_traditional_taiwan\lang_main.php
#
#-----[ Find ]-----
#
?>
#
#-----[ Before Add ]-----
#
//跑馬燈
$lang['Gogo_announce'] = "最新消息";
在每頁都顯示如上的跑馬燈部分....
第一次現醜了....^^#
#-----[ Open ]-----
#
viewforum.php
#
#-----[ Find ]-----
#
//
// Dump out the page header and load viewforum template
#
#-----[ Before add ]-----
#
// 跑馬燈公告 By Martinet Oaf~
$sql = "SELECT * FROM phpbb_announce ORDER BY a_order";
if(!$a_result = $db->sql_query($sql))
{
message_die(GENERAL_ERROR, "Could not query Announce information", "", __LINE__, __FILE__, $sql);
}
$i=0;
$marque = "";
while ($a_row = $db->sql_fetchrow($a_result))
{
$i++;
$a_name = $a_row['a_name'];
$a_url = $a_row['a_url'];
$marque .= "<span class=\"genmed\"><b><a href=\"$a_url\">[$i]$a_name</a></b> </span>";
}
if($i == 0)
$marque = "<span class=\"genmed\"><b>".$lang['Announce_no_announce']."</b></span>";
// 跑馬燈公告結束
#
#-----[ Find ]-----
#
'L_AUTHOR' => $lang['Author'],
#
#-----[ After add ]-----
#
//for 跑馬燈公告之公告字樣
'L_GOGO_ANNOUNCE' => $lang['Gogo_announce'],
//for 跑馬燈公告之公告字樣
'ANNOUNCEMENT'=>$marque,
#
#-----[ Open ]-----
#
templates\subSilver\viewforum_body.tpl
#
#-----[ Find ]-----
#
<!-- BEGIN switch_attached_list -->
#
#-----[ Before add ]-----
#
<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
<tr>
<th colspan="2" class="thCornerL" height="25" nowrap="nowrap"> {L_GOGO_ANNOUNCE} </th>
</tr>
<tr>
<td class="row1" align="center" valign="middle" height="25"><img src="images/announce.gif">
<td class="row1" width="100%" height="25"><marquee scrollamount=3 scrolldelay=75 width="100%" onmouseover=this.stop(); onmouseout=this.start();>{ANNOUNCEMENT}</marquee><br /></td>
</tr>
</table><br />
-
- 星球普通子民
- 文章: 8
- 註冊時間: 2007-06-11 14:52