没实现分类tags....
1.c_option 添加一参数:- '侧边栏tags显示数目
- Const ZC_TAG_WORD_MAX=30
复制代码 2.将FUNCTION/c_system_event.asp中BlogReBuild_Tags()函数换成以下:- Function BlogReBuild_Tags()
- Dim objRS
- Dim objStream
- Dim strTag
- Dim i
- Set objRS=objConn.Execute("SELECT * FROM [blog_Tag] ORDER BY [tag_Count] DESC,[tag_Order] DESC,[tag_ID] ASC")
- If (Not objRS.bof) And (Not objRS.eof) Then
- For i=1 to ZC_TAG_WORD_MAX
- strTag=strTag & "<span style='font-family:verdana,sans-serif;line-height:150%;font-size:"& 12 + (Tags(objRS("tag_ID")).Count/2) &"px;margin:10px;'><a title='" & Tags(objRS("tag_ID")).Count & "' alt='"& Tags(objRS("tag_ID")).Count &"' href='" & Tags(objRS("tag_ID")).Url &"'>" & Tags(objRS("tag_ID")).Name & "</a></span>"
- objRS.MoveNext
- If objRS.eof Then Exit For
- Next
- End If
- objRS.Close
- Set objRS=Nothing
- strTag=TransferHTML(strTag,"[no-asp]")
- Call SaveToFile(BlogPath & "/include/tags.asp",strTag,"utf-8",True)
- BlogReBuild_Tags=True
- End Function
复制代码 3.再索引重建就可以了
[ 本帖最后由 月上之木 于 2007-4-13 22:31 编辑 ] |