找回密码
 注册
123
返回列表 发新帖
楼主: 蓝雨
收起左侧

摄影、图片、艺术、设计类论坛需求:图片帖子列表

[复制链接]

5312

主题

8317

帖子

1万

积分

管理员

出售国内外虚拟空间

Rank: 10Rank: 10Rank: 10

积分
14660
帖子
8317
精华
67
体力
14660 点
蓝豆
2391 点
注册时间
2007-6-8

终身成就奖LY官方团队会员身份ID卡

发表于 2008-6-27 09:54:15 | 显示全部楼层 |阅读模式
下面的修改比较负责,建议修改之前备份 1、首先打开Index.asp文件: 在约31行处找到“Dim i,j,n,ii”,在后面增加 \'功能介绍:定义 topic_first_pic 所需变量 Dim KN_rs , KN_AnnounceID , KN_F_AnnounceID , KN_F_Filename , KN_F_FileType , KN_F_Viewname , KN_Img_Url 然后找到“Case \"boardid\" : TPL_Echo TopTopic(1,i)”在后面增加: \'功能介绍:读取固顶帖子中的第一张图片 Case \"topic_first_pic\" \'这里定义了“topic_first_pic”一个系统变量 Set KN_rs=Dvbbs.Execute(\"select AnnounceID,RootID from [Dv_bbs1] where RootID=\"&TopTopic(0,i)&\" and BoardID=\"&TopTopic(1,i)&\" and ParentID=0 order by AnnounceID desc\") if KN_rs.eof and KN_rs.bof then KN_Img_Url=\"images/Topic_NoFirstPic.gif\" else KN_AnnounceID=KN_rs(\"AnnounceID\") end if KN_rs.close KN_F_AnnounceID=TopTopic(0,i)&\"|\"&KN_AnnounceID Set KN_rs=Dvbbs.Execute(\"Select top 1 F_ID,F_AnnounceID,F_BoardID,F_Filename,F_FileType,F_Viewname,F_OldName From [Dv_Upfile] where F_AnnounceID=\'\"&KN_F_AnnounceID&\"\' and F_BoardID=\"&TopTopic(1,i)&\" order by F_ID asc\") if KN_rs.eof and KN_rs.bof then KN_Img_Url=\"images/Topic_NoFirstPic.gif\" else KN_F_Filename=KN_rs(\"F_Filename\") KN_F_FileType=KN_rs(\"F_FileType\") KN_F_Viewname=KN_rs(\"F_Viewname\") end if KN_rs.close:set KN_rs=nothing if KN_F_FileType=\"jpg\" or KN_F_FileType=\"jpeg\" or KN_F_FileType=\"tif\" or KN_F_FileType=\"tiff\" or KN_F_FileType=\"png\" or KN_F_FileType=\"bmp\" then if KN_F_Viewname<>\"\" then KN_Img_Url=KN_F_Viewname else if KN_F_Filename<>\"\" then KN_Img_Url=KN_F_Filename else KN_Img_Url=\"images/Topic_NoFirstPic.gif\" end if end if else KN_Img_Url=\"images/Topic_NoFirstPic.gif\" end if TPL_Echo KN_Img_Url 然后找到“Case \"boardid\" : TPL_Echo Topic(1,i)”,在后面增加:
游客,如果您要查看本帖隐藏内容请回复
出售国内或美国高性能虚拟空间,高速VPS以及服务器! 同时承接各种类型的网站制作,网站维护,支付宝交易安全放心!    联系QQ:6102031
懒得打字嘛,点击右侧快捷回复
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

网站公告上一条 /2 下一条

GMT+8, 2024-4-26 16:47 , Processed in 0.109375 second(s), 23 queries , Gzip On.

© 2006-2022 Powered by Discuz! X3.4

快速回复 返回顶部 返回列表