所在位置:论坛首页 -> ┈┋BBSGood专区┋┈ -> 『皮肤插件区』 -> [原创]论坛增加“精华帖”盖章功能!
发表新的主题 发起新的投票 发起新的交易 发起新的任务 回复话题
 标题:[原创]论坛增加“精华帖”盖章功能!
 作者:jhj1128 发表于 2007-11-7 19:00:12收藏 编辑 删除 楼主  | 上一篇 下一篇

1、红色部分为添加的。2个文件共8处!
2、演示:
http://bbs.czfcw.com/2007-10/31/2027372285004.html

 

PostListFun.asp 文件

'第1段
Dim IsRw,PostYxDate,PostLxFs,IsBestLw,IsPostMoney,LwID,CommPrice
Dim IsBest

'第2段
 sql="select top 1 ID,BoardID,Subject,text,FileName,PostUser,PostTime,RePostUser,Hits,IP,BuyPostType,BuyNum,BuyExplanation,BuyUser,Pollzt,CommTrue,CommName,CommPrice,CommQuality,CommDress,PicDress,Transport,Postage_mail,Postage_express,RePostNum,IsRw,PostYxDate,PostLxFs,IsBest,IsBestLw,IsPostMoney,postsh from LxTel_Topic where FileName='"&FileName&"' "

'第3段
    sql="select top 1 ID,BoardID,Subject,text,FileName,PostUser,PostTime,RePostUser,Hits,IP,BuyPostType,BuyNum,BuyExplanation,BuyUser,Pollzt,CommTrue,CommName,CommPrice,CommQuality,CommDress,PicDress,Transport,Postage_mail,Postage_express,RePostNum,IsRw,PostYxDate,PostLxFs,IsBest,IsBestLw,IsPostMoney,postsh from LxTel_Topic where BoardID="&BoardID&" and ID="&PostID&" "

'第4段
IsPostMoney=rs("IsPostMoney")
LwID=rs("ID")
CommPrice=rs("CommPrice")
IsBest=rs("IsBest")  '是否精华帖子

'第5段
    Response.Write "<div style=""position:relative;"" >"
 '是否精华帖子
 If IsBest=true then Response.Write "<div id=""jinghua"" style="" position: absolute; left: 300px; TOP: 300px;""><img border=""0"" src=""images/jinghua.gif"" width=""153"" height=""120"" border=""0"" alt=""精华帖"" /></div>"

    Response.Write "<table width="""&Application(BBSInfo&"MB")(1,0)&""" align=""center"" border=""1"" class=""table0"" style=""border-collapse: collapse""><tr><td height=""27"">&nbsp;<img src=""images/sys/nav.gif"">&nbsp;<a href=""index.asp"">论坛首页</a>"&DhNl&"&nbsp;→&nbsp;"&TitleName&"</td></tr></table>"
    Response.Write "</div>"

CreateHtml.asp文件

'第1段
Private Function CreateHtmlPost(BoardID,FileName,PostID,Page,IsCreateHtml) '生成html帖子风格的函数
    Dim PageNum,i,j,RePostUser,Title,UserInfo,userinfoi,userinfoj,UserDJName,QmUBBstring,picurl,text,CommTrue,ip,MobImg,TransportPostType,TitleName
    Dim HtmlNl,UserQx,RegTime,ReNL,FPage,PostBm,AllPostCode,poststr,userimages,RepostNum
    Dim IsBest '精华帖子

'第2段
            sql="select top 1 ID,BoardID,Subject,text,FileName,PostUser,PostTime,RePostUser,Hits,IP,BuyPostType,BuyNum,BuyExplanation,BuyUser,Pollzt,CommTrue,CommName,CommPrice,CommQuality,CommDress,PicDress,Transport,Postage_mail,Postage_express,RePostNum,IsBest from LxTel_Topic where BoardID="&BoardID&" and FileName='"&FileName&"' "

'第3段
        sql="select top 1 ID,BoardID,Subject,text,FileName,PostUser,PostTime,RePostUser,Hits,IP,BuyPostType,BuyNum,BuyExplanation,BuyUser,Pollzt,CommTrue,CommName,CommPrice,CommQuality,CommDress,PicDress,Transport,Postage_mail,Postage_express,RePostNum,IsBest from LxTel_Topic where BoardID="&BoardID&" and ID="&PostID&" "

'第4段
    TitleName=RemoveHTML(rs("subject"))
    RePostNum=rs("RePostNum")
IsBest=rs("IsBest")  '是否精华帖子

'第5段
        '导航条
        AllPostCode=AllPostCode+  "<div style=""position:relative;"" >"
        '是否精华帖子
        If IsBest=true then AllPostCode=AllPostCode+  "<div id=""jinghua"" style="" position: absolute; left: 300px; TOP: 300px;""><img border=""0"" src=""/images/jinghua.gif"" width=""153"" height=""120"" border=""0"" alt=""精华帖"" /></div>"

        AllPostCode=AllPostCode+ "<table width="""&Application(BBSInfo&"MB")(1,0)&""" align=""center"" class=""dhstr""><tr><td>&nbsp;<img src="""&Application(BBSInfo&"sysinfo")(5,0)&"/images/sys/nav.gif"">&nbsp;所在位置:<a href="""&Application(BBSInfo&"sysinfo")(5,0)&"/index.asp"">论坛首页</a>"&DhNl&"&nbsp;->&nbsp;"&TitleName&"</td></tr></table>"
        AllPostCode=AllPostCode+ "</div>"

顶部
 作者:jhj1128 发表于 2007-11-8 13:41:02编辑 删除 引用   第2楼 

没人喜欢

顶部
 作者:518 发表于 2007-11-8 15:36:35编辑 删除 引用   第3楼 
这个是不错的东西
顶部
 作者:心头好 发表于 2007-11-10 2:02:04编辑 删除 引用   第4楼 
呵呵.还可以!!顶一下热心人
求求设计网,有求必应!招友情连接!
点此打开链接!http://www.4aqq.com
---------------------
1G空间118元/[color=red] 点此打开链接!免费试用[/color]
顶部
 作者:香雪文学 发表于 2007-11-11 12:28:13编辑 删除 引用   第5楼 
试了一下,没成功,不知道是什么原因。
香雪文学:http://lgxx.com.cn/bbs/index.asp
顶部
 作者:龙之门鲤鱼 发表于 2007-11-12 8:57:31编辑 删除 引用   第6楼 

好同志,支持你!

上网了吧,网恋了吧,幼稚思想受骗了吧?
网恋了吧,投入了吧,感情走上绝路了吧?
投入了吧,见面了吧,没有以前来电了吧?
见面了吧,后悔了吧,美眉变成恐龙了吧?
后悔了吧,倒霉了吧,感情投资浪费了吧?
倒霉了吧,想死了吧,以后不敢上网了吧?
顶部
 作者:lizhifeng 发表于 2007-12-8 8:52:32编辑 删除 引用   第7楼 
哇!!直接发出那个文件来下载啊。。。
BBSGOOD不是个好东西!
以后不想用他了!
顶部
 作者:jbpop 发表于 2007-12-10 16:33:23编辑 删除 引用   第8楼 
哇!!直接发出那个文件来下载啊。。。
点此打开链接!天易技术社区
按此在新窗口浏览图片
顶部
 作者:买空间14 发表于 2007-12-10 16:58:27编辑 删除 引用   第9楼 

好多代码的.

头都晕了.

还是要谢谢LZ.

辛苦了..

1100M 特价空间200元/年,****正在热销中 
免费安装/调试/转换/论坛程序
顶部
 作者:西西公主 发表于 2007-12-28 17:36:50编辑 删除 引用   第10楼 
不能用
点此打开链接!便民服务点此打开链接!新疆旅游租车点此打开链接!新疆电子警察点此打开链接!UBB编辑器点此打开链接!HTML编辑器点此打开链接!在线翻译
顶部
 作者:叽哩呱啦 发表于 2007-12-28 23:54:07编辑 删除 引用   第11楼 

确实没法用,可惜弄了那么久

顶部
 快速回复
  • 支持UBB,HTML标签

  • 高级回复

  • 操作选项: 加精 解精 奖惩 设专题 设公告 解公告 固顶 总固顶 解固顶 结帖 解结帖 锁帖 解锁 移帖 删帖

    Copyright © 2004-2007  BBSGood.com Powered By: BBSGood.Speed Version 4.0

    首页 | 购买指南 | 商业版本 | 虚拟主机 | 特色介绍 | 下载中心 | 支付方式

    咨询电话:0575-84065635(传真)、7*24小时咨询服务:13606552007
    业务QQ:38958768、客服QQ1:415896239、客服QQ2:343896043、MSN:jccsxx@hotmail.com
    不良信息举报中心 浙ICP备05029817号