dede 留言簿 多个
使用后台的【模块】-【模块生成向导】,然后填写一下资料
PS:complaints 是之前做的一个“举报投诉”的留言簿意思,这里用作非常多文件名称和新建数据表的名字,所以替换就可以。
另一点须要注意,在改动下面2个文件时候须要注意要改动cookies中的名字GUEST_BOOK_POS → COMPLAINTS_POS(这个是这个项目改动的)
文件|../plus/guestbook.php
文件|../plus/guestbook/edit.inc.php
安装程序:
DROP TABLE IF EXISTS `#@__complaints`; CREATE TABLE `#@__complaints` ( `id` mediumint(8) unsigned NOT NULL auto_increment, `title` varchar(60) NOT NULL default '', `tid` mediumint(8) NOT NULL default '0', `mid` mediumint(8) unsigned default '0', `posttime` int(10) unsigned NOT NULL default '0', `uname` varchar(30) NOT NULL default '', `email` varchar(50) NOT NULL default '', `homepage` varchar(50) NOT NULL default '', `qq` varchar(15) NOT NULL default '', `face` varchar(10) NOT NULL default '', `ip` varchar(20) NOT NULL default '', `dtime` int(10) unsigned NOT NULL default '0', `ischeck` smallint(6) NOT NULL default '1', `msg` text NULL, PRIMARY KEY (`id`), KEY `ischeck` (`ischeck`) ) TYPE=MyISAM; Delete From `#@__plus` where plusname like '举报投诉模块'; INSERT INTO `#@__plus` (`plusname`, `menustring`, `mainurl`, `writer`, `isshow`, `filelist`) VALUES ('举报投诉', '<m:item name=''举报投诉'' link=''catalog_do.php?dopost=complaints'' rank=''plus_举报投诉'' target=''main'' />', '', '铭铭集团', 1, ''); Delete from `#@__arctype` where typename='举报投诉' and ispart='2'; Insert into `#@__arctype`(reid,topid,sortrank,typename,typedir,isdefault,defaultname,issend,channeltype, tempindex,templist,temparticle,modname,namerule,namerule2,ispart,corank,description,keywords,moresite,siteurl,sitepath,ishidden,`cross`,`crossid`,`content`) Values('0','0','999','举报投诉','_ROOTURL_/plus/complaints.php','1','complaints.php','0','1', '','','','default','','','2','0','','','0','','','0','0','0','');
删除程序:
DROP TABLE IF EXISTS `#@__complaints`; Delete From `#@__plus` where plusname='举报投诉模块'; Delete from `#@__arctype` where typename='举报投诉' and ispart='2';
文件列表:
../plus/complaints.php ../plus/complaints ../templets/plus/complaints.htm ../templets/plus/complaints-admin.htm ../templets/plus/complaints-user.htm