使用方法: 将mood目录上传到P8的根目录目录中, 在后台SQL命令运行器中运行(记得要把p8替换为你安装时设置的表前缀) 复制代码- CREATE TABLE `p8_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',
- `mood7` int(10) NOT NULL default '0',
- `mood8` int(10) NOT NULL default '0',
- PRIMARY KEY (`id`)
- ) ENGINE=MyISAM;
|
然后在PHP168CMS的内容页模板中插入 <iframe id="mood_frame" width="400" height="200" src="$webdb[www_url]/mood/mood.php?aid={$rsdb[aid]}" marginWidth=0 marginHeight=0 frameborder="0" scrolling="no"></iframe> 即可。即可。
![]() [ 此帖被天之骄子在2010-04-18 22:59重新编辑 ] |