1 頁 (共 1 頁)

[問題] Topic calendar ver1.0.1安裝問題[已解決,感謝問題狂大大]^

發表於 : 2005-09-28 02:39
深紅
問題外掛:Topic calendar
參考連結:http://phpbb-tw.net/phpbb/viewtopic.php ... t=Calendar
使用版本:phpbb 2.0.17 正體中文
網站位置:http://eterris.e2u.cc/phpbb2
已安裝外掛:
‧attachMOD ver2313
‧CashMOD ver222
‧ezPortal ver218b
.網站風格改成bolid(官網所下載的風格)
‧Color Groups ver121
‧Admin Userlist ver110
.ezportal admin ver1.0.5
‧跑馬燈公告(annouce) ver1.0
.Rank Image in Rank Admin List ver1.0.5
.Add new field to profile ver1.2.2
‧view porfile sig ver1.1.0
.chatbox ver1.1.9g
.Redirect User Fix 1.0.0
狀況描述:
各位大大好,小弟在裝完Topic calendar後,欲觀看文章時便出現下列訊息:

代碼: 選擇全部

一般錯誤 
  
Could not obtain topic information

DEBUG MODE

SQL Error : 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '//-- fin mod : calendar --------------------------------------------------------' at line 2

SELECT t.topic_id, t.topic_title, t.topic_status, t.topic_replies, t.topic_time, t.topic_type, t.topic_vote, t.topic_last_post_id, t.topic_first_post_id, t.topic_calendar_time, t.topic_calendar_duration, f.forum_name, f.forum_status, f.forum_id, f.auth_view, f.auth_read, f.auth_post, f.auth_reply, f.auth_edit, f.auth_delete, f.auth_sticky, f.auth_announce, f.auth_pollcreate, f.auth_vote, f.auth_attachments, f.auth_download, t.topic_attachment, COUNT(p2.post_id) AS prev_posts //-- fin mod : calendar ---------------------------------------------------------------------------- FROM phpbb_topics t, phpbb_forums f, phpbb_posts p, phpbb_posts p2 WHERE p.post_id = 70 AND t.topic_id = p.topic_id AND p2.topic_id = p.topic_id AND p2.post_id <= 70 AND f.forum_id = t.forum_id GROUP BY p.post_id, t.topic_id, t.topic_title, t.topic_status, t.topic_replies, t.topic_time, t.topic_type, t.topic_vote, t.topic_last_post_id, f.forum_name, f.forum_status, f.forum_id, f.auth_view, f.auth_read, f.auth_post, f.auth_reply, f.auth_edit, f.auth_delete, f.auth_sticky, f.auth_announce, f.auth_pollcreate, f.auth_vote, f.auth_attachments, f.auth_download, t.topic_attachment ORDER BY p.post_id ASC

Line : 174
File : viewtopic.php 
 
這個部份,只有在觀看文章才會出現錯誤,觀看文章列表的部份還不會出現錯誤訊息。
無奈小弟英文有點給他破,所以只好先看看自己viewtopic.php有沒有裝錯。初步檢查無誤,但是為求謹慎還是重裝了該檔的修改部份,但還是不能執行。
於是小弟先還原veiwtopic.php的修改前內容,便可以正常觀看文章了...

其他方面,由於小弟沒有安裝 公告置頂分區,也沒有安裝 子分區,所以part2和part3小弟都有照文施工,只有part4沒有動到。

嗯...請問大大,小弟是不是又漏了什麼沒弄好...Orz|||

<P.S>目前由於此網站已開放給小弟班上的同學使用,故僅將viewtopic.php還原到未修改,而其他Topic calendar所修改到的檔案,都繼續維持現貌,所以現在到小弟的站,會看不見錯誤訊息。

而且小弟發覺最糗的是...我不知道該怎麼增加行事曆 :oops:

發表於 : 2005-09-28 22:12
問題狂
把這段刪掉看看:

代碼: 選擇全部

//-- fin mod : calendar ---------------------------------------------------------------------------- 
我想這只是外掛的注解部份
並沒有什麼用的

發表於 : 2005-09-29 01:40
深紅
感謝問題狂大大的提醒,我找到錯在哪裡了 :oops:
原文安裝指引是這樣的:

代碼: 選擇全部

#-----[ FIND ]------------------------------------------------
#
# this is a partial search : the full lines are longer
#
$sql = "SELECT t.topic_id, t.topic_title
	FROM " . TOPICS_TABLE
	WHERE 
		AND f.forum_id =
		$order_sql
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
//-- mod : calendar --------------------------------------------------------------------------------
// here we added
//	, t.topic_first_post_id, t.topic_calendar_time, t.topic_calendar_duration
//-- modify
#
#-----[ IN-LINE FIND ]---------------------------------------- 
#
, t.topic_last_post_id
#
#-----[ IN-LINE AFTER, ADD ]---------------------------------- 
#
, t.topic_first_post_id, t.topic_calendar_time, t.topic_calendar_duration
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- fin mod : calendar ----------------------------------------------------------------------------
#
但是,整個要找的區塊是長這樣:

代碼: 選擇全部

$sql = "SELECT t.topic_id, t.topic_title, t.topic_status, t.topic_replies, t.topic_time, t.topic_type, t.topic_vote, t.topic_last_post_id, f.forum_name, f.forum_status, f.forum_id, f.auth_view, f.auth_read, f.auth_post, f.auth_reply, f.auth_edit, f.auth_delete, f.auth_sticky, f.auth_announce, f.auth_pollcreate, f.auth_vote, f.auth_attachments" . $count_sql . "
	FROM " . TOPICS_TABLE . " t, " . FORUMS_TABLE . " f" . $join_sql_table . "
	WHERE $join_sql
		AND f.forum_id = t.forum_id
		$order_sql";
而小弟我則是錯在,把
//-- fin mod : calendar ----------------------------------------------------------------------------加在\r

代碼: 選擇全部

$sql = "SELECT t.topic_id, t.topic_title, t.topic_status, t.topic_replies, t.topic_time, t.topic_type, t.topic_vote, t.topic_last_post_id, f.forum_name, f.forum_status, f.forum_id, f.auth_view, f.auth_read, f.auth_post, f.auth_reply, f.auth_edit, f.auth_delete, f.auth_sticky, f.auth_announce, f.auth_pollcreate, f.auth_vote, f.auth_attachments" . $count_sql . "
之後...那個時候沒看清楚,後來熊熊想起,好像至少要到分號才是一個完整的敘述,於是便把
//-- fin mod : calendar ----------------------------------------------------------------------------
重新加在\r

代碼: 選擇全部

前略\r
$join_sql_table . "
	WHERE $join_sql
		AND f.forum_id = t.forum_id
		$order_sql";
於是之前的問題便沒有了^^

不過我還是不知道怎麼增加行事曆的事件,安裝說明裡也沒有說明啊,拜託大大指點一下~~ :cry:

發表於 : 2005-09-29 10:48
深紅
唔..慘愧,原來我把問題修正完後...今天心血來潮發個文,才發現原來是用文章控制行事曆... :oops:
我還想說,怎麼控制台中一直找不到呢Orz
不好意思一直耍呆,這個問題我自己解決了,拍謝拍謝^^"

發表於 : 2005-10-27 10:06
butyroger
我的不知為什麼行事曆還是一片空白...
PO文也不會跑到行事曆上
安裝檢查很多次了,都完全正確,還是不行..
可有人有類似的情形,指點一下?