今天更新了MTBlogroll2.51,发现这个版本增加了很多功能,比如导入导出、 del.icio.us 集成、Digg 集成、和将Bogroll 导入收藏夹等,其中集成就是说,只要你通过del.icio.us或者Digg 收录网站,该网站的Url就会同步导入到blogroll,反之亦然(个人感觉这个功能不实用)。
同样相关的标签也因此增多了,下面是我根据官方标签整理的显示代码:
<MTBlogrollCategories>
<div class="r-title"><MTBlogrollCategoryLabel></div>
<div id="mynetwork" class="r-container-left">
<ul>
<MTBlogrollLinks>
<li>» <MTBlogrollLinkIfUpdated>*</MTBlogrollLinkIfUpdated> <a href="<$MTBlogrollLinkURI$>" title="<MTBlogrollLinkDesc> <MTIfNonEmpty tag="BlogrollLinkUpdated">Last Update: <MTBlogrollLinkUpdated><MTElse><MTBlogrollLinkDesc></MTElse></MTIfNonEmpty>"<MTIfNonEmpty tag="BlogrollLinkRel"> rel="<MTBlogrollLinkRel>"</MTIfNonEmpty> <MTIfNonEmpty tag="BlogrollLinkTarget">target="<MTBlogrollLinkTarget>"</MTIfNonEmpty>><$MTBlogrollLinkName$></a></li>
</MTBlogrollLinks>
</ul>
</div>
</MTBlogrollCategories>
不过他们添加了版权申明,考虑到整体布局,我将版权申明设置成在源码中显示。
版权在源码中显示的方法:
进入/plugins/Blogroll/lib/Blogroll/Template/ContextHandlers.pm
将
if(!($ctx->{inside_br_categories}) && !($args->{no_powered_by})) {
$res .= "<br /><a href=\"http://plugins.movalog.com/mt-blogroll/\" title=\"Powered
by MT Blogroll 2.5\">Powered by MT Blogroll</a>";
}
改为
if(!($ctx->{inside_br_categories}) && !($args->{no_powered_by})) {
$res .= "<!--<br /><a href=\"http://plugins.movalog.com/mt-blogroll/\" title=\"Powered
by MT Blogroll 2.5\">Powered by MT Blogroll</a>-->";
}
UPDATE:这个插件还有个BUG,一旦选择了“Hide: Check to prevent the link being published in templates”你就无法将其去掉,只能删除重新输入。

Add a Reply