花褪残红青杏小。燕子飞时,绿水人家绕。

修改BUS的XMLLINK插件

ZBLOG教程 十五楼的鸟儿 19383浏览 0评论

原有的插件生成的页面链接有点乱,堆在一起的感觉,现在修改了一下,配合丹丹 link页面的CSS获取到列表的效果。

 

插件的funtion.asp

444行

搜索

ArtList.template="TAGS"

替换为

ArtList.template="LINK"

468行,搜索

            bflinkindex=bflinksindex & "<span style='line-height:150%;margin:10px;'><a target='_blank' title='" & bfxl.web_intro & "' href='" & bfxl.web_url &"' rel='" & bfxl.web_xfn &"'>" & bfxl.web_name & "</a></span> "

替换为

            bflinkindex=bflinksindex & "<a target='_blank' title='" & bfxl.web_intro & "' href='" & bfxl.web_url &"' rel='" & bfxl.web_xfn &"'>" & bfxl.web_name & "</a> "

 

复制主题目录下的tags.html为link.html并做如下修改:

在 </head>前加入如下代码:

<style type="text/css">
            
#content A{text-decoration:none;
                width:140px;
                float:left;
                overflow:hidden;
                margin-right:8px;
                line-height:22px;} 
                #content A:link{text-decoration:none;
                width:140px;
                float:left;
                overflow:hidden;
                margin-right:8px;
                line-height:22px;}
                #content A:hover{text-decoration:none;
                width:140px;
                float:left;
                overflow:hidden;
                margin-right:8px;
                line-height:22px;} 
                #content a:visited{text-decoration:none;
                width:140px;
                float:left;
                overflow:hidden;
                margin-right:8px;
                line-height:22px;} 
            *{margin:0px;  padding:0px;}
            #content{
                width:750px;
                margin-top:10px;
            }
        
</style>

 

搜索<#CUSTOM_TAGS#>,并替换为如下内容。

            <table width="100%" border="0" cellSpacing="0" cellPadding="0" height="100%">

            <tr>
                
                <td 
id="wrapper" width="750" valign="top">
                    <div 
id="content" style="font-size:12px;">
    <div 
class="post-body"><#CUSTOM_TAGS#></div>

                    </div>
                </td>
                
            </tr>

        </table>
    

具体的还要针对不同的主题做仔细的调整.


转载请注明:鸟儿博客 » 修改BUS的XMLLINK插件

与本文相关的文章

游客
发表我的评论 换个身份
取消评论

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址