使用方法:
將壓縮包內的檔案上傳到DEDE的安裝目錄中,
然後在後台SQL命令運行器中執行(記得要把DEDE替換為你安裝時設定的表前綴)
CREATE TABLE `dede_mood` (
`id` int(11) NOT NULL auto_increment,
`aid` int(11) NOT NULL,
`mood1` int(10) NOT NULL default 0 ,
`mood2` int(10) NOT NULL default 0 ,
`mood3` int(10) NOT NULL default 0 ,
`mood4` int(10) NOT NULL default 0 ,
`mood5` int(10) NOT NULL default 0 ,
`mood6` int(10) NOT NULL default 0 ,
PRIMARY KEY (`id`)
) ENGINE=MyISAM;
CREATE TABLE `dede_mood_ranking` (
`aid` int(10) NOT NULL,
`mood` int(1) NOT NULL,
`time` int(11) NOT NULL,
KEY `aid` (`mood`,`aid`,`time`)
) ENGINE=MyISAM;
然後在DedeCMS的內容頁模板中插入
<iframe id="mood_frame" width="400" height="200" src="{dede:field name= phpurl /}/mood/mood.php?aid={dede:field name= ID /}" marginWidth= 0 marginHeight=0 frameborder="0" scrolling="no"></iframe>
即可。
最後別忘了產生HTML哦
展開