国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > CMS > 動易CMS > 正文

如何去掉內(nèi)容頁上顯示“文章來源”所帶的鏈接?

2024-09-10 21:55:26
字體:
供稿:網(wǎng)友

問題:升級到SiteWeaver6.5版本后,發(fā)現(xiàn)文章內(nèi)容頁的“文章來源”處帶上了鏈接,那么能不能讓{$CopyFrom}(顯示文章來源)這個標(biāo)簽在解析的時(shí)候不要帶網(wǎng)址?

解決:可以的,修改Include/PowerEasy.Common.Content.asp中314行的Private Function GetCopyFromInfo(tmpCopyFrom, iChannelID)的相關(guān)代碼

原代碼如下:

Private Function GetAuthorInfo(tmpAuthorName, iChannelID)
Dim i, tempauthor, authorarry, temprs, temparr
If IsNull(tmpAuthorName) Or tmpAuthorName = "未知" Or tmpAuthorName = "佚名" Then
GetAuthorInfo = tmpAuthorName
Else
authorarry = Split(tmpAuthorName, "|")
For i = 0 To UBound(authorarry)
tempauthor = tempauthor & "<a href='" & strInstallDir & "ShowAuthor.asp?ChannelID=" & iChannelID & "&AuthorName=" & authorarry(i) & "' title='" & authorarry(i) & "'>" & GetSubStr(authorarry(i), AuthorInfoLen, True) & "</a>"
If i <> UBound(authorarry) Then tempauthor = tempauthor & "|"
Next
GetAuthorInfo = tempauthor
End If
End Function

Private Function GetCopyFromInfo(tmpCopyFrom, iChannelID)
Dim temprs, temparr
If IsNull(tmpCopyFrom) Or tmpCopyFrom = "本站原創(chuàng)" Then
GetCopyFromInfo = "本站原創(chuàng)"
Else
GetCopyFromInfo = "<a href='" & strInstallDir & "ShowCopyFrom.asp?ChannelID=" & iChannelID & "&SourceName=" & tmpCopyFrom & "'>" & tmpCopyFrom & "</a>"
End If
End Function

---------------------

修改為:

Private Function GetAuthorInfo(tmpAuthorName, iChannelID)
Dim i, tempauthor, authorarry, temprs, temparr
If IsNull(tmpAuthorName) Or tmpAuthorName = "未知" Or tmpAuthorName = "佚名" Then
GetAuthorInfo = tmpAuthorName
Else
authorarry = Split(tmpAuthorName, "|")
For i = 0 To UBound(authorarry)
tempauthor = tempauthor & GetSubStr(authorarry(i), AuthorInfoLen, True)
If i <> UBound(authorarry) Then tempauthor = tempauthor & "|"
Next
GetAuthorInfo = tempauthor
End If
End Function

Private Function GetCopyFromInfo(tmpCopyFrom, iChannelID)
Dim temprs, temparr
If IsNull(tmpCopyFrom) Or tmpCopyFrom = "本站原創(chuàng)" Then
GetCopyFromInfo = "本站原創(chuàng)"
Else
GetCopyFromInfo = tmpCopyFrom
End If
End Function

紅色標(biāo)記處,前者為作者的代碼,后者為來源的代碼。

共2頁上一頁12下一頁
發(fā)表評論 共有條評論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 竹北市| 尉氏县| 溆浦县| 溧水县| 伊金霍洛旗| 元阳县| 班玛县| 邢台市| 象州县| 连山| 新安县| 望谟县| 湾仔区| 兰坪| 瓮安县| 雷波县| 拉萨市| 临海市| 凌源市| 布尔津县| 河西区| 红河县| 新昌县| 泽普县| 上高县| 祁连县| 饶河县| 邻水| 五家渠市| 敦化市| 凤冈县| 东安县| 元谋县| 井冈山市| 湖口县| 邢台市| 鹤峰县| 陈巴尔虎旗| 尚志市| 建平县| 启东市|