How to use:
Upload the files in the compressed package to the DEDE installation directory.
Then run it in the background SQL command runner (remember to replace DEDE with the table prefix you set during installation)
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;
Then insert it into the content page template of DedeCMS
That’s it.
Finally, don’t forget to generate HTML
Expand