[問題][外掛]跑馬燈公告1.2版

phpBB 2 MOD Support
無論是官方或非官方認證之外掛,安裝與使用問題討論。
(發表文章請按照公告格式發表,違者砍文)

版主: 版主管理群

Martinet
竹貓忠實會員
竹貓忠實會員
文章: 850
註冊時間: 2003-06-09 21:58
聯繫:

文章 Martinet »

(前面自爆..)

跟跑馬燈外掛無關...你發在這裡作什麼..
善用搜尋是讓人去找一模一樣的情況的問題,且後來有人回覆解法...
不是讓人在有同樣錯誤訊息但不同外掛問的!
光是在外掛不同的這一點上就不應該發在這裡...(茶)

建議你新開個主題來問,因為這樣能夠讓其他人知道你的問題「不是跑馬燈問題」
因為通常來講..若是原創作者在站上的話..大多都是交給原創作者來回答
所以有些高深功力~且不想研究跑馬燈外掛的也就不會來瀏覽..
不過若是其他問題他們就會去看~

\n另外,在問問題上..建議你的資訊要提供的多一點
譬如說..什麼時候開始出現問題的?最後安裝的外掛?哪些頁面會出錯?
babycity
星球公民
星球公民
文章: 153
註冊時間: 2004-04-28 11:46

[問題] 請問

文章 babycity »

我照著上面的方法修改,安裝上大致都成功了,可是現在我的論壇有二行公告捏>"<我想留overall_header.tpl 的公告就好了,請問怎麼改成一行就好了
Martinet
竹貓忠實會員
竹貓忠實會員
文章: 850
註冊時間: 2003-06-09 21:58
聯繫:

文章 Martinet »

把原本加在 index_body.tpl 的改掉^^
jacky740
星球普通子民
星球普通子民
文章: 6
註冊時間: 2002-08-02 00:52
來自: HK

文章 jacky740 »

我跟著安裝指引安裝但我一登入就出現已下句子

代碼: 選擇全部

Call to undefined function: phpbb_clean_username() in /home/uglayr/public_html/phpBB2/login.php on line 57
我是一個新手,問問題之前我已嘗試搜尋
薑一旦切成四片
星球普通子民
星球普通子民
文章: 4
註冊時間: 2005-03-30 09:20
來自: 台中都區
聯繫:

文章 薑一旦切成四片 »

請教大大!因為我有使用EXOBud播放器!所以有使用框架來分隔!
但是卻導致跑馬燈功能上的連結功能有問題!也就是說原本指在跑馬燈上會直接連結到該篇文章!卻無法連結,並且導致重覆讀取音樂播放器
小弟是否可請教:如何移除跑馬燈功能中的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
    1. 虛擬形象\r
    2. 銀行外掛
    3. 性別外掛
    4. 跑馬燈外掛
    5. easy-mod
  • O.S:Windows XP SP2 professional
  • SQL:MySQL 版本 4.0.16-nt
  • phpMyAdmin 2.5.4
ahdaa
星球公民
星球公民
文章: 50
註冊時間: 2004-09-13 15:00

文章 ahdaa »

要看的檔案應該是在您風格目錄裡的index_body.tpl檔吧
●作業系統:Debian testing
●安裝程式:Apache + php版本4.3.10-9 + MySql版本4.0.24_Debian-2-log
●phpBB2:phpBB 2.0.13
薑一旦切成四片
星球普通子民
星球普通子民
文章: 4
註冊時間: 2005-03-30 09:20
來自: 台中都區
聯繫:

文章 薑一旦切成四片 »

ahdaa 寫:要看的檔案應該是在您風格目錄裡的index_body.tpl檔吧
不好意思!那我馬上補上 (ro22)

代碼: 選擇全部

<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">&nbsp;{L_FORUM}&nbsp;</th>
	<th width="50" class="thTop" nowrap="nowrap">&nbsp;{L_TOPICS}&nbsp;</th>
	<th width="50" class="thTop" nowrap="nowrap">&nbsp;{L_POSTS}&nbsp;</th>
	<th class="thCornerR" nowrap="nowrap">&nbsp;{L_LASTPOST}&nbsp;</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">&nbsp;</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} &nbsp; [ {L_WHOSONLINE_ADMIN} ] &nbsp; [ {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" />
		&nbsp;&nbsp;&nbsp;{L_PASSWORD}: 
		<input class="post" type="password" name="password" size="10" maxlength="32" />
		&nbsp;&nbsp; &nbsp;&nbsp;{L_AUTO_LOGIN} 
		<input class="text" type="checkbox" name="autologin" />
		&nbsp;&nbsp;&nbsp; 
		<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>&nbsp;&nbsp;</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>&nbsp;&nbsp;</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>
對了!我的風格是使用subSilver!
dean20
星球公民
星球公民
文章: 61
註冊時間: 2005-04-08 21:38
來自: 地球

[問題] 跑馬燈外掛

文章 dean20 »

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
beelyboy
星球普通子民
星球普通子民
文章: 11
註冊時間: 2005-05-17 03:27

文章 beelyboy »

在發送時出現這個error:

Fatal error: Call to a member function on a non-object in c:\appserv\www\phpbb2\includes\functions_post.php on line 221

是什麽error?!
頭像
心靈捕手
默默耕耘的老師
默默耕耘的老師
文章: 8510
註冊時間: 2004-04-30 01:54
來自: Taiwan

文章 心靈捕手 »

beelyboy 寫:在發送時出現這個error:

Fatal error: Call to a member function on a non-object in c:\appserv\www\phpbb2\includes\functions_post.php on line 221

是什麽error?!
如果您希望,
有效解決您的問題的話,
那麼建議您,
重新開一個主題發問...
( ps. 請遵守發問格式, 並且盡量詳細說明相關資訊)
施比受有福,祝福您好運! ^_^
歡迎光臨★★心靈捕手★★ :: 討論區
https://wang5555.dnsfor.me/phpBB3/
PandaTwo
星球普通子民
星球普通子民
文章: 10
註冊時間: 2005-12-06 22:15

文章 PandaTwo »

因為原始的每頁都顯示跑馬燈的修改
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">&nbsp;{L_GOGO_ANNOUNCE}&nbsp;</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">&nbsp;{L_GOGO_ANNOUNCE}&nbsp;</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 />
第一次現醜了....^^
wisely972000
星球普通子民
星球普通子民
文章: 8
註冊時間: 2007-06-11 14:52

文章 wisely972000 »

請問樓上的大大

我沒有找到<!-- BEGIN switch_attached_list -->

我只找到<!-- BEGIN switch_no_topics -->

我是有哪裡做錯嗎?

我加在這段後

變成顯示在最底

也就是所有主題之後

感謝
頭像
心靈捕手
默默耕耘的老師
默默耕耘的老師
文章: 8510
註冊時間: 2004-04-30 01:54
來自: Taiwan

文章 心靈捕手 »

wisely972000 寫:請問樓上的大大

我沒有找到<!-- BEGIN switch_attached_list -->

我只找到<!-- BEGIN switch_no_topics -->

我是有哪裡做錯嗎?

我加在這段後

變成顯示在最底

也就是所有主題之後

感謝
基本上, 在版面配置的位置上, 沒有一定的需求.
該網友所指的程式碼, 只限於其個人已經新增之外掛使用;
您可以自由, 隨心所欲加入跑馬燈程式碼.
施比受有福,祝福您好運! ^_^
歡迎光臨★★心靈捕手★★ :: 討論區
https://wang5555.dnsfor.me/phpBB3/
主題已鎖定

回到「外掛問題討論」