Zblog tags and notes collection finishing

Source: Internet
Author: User
Tags alias asp blog catalog change class code comment

Intermediary trading SEO diagnostic Taobao guest hosting technology hall

Many people use zblog encountered many problems, I hope a lot of expansion. For those who modify and enrich the zblog program, its variables are required. It has a very large variable system, if one by one to find, exhausted individuals. I now give these posts out, I hope for everyone useful.

<Zblog tags and notes>:

This want to modify the length of the recently published piece of the display word, looking for a long time did not find where to modify, where these tags is still useful, the first paste, for later review.
Template class / TEMPLATE
Default.html
Home Display Templates, References b_article-istop.html Show Top Articles, References b_article-multi.html Show Digests, References b_pagebar.html Show Paging Strips
Single.html
Log page display template, reference b_article-single.html display log
3. catalog.html
Category page display template, similar to the home page template
4. search.html
Search the page template to display the search page
5. tags.html
Tab Template, showing TagCloud
6. b_article-guestbook.html
Message page template
7. b_pagebar.html
Page at the bottom of the page template, you can change the page style
8. b_article-multi.html
Home Abstract Articles Template
9. b_article-single.html
Log page article template, respectively quoted b_article_trackback.html, b_article_mutuality.html, b_article_comment.html, b_article_commentpost.html list of citations after the reference list, related articles, comments, comments, posting box
10. b_article-istop.html
Top article template
11. b_article_nvabar_l.html
Log page article navigation, showing the "previous" log link
12. b_article_nvabar_l.html
Log page article navigation, showing the "next" log link
13. b_article_tag.html
Display style of each tag
14. b_article_trackback.html
Each reference announcement shows the template
15. b_article_mutuality.html
Each related article shows the template
16. b_article_comment.html
Each comment shows the template
17. b_article_commentpost.html
Comment post box template
18. b_article_commentpost-verify.html
Comment verification code display style

Label categories:
1 system constant area (c_custom.asp, c_option.asp)
Current version number: <# ZC_BLOG_VERSION #>
Blog page language: <# ZC_BLOG_LANGUAGE #> (default is zh-CN)
Blog URL: <# ZC_BLOG_HOST #>
Blog Title: <# ZC_BLOG_TITLE #> (Displayed in browser title bar)
Blog Description: <# ZC_BLOG_SUBTITLE #>
Blog Name: <# ZC_BLOG_NAME #> (Show in the page)
Blog subtitle: <# ZC_BLOG_SUB_NAME #>
Interface Style Name: <# ZC_BLOG_CSS #>
Copyright: <# ZC_BLOG_COPYRIGHT #>
Blog host name: <# ZC_BLOG_MASTER #>
The maximum number of words: <# ZC_CONTENT_MAX #>
Expression string: <# ZC_EMOTICONS_FILENAME #>
Emoticon size: <# ZC_EMOTICONS_FILESIZE #>
Message text content: <# ZC_GUESTBOOK_CONTENT #>
Blog Unique ID: <# ZC_BLOG_CLSID #> (Changing this ID may be anti-machine spam)
Blog time zone: <# ZC_TIME_ZONE #> (default is +0800, ie Beijing time)
Image automatically shrinks in size: <# ZC_IMAGE_WIDTH #>
Refer to the corresponding data in c_custom.asp and c_option.asp respectively, such as <# ZC_BLOG_VERSION #> Reference: ZC_BLOG_VERSION (c_option.asp), which can be changed in the background website settings.

2. Language Resource Area (LANGUAGE / SimpChinese.asp)
ZC_MSG001-ZC_MSGxxx
Reference: <# ZC_MSGxxx #>
Where xxx is the last 3 digits of the string resource to reference

3. The file cache are referenced program INCLUDE directory of the contents of the file directory: <# CACHE_INCLUDE_CATALOG #>
User Directory: <# CACHE_INCLUDE_AUTHORS #>
tags: <# CACHE_INCLUDE_TAGS #>
Site Statistics: <# CACHE_INCLUDE_STATISTICS #>
Recently Posted: <# CACHE_INCLUDE_PREVIOUS #>
Navigation bar: <# CACHE_INCLUDE_NAVBAR #>
Icon Collection: <# CACHE_INCLUDE_MISC #>
Friend Link: <# CACHE_INCLUDE_LINK #>
Website Collection: <# CACHE_INCLUDE_FAVORITE #>
Latest comments: <# CACHE_INCLUDE_COMMENTS #>
Recent posts: <# CACHE_INCLUDE_GUESTCOMMENTS #>
Recently quoted: <# CACHE_INCLUDE_TRACKBACKS #>
Calendar: <# CACHE_INCLUDE_CALENDAR #>
Article archive: <# CACHE_INCLUDE_ARCHIVES #>
1.7 You can reference any file under INCLUDE using the <#CACHE_INCLUDE_ filename (all uppercase without suffix) #> This tag (more ...)

Article area article basic data:
Id: <# article / id #>
Link: <# article / url #>
Permissions: <# article / level #>
Title: <# article / title #>
Summary: <# article / intro #>
Content: <# article / content #>
Time: <# article / posttime #>
Comments: <# article / commnums #>
Views: <# article / viewnums #>
Number of citations: <# article / trackbacknums #>
Reference link: <# article / trackback_url #>
Comment RSS: <# article / commentrss #>
<# article / commentposturl #>
<# article / pretrackback_url #>
<# article / trackbackkey #>
<# article / commentkey #>
Alias: <# article / staticname #>
tags (not linked): <# article / tagtoname #>
<# article / firsttagname #>
<# article / firsttagid #>

Article classification data:
Id: <# article / category / id #>
Name: <# article / category / name #>
Serial number: <# article / category / order #>
Articles: <# article / category / count #>
Link: <# article / category / url #>
Alias: <# article / category / staticname #>
Article author data:
Id: <# article / author / id #>
Name: <# article / author / name #>
Permissions: <# article / author / level #>
Email: <# article / author / email #>
Homepage: <# article / author / homepage #>
Articles: <# article / author / count #>
Link: <# article / author / url #>
Alias: <# article / author / staticname #>
Article Tag Data (b_article_tag.html):
Id: <# article / tag / id #>
Name: <# article / tag / name #>
Summary: <# article / tag / intro #>
Articles: <# article / tag / count #>
Link: <# article / tag / url #>
Encode: <# article / tag / encodename #>
Article comment data (b_article_comment.html):
Id: <# article / comment / id #>
Name: <# article / comment / name #>
URL: <# article / comment / url #>
<# article / comment / urlencoder #> (jammed URL, anti-spam)
Email: <# article / comment / email #>
Time: <# article / comment / posttime #>
Content: <# article / comment / content #>
Serial number: <# article / comment / count #>
Author ID: <# article / comment / authorid #>
First contact (URL first): <# article / comment / firstcontact #>
Email MD5 code: <# article / comment / emailmd5 #>
Citing article data (b_article_trackback.html):
Id: <# article / trackback / id #>
Name: <# article / trackback / name #>
URL: <# article / trackback / url #>
Title: <# article / trackback / tile #>
Time: <# article / trackback / posttime #>
Content: <# article / trackback / content #>
Serial number: <# article / trackback / count #>
Related Article Data (b_article_mutuality.html):
Id: <# article / mutuality / id #>
URL: <# article / mutuality / url #>
Time: <# article / mutuality / posttime #>
Name: <# article / mutuality / name #>
Article page "before and after articles article navigation bar" data:
<# article / nav_l / url #>
<# article / nav_l / name #>
<# article / nav_r / url #>
<# article / nav_r / name #>
Article Generation Time (Details ...):
<# 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. Article list area page layout of the paging bar:
<#template: pagebar #>: referenced by default.html and catalog.html
<# pagebar / page / url #>: Defined and modified in b_pagebar.html
<# pagebar / page / number #>: Defined and modified in b_pagebar.html

Page tabs with "previous page" and "next page" only:
<#template: pagebar_next #>: referenced by default.html and catalog.html
<#template: pagebar_previous #>: referenced by default.html and catalog.html

Tags used by catalog.html only:
<# articlelist / author / id #>
<# articlelist / tags / id #>
<# articlelist / category / id #>
<# articlelist / date / year #>
<# articlelist / date / month #>
<# articlelist / date / day #>
<# articlelist / date / shortdate #>

Tags used by default.html and catalog.html:
<# articlelist / page / now #>
<# articlelist / page / all #>

6. Special labels
<# BLOG_CREATE_TIME #>: The current time when the file was generated, can be placed on default.html, single.html, etc.
<# BlogTitle #>: The title of the current page if BLOG subtitle in default.html, single.html is the title of the article, catalog.html is the name of the relevant classification, and so on.
Const ZC_CONTENT_MAX = 1000 'The maximum number of words
Const ZC_TB_EXCERPT_MAX = 250 'Automatically truncates the number of words in the digest (valid when the digest is empty)
Const ZC_RECENT_COMMENT_WORD_MAX = 16 'Message, comment and reference in each sidebar are displayed in the sidebar. If the number exceeds 14 (16-2) + "..."
Const ZC_TEMPLATE_DIRECTORY = "template" Template file directory, the default is TEMPLATE (case insensitive)
Const ZC_UPLOAD_DIRECTORY = "upload" 'upload attachments directory other.
<! - Calendar
<div class = "function" id = "divCalendar">
<h3> <# ZC_MSG050 #> </ h3>
<# CACHE_INCLUDE_CALENDAR #>
</ div>
->
<! - Control Panel
<div class = "function" id = "divContorPanel">
<h3> <# ZC_MSG025 #> </ h3>
<ul>
<li> <a href="cmd.asp?act=login"> [<# ZC_MSG009 #>] </a> <a href="cmd.asp?act=vrs"> [<# ZC_MSG021 #>] < / a> </ li>
</ ul>
</ div>
->
<! - Website Directory
<div class = "function" id = "divCatalog">
<h3> <# ZC_MSG026 #> </ h3>
<ul>
<# CACHE_INCLUDE_CATALOG #>
</ ul>
</ div>
->
<! - the latest message
<div class = "function" id = "divComments">
<h3> <# ZC_MSG027 #> </ h3>
<ul>
<# CACHE_INCLUDE_COMMENTS #>
</ ul>
</ div>
->
<! - Recently quoted
<div class = "function" id = "divTrackbacks">
<h3> <# ZC_MSG154 #> </ h3>
<ul>
<# CACHE_INCLUDE_TRACKBACKS #>
</ ul>
</ div>
->
<! - Archives
<div class = "function" id = "divArchives">
<h3> <# ZC_MSG028 #> </ h3>
<ul>
<# CACHE_INCLUDE_ARCHIVES #>
</ ul>
</ div>
->
<! - Search
<div class = "function" id = "divSearchPanel">
<h3> <# ZC_MSG085 #> </ h3>
<ul>
<li>
<form method = "post" action = "<# ZC_BLOG_HOST #> cmd.asp? act = Search">
<input type = "text" name = "edtSearch" id = "edtSearch" size = "12" />
<input type = "submit" value = "<# ZC_MSG087 #>" name = "btnPost" id = "btnPost" />
</ form>
</ li>
</ ul>
</ div>
->
<! - site statistics
<div class = "function" id = "divStatistics">
<h3> <# ZC_MSG029 #> </ h3>
<ul>
<# CACHE_INCLUDE_STATISTICS #>
</ ul>
</ div>
->
<! - Website Collection
<div class = "function" id = "divFavorites">
<h3> <# ZC_MSG030 #> </ h3>
<ul>
<# CACHE_INCLUDE_FAVORITE #>
</ ul>
</ div>
->
<! - Friendship link
<div class = "function" id = "divLinkage">
<h3> <# ZC_MSG031 #> </ h3>
<ul>
<# CACHE_INCLUDE_LINK #>
</ ul>
</ div>
->
<! - Icon collection is also RSS or something
<div class = "function" id = "divMisc">
<h3> <# ZC_MSG039 #> </ h3>
<ul>
<# CACHE_INCLUDE_MISC #>
</ ul>
</ div>
->
<! - Recently published
<div class = "function" id = "divPrevious">
<h3> <# ZC_MSG032 #> </ h3>
<ul id = "ulPrevious">
<script language = "JavaScript" type = "text / javascript"> strBatchInculde + = "ulPrevious = previous," </ script>
</ ul>
</ div>
->
<! - TAGs
<div class = "function" id = "divTags">
<h3> <# ZC_MSG138 #> </ h3>
<ul>
<# CACHE_INCLUDE_TAGS #>
</ ul>
</ div>
->
<! - Custom Tags ->
<! - AD
<div class = "function" id = "divZAD">
<script language = "JavaScript" src = "<# ZC_BLOG_HOST #> script / flashview.js" type = "text / javascript"> </ script>
</ div>
->
<! - TOP10Article
<div class = "function">
<h3> <# ZC_MSG265 #> </ h3>
<ul>
<script language = "JavaScript" src = "<# ZC_BLOG_HOST #> script / TopArticle.js" type = "text / javascript"> </ script>
</ ul>
</ div>
->
1. CSS definition of the calendar CSS definition of the calendar system settings, does not change with the template changes.
The calendar as a whole is nested by two div tags, each of which is composed of p tags:
The year and month tags are p class = "y"
The week's label is p class = "w"
The date of the label is p class = "d"
The date tag of the article is p class = "yd"
Blank part of the calendar fill the label is p class = "nd"
Is the current day will be added in the class "cd"

2. About the definition of the RSS icon to the left of the Site Directory block Small RSS is surrounded by <span class = "feed-icon">, which you can hide in the CSS span.feed-cion {display: none;} The number of articles to the right of the catalog is surrounded by <span class = "article-nums">, and can also be hidden with CSS

3. Definition of the date to the left of the Most Recently Posted block Month / Day is surrounded by <span class = "article-date">

4. CSS definition of simple pager The "earlier article" and the "post article" are respectively defined by the pagebar-previous and pagebar-next categories of the span tag. You can use CSS to hide the text and replace it with a picture.


Log page file generation time:
<# BLOG_CREATE_TIME #> 2007-1-17 19:21:26
Log published time:
<# article / posttime / longdate #> January 13, 2007
<# article / posttime / shortdate #> 2007-1-13
<# article / posttime / longtime #> 15:31:13
<# article / posttime / shorttime #> 15:31
<# article / posttime / year #> 2007
<# article / posttime / month #> 1
<# article / posttime / monthname #> Jan // LANGUAGE file corresponds to ZVA_Month_Abbr (12)
<# article / posttime / day #> 13
<# article / posttime / weekday #> 7
<# article / posttime / weekdayname #> Sat // LANGUAGE file corresponding to ZVA_Week_Abbr (7)
<# article / posttime / hour #> 15
<# article / posttime / minute #> 31
<# article / posttime / second #> 13
hint:
How to get the Chinese week label? Change the values ​​of ZVA_Week_Abbr (1 ... 7) in LANGUAGE \ SimpChinese.asp to Chinese (one to seven) and call in the format of "week <# article / posttime / weekdayname #>".
1.b_article-guestbook.html is a new template for 1.7, used to display the message. If you use the theme without b_article-guestbook.html file, the system will automatically use b_article-single.html.

<# Article / content #> is not the same as using <# article / content #> with <# article / in # #> intro #> Only message board body.

3. How to add a new message paging bar? For the default template, add the following code can be, other templates, please apply flexibly.

[Copy to clipboard] CODE:
<div class = "post pagebar"> <# ZC_MSG042 #>: <# template: pagebar #> </ div>
4.guestbook.asp will read single.html as the page outer frame template, if you want to create a new message board template, you can modify guestbook.asp file to read your specified outer frame template.
5. How to reference the "recent message" in the home page, add "<# CACHE_INCLUDE_GUESTCOMMENTS #>" in the homepage default.html template

This article is provided by (www.fengliuqishi.com.cn), reproduced please keep this chain.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.