快捷!方便!欢迎您用QQ登录华夏吴氏网 会员区*发表文章   设为首页 繁体中文 用户登录 我要投稿

 | 首页 | 资讯 | 图库 | 社区 | 祝福 | 商城 | 故事 | 企业 | 书籍 | 网建 | 纪念馆 | 手机站 | 
您现在的位置: 华夏吴氏网 >> 网建 >> 网建 >> 正文
添加文章时“文章来源:”处增加几个默认选项的修改办法
作者:佚名    文章来源:本站综合    点击数:    更新时间:2015-1-7           ★★★

动易CMS(SW系列),用户发文时在选择“来源信息”时默认只有“本站原创”一项。为了便于选择,增加默认“会员转发”一项(使结果类似于“作者”信息后的:佚名、未知)。


具体修改办法如下:


[hide]


【修改第1步】
在语言包Language\Gb2312.xml文件中查找:<DefCopyFrom>本站原创</DefCopyFrom>
在其下方增加一行:<UnknowCopyFrom>会员转发</UnknowCopyFrom>



【修改第2步】
Include\PowerEasy.Common.Manage.asp中查找:


Public Function GetCopyFromList(FilePrefix, ChannelID)


下有:Dim strDefCopyFrom


将其更改为:Dim strDefCopyFrom, strUnknowCopyFrom


 


strDefCopyFrom = XmlText("BaseText", "DefCopyFrom", "本站原创") 下增加:
strUnknowCopyFrom = XmlText("BaseText", "UnknowCopyFrom", "会员转发")


strCopyFromList = strCopyFromList & "【<font color='green' & strDefCopyFrom & "'"" style=""cursor:hand;"">" & strDefCopyFrom & "</font>】"下增加:
strCopyFromList = strCopyFromList & "【<font color='green' & strUnknowCopyFrom & "'"" style=""cursor:hand;"">" & strUnknowCopyFrom & "</font>】"


 


修改 If CopyFrom <> "" And CopyFrom <> strDefCopyFrom Then
If CopyFrom <> "" And CopyFrom <> strDefCopyFrom And CopyFrom <> strUnknowCopyFrom Then



修改后完整的 Public Function GetCopyFromList(FilePrefix, ChannelID)


Public Function GetCopyFromList(FilePrefix, ChannelID)
    Dim CopyFrom, strCopyFromList
    CopyFrom = Trim(Session("CopyFrom"))


     Dim strDefCopyFrom, strUnknowCopyFrom
    strDefCopyFrom = XmlText("BaseText", "DefCopyFrom", "本站原创")
    strUnknowCopyFrom = XmlText("BaseText", "UnknowCopyFrom", "会员转发")


    strCopyFromList = "<font color='blue'><="
    strCopyFromList = strCopyFromList & "【<font color='green' & strDefCopyFrom & "'"" style=""cursor:hand;"">" & strDefCopyFrom & "</font>】"
    strCopyFromList = strCopyFromList & "【<font color='green' & strUnknowCopyFrom & "'"" style=""cursor:hand;"">" & strUnknowCopyFrom & "</font>】"


    If CopyFrom <> "" And CopyFrom <> strDefCopyFrom And CopyFrom <> strUnknowCopyFrom Then
        strCopyFromList = strCopyFromList & "【<font color='green' & FilterJS(Replace(CopyFrom, "'", "")) & "'"" style=""cursor:hand;"">" & FilterJS(CopyFrom) & "</font>】"
    End If
    strCopyFromList = strCopyFromList & "【<font color='green' & FilePrefix & "_SourceList.asp?TypeSelect=CopyFromList&ChannelID=" & ChannelID & "', 'CopyFromList', 'width=600,height=450,resizable=0,scrollbars=yes');"" style=""cursor:hand;"">更多</font>】"
    strCopyFromList = strCopyFromList & "</font>"
    GetCopyFromList = strCopyFromList
End Function

 

分享到:
文章录入:gohwu    责任编辑:gohwu 

 我要投稿

发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口
  • 上一篇文章:
  • 下一篇文章: 没有了
  •    网友评论:(评论内容只代表网友观点,与本站立场无关!
    数据载入中,请稍后……
    发表评论
    昵 称: 验证码:
    评 分:
    内 容:
    0/1000)

    提示:Alt+S快速发表

     

    | 关于我们 | 加入收藏 | 联系站长 | 友情链接 | 版权申明 | 管理登录 | 服务专用QQ :116539779 点击这里给我发消息 :1015656481 点击这里给我发消息
    版权所有 Copyright © 1997-2014 China Mrs.Wu, All Rights Reserved 粤ICP备13015218号