問題外掛:主題類型
參考連結:http://phpbb-tw.net/phpbb/viewtopic.php?t=39648
使用版本:phpBB 2.0.18
網站位置:同學專用論壇, 不便公開
狀況描述:
如果有一篇文章帶有投票, 會把投票和文章看作兩篇文章
即使刪除投票/文章, 文章總數都會多了一篇
所以我的論壇出現了一個沒有主題, 不過有一篇文章的版面....
[反應] [外掛] 自製的「主題類型」
版主: 版主管理群
我貼上它所提供的SQL碼,真不支倒要怎麼裝
代碼: 選擇全部
SQL 語法 :
CREATE TABLE `phpbb_topictypes` (
`topic_types` VARCHAR( 10 ) NOT NULL
) ALTER TABLE `phpbb_forums` ADD `forum_topictypes` VARCHAR( 255 ) NOT NULL DEFAULT '' ALTER TABLE `phpbb_forums` ADD `forum_topictypes_force` TINYINT( 2 ) DEFAULT '0' NOT NULL ALTER TABLE `phpbb_topics` ADD `topic_types` VARCHAR( 10 ) NOT NULL INSERT INTO `phpbb_config` ( `config_name` , `config_value` )
VALUES (
'topictypes_color', 'brown'
)
MySQL 傳回:
#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 'ALTER TABLE `phpbb_forums` ADD `forum_topictypes` VARCHAR(
關於你的問題monthday 寫:我貼上它所提供的SQL碼,真不支倒要怎麼裝代碼: 選擇全部
SQL 語法 : CREATE TABLE `phpbb_topictypes` ( `topic_types` VARCHAR( 10 ) NOT NULL ) ALTER TABLE `phpbb_forums` ADD `forum_topictypes` VARCHAR( 255 ) NOT NULL DEFAULT '' ALTER TABLE `phpbb_forums` ADD `forum_topictypes_force` TINYINT( 2 ) DEFAULT '0' NOT NULL ALTER TABLE `phpbb_topics` ADD `topic_types` VARCHAR( 10 ) NOT NULL INSERT INTO `phpbb_config` ( `config_name` , `config_value` ) VALUES ( 'topictypes_color', 'brown' ) MySQL 傳回: #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 'ALTER TABLE `phpbb_forums` ADD `forum_topictypes` VARCHAR(
請用這一個貼上...^^""
代碼: 選擇全部
CREATE TABLE `phpbb_topictypes` (`topic_types` VARCHAR( 20 ) NOT NULL);
ALTER TABLE `phpbb_forums` ADD `forum_topictypes` VARCHAR( 255 ) NOT NULL DEFAULT '';
ALTER TABLE `phpbb_forums` ADD `forum_topictypes_force` TINYINT( 2 ) DEFAULT '0' NOT NULL;
ALTER TABLE `phpbb_topics` ADD `topic_types` VARCHAR( 20 ) NOT NULL;
INSERT INTO `phpbb_config` ( `config_name` , `config_value` ) VALUES ('topictypes_color', 'brown');
不好意思捏....還讓你特別問一次\r
檔案內容已全部更新一次了...^^