| 帖子列表图片预览插件 DV8.0SP1 帖子列表图片预览插件 
 
 安装方法: 1.将压缩包解压上传到论坛根目录下2.进入论坛后台管理,风格模版管理,选择你要修改的模版进行编辑
 当前模板CSS设置(StyleName) ---- 修改CSS式样:
 在最后面添加以下代码:
 .info {position:relative;background:#fff;color:#000; text-decoration:none;font-size:12px;width:150px;text-align:center;border:0px solid #fff;height:25px;line-height:25px;}
 .info:hover {background:#fff;color:#63BBE1;}
 .info span {display: none }
 .info:hover span {display:block;position:absolute;top:-100px;left:120px;width:30px;border:1px solid #63BBE1; background:#fff; color:#000;padding:18px;margin-left:5px;margin-right:2px;overflow:visible;text-align:center;}
 修改当前模板主模块(Main_Style)找到Dvbbs.mainhtml(2)
 
 
 
 改为: 
 
 
 修改分页面模板(page_index)
 找到template.html(1)
 dispbbs.asp?boardID={@boardid}&ID={@topicid}&page={/xml/@page}\" > 《》
 /xml/@cananony !=1 or /xml/@ismaster =1\">作者:
 therwise>作者:匿名用户therwise>
 
 改为:id="a{@topicid}\" class=\"info\" href=\"dispbbs.asp?boardID={@boardid}&ID={@topicid}&page={/xml/@page}\" >
 《》
 /xml/@cananony !=1 or /xml/@ismaster =1\">作者:
 therwise>作者:匿名用户therwise>
 
 
 注意事项: 1、请检查你的模板主模块(Main_Style)找到Dvbbs.mainhtml(2)
 
 
  里是否有onload方法,如果有请去掉,否则插件不能正常运行。 2、如果你的服务器没有安装图片预览组件,请修改qry.asp 请将 sql=\"select top 1 f_viewname from [dv_upfile] where f_boardid=\"&trim(request(\"boardid\"))&\" and f_announceid like \'\"&trim(request(\"id\"))&\"%\' order by f_id\"
 改为: sql=\"select top 1 f_filename from [dv_upfile] where f_boardid=\"&trim(request(\"boardid\"))&\" and f_announceid like \'\"&trim(request(\"id\"))&\"%\' order by f_id\"
[此贴子已经被作者于2007-8-29 22:00:21编辑过] |