Antivirus Security Blog

-----------------------------------------------------------------------------------------Professional Antivirus Technology And Network Security Blog--------http://www.ruanse.com

« 怎样做z-blog主题模板怎样在zblog中添加google adsense广告 »

Z-Blog模版标签库及相关说明(模版必学知识)


1.系统常量区(c_custom.asp,c_option.asp)
当前版本号 :         <#zc_blog_version#>
博客页面语言 :      <#zc_blog_language#> (默认为zh-cn)
博客网址 :             <#zc_blog_host#>       
博客标题 :             <#zc_blog_title#>        (显示于浏览器标题栏)     
博客简介 :             <#zc_blog_subtitle#>     
博客名称 :             <#zc_blog_name#>        (显示于页面中) 
博客副标题 :  <#zc_blog_sub_name#> 
界面样式名称 :      <#zc_blog_CSS#>          
版权说明 :             <#zc_blog_copyright#>
博客主人名  :        <#zc_blog_master#>    
留言最长字数 :      <#zc_content_max#>    
表情字符串 :         <#zc_emoticons_filename#>
表情图片大小 :      <#zc_emoticons_filesize#> 
留言本正文内容 :   <#zc_guestbook_content#>
博客唯一标识号 :   <#zc_blog_clsid#>        (更改该标识可能对防机器spam有效)
博客时区 :               <#zc_time_zone#>         (默认为+0800 ,即北京时间)   
图片自动缩小尺寸: <#zc_image_width#>
分别引用 c_custom.asp及c_option.asp 中相应数据,如<#zc_blog_version#> 引用:zc_blog_version (c_option.asp),可于后台网站设置中更改其内容.

2.语言资源区(language/simpchinese.asp)
zc_msg001-zc_msgxxx
引用:<#zc_msgxxx#>
这里xxx就要引用的字符串资源的最后3位数字
 
3.文件缓存区
分别引用程序include目录下的文件内容(以下列出默认的14个)
 
分类目录: <#cache_include_catalog#>
用户目录: <#cache_include_authors#>
tags     :  <#cache_include_tags#>
站点统计: <#cache_include_statistics#>
最近发表: <#cache_include_previous#>
最新评论: <#cache_include_comments#>
最近留言: <#cache_include_guestcomments#>
最近引用: <#cache_include_trackbacks#>
日    历: <#cache_include_calendar#>
文章归档: <#cache_include_archives#>
  导 航 条: <#cache_include_navbar#>
  图标汇集: <#cache_include_misc#>
  友情链接: <#cache_include_link#>
  网站收藏: <#cache_include_favorite#>
在索引重建后自动更新内容;无*标签内容可通过修改 include 目录下的相应文件予以定义。
1.7中可以引用include下的任意文件,使用<#cache_include_文件名(全大写且不要后缀)#>这种标签( 详细... )

4.文章区
文章基本数据:
编号:    <#article/id#>
链接:    <#article/url#>
权限:    <#article/level#>
标题:    <#article/title#>
摘要:    <#article/intro#>
内容:    <#article/content#>
时间:    <#article/posttime#>
评论数: <#article/commnums#>
浏览数: <#article/viewnums#>
引用数: <#article/trackbacknums#>
引用链接: <#article/trackback_url#>
评论rss:   <#article/commentrss#>
                    <#article/commentposturl#>
                    <#article/pretrackback_url#>
                    <#article/trackbackkey#>
                    <#article/commentkey#>
别名:           <#article/staticname#>
tags(非链接): <#article/tagtoname#>
第一个tag 名: <#article/firsttagname#>
第一个tag id: <#article/firsttagid#>

文章分类数据:
编号:    <#article/category/id#>
名称:    <#article/category/name#>
序号:    <#article/category/order#>
文章数: <#article/category/count#>
链接:    <#article/category/url#>
别名:    <#article/category/staticname#>
文章作者数据:
编号:    <#article/author/id#>
名称:    <#article/author/name#>
权限:    <#article/author/level#>
email:   <#article/author/email#>
主页:    <#article/author/homepage#>
文章数: <#article/author/count#>
链接:    <#article/author/url#>
别名:    <#article/author/staticname#>
文章tag数据(b_article_tag.html):
编号:     <#article/tag/id#>
名称:     <#article/tag/name#>
摘要:     <#article/tag/intro#>
文章数: <#article/tag/count#>
链接:     <#article/tag/url#>
encode:<#article/tag/encodename#>
文章评论数据(b_article_comment.html):
编号:    <#article/comment/id#>
名称:    <#article/comment/name#>
网址:    <#article/comment/url#>
           <#article/comment/urlencoder#>(干扰处理过的url,防spam)
email:   <#article/comment/email#>
时间:    <#article/comment/posttime#>
内容:    <#article/comment/content#>
序号:    <#article/comment/count#>
作者编号:    <#article/comment/authorid#>
第一联系(网址优先):    <#article/comment/firstcontact#>
email的md5码:            <#article/comment/emailmd5#>
引用文章数据(b_article_trackback.html):
编号:    <#article/trackback/id#>
名称:    <#article/trackback/name#>
网址:    <#article/trackback/url#>
标题:    <#article/trackback/tile#>
时间:    <#article/trackback/posttime#>
内容:    <#article/trackback/content#>
序号:    <#article/trackback/count#>
相关文章数据(b_article_mutuality.html):
编号:    <#article/mutuality/id#>
网址:    <#article/mutuality/url#>
时间:    <#article/mutuality/posttime#>
名称:    <#article/mutuality/name#>
文章页“前后篇文章导航条”数据:
上一篇文章地址: <#article/nav_l/url#>      (b_article_nvabar_l.html)
上一篇文章标题: <#article/nav_l/name#>
下一篇文章地址: <#article/nav_r/url#>     (b_article_nvabar_r.html)
下一篇文章标题: <#article/nav_r/name#>
文章生成时间( 详细... ):
<#article/posttime/longdate#>
<#article/posttime/shortdate#>
<#article/posttime/longtime#>
<#article/posttime/shorttime#>
<#article/posttime/year#>
<#article/posttime/month#>
<#article/posttime/monthname#>
<#article/posttime/day#>
<#article/posttime/weekday#>
<#article/posttime/weekdayname#>
<#article/posttime/hour#>
<#article/posttime/minute#>
<#article/posttime/second#>

5.文章列表区
多页排列的分页条:
<#template:pagebar#>:由default.html和catalog.html引用
<#pagebar/page/url#>:在b_pagebar.html中定义和修改
<#pagebar/page/number#>:在b_pagebar.html中定义和修改

只有“前一页”和“后一页”的分页条:
<#template:pagebar_next#>:由default.html和catalog.html引用
<#template:pagebar_previous#>:由default.html和catalog.html引用

只由catalog.html使用的标签:
<#articlelist/author/id#>
<#articlelist/tags/id#>
<#articlelist/category/id#>
<#articlelist/date/year#>
<#articlelist/date/month#>
<#articlelist/date/day#>
<#articlelist/date/shortdate#>

由default.html和catalog.html使用的标签:
<#articlelist/page/now#>
<#articlelist/page/all#>

6.特殊的标签
<#blog_create_time#>:文件生成时的当前时间,可以放在default.html,single.html等页
<#blogtitle#>:当前页的标题
如果在default.html就是blog的子标题,在single.html就是文章的标题,在catalog.html就是相关分类等的名称,等等
以上标签列表为有限集合,超出以上列表系统将不会替换。
本文来源于飞月博客 http://www.flymoonblog.cn/blog/ , 原文地址:http://www.flymoonblog.cn/blog/post/29.html

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。



  • 订阅我的博客:订阅我的博客
  • 通过Google订阅本站
  • 通过鲜果订阅本站
  • 通过抓虾订阅本站
  • 通过bloglines订阅本站
  • 通过飞豆订阅本站

日历

最新评论及回复

最近发表

Powered By Z-Blog 1.8 Spirit Build 80722

Copyright © 2006-2008 Antivirus Security Blog.All rights Reserved.