Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
我实现的BlogType与ArticleType类
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Lance  
View profile   Translate to Translated (View Original)
 More options Jul 12 2005, 8:41 am
From: Lance <lancelij...@gmail.com>
Date: Tue, 12 Jul 2005 20:41:58 +0800
Local: Tues, Jul 12 2005 8:41 am
Subject: 我实现的BlogType与ArticleType类

hi, plog users,

这里是我写的 BlogType 和 ArticleType 类,实现 blog 和 article 的全局分类,有兴趣的朋友可以参考。

for pLog 1.0 release

需要在数据库中添加四个表,但写好的文章不在手边,明天补上。 :)
--
Lance

  blogtype.class.php
36K Download

  articletype.class.php
40K Download

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
阿门  
View profile   Translate to Translated (View Original)
 More options Jul 12 2005, 10:01 pm
From: "阿门" <awp...@gmail.com>
Date: Tue, 12 Jul 2005 19:01:14 -0700
Local: Tues, Jul 12 2005 10:01 pm
Subject: Re: 我实现的BlogType与ArticleType类

Lance 写道:

> hi, plog users,

> 这里是我写的 BlogType 和 ArticleType 类,实现 blog 和 article 的全局分类,有兴趣的朋友可以参考。

> for pLog 1.0 release

> 需要在数据库中添加四个表,但写好的文章不在手边,明天补上。 :)
> --
> Lance

有使用方法吗?

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Lance  
View profile   Translate to Translated (View Original)
 More options Jul 13 2005, 12:53 am
From: "Lance" <lancelij...@gmail.com>
Date: Wed, 13 Jul 2005 04:53:55 -0000
Local: Wed, Jul 13 2005 12:53 am
Subject: Re: 我实现的BlogType与ArticleType类
########################################################
#
# 新建数据库字段说明
#
# 创建于:2005-6-21
# 创建者:Lance lancelij...@gmail.com
#
# 最后修改时间:2005-7-5
# 修改人:Lance
#
# 本结构基于 pLog Release 1.0 标准数据库结构扩充
#
# 6-22
# + plog_blogtype 添加字段 status
# - plog_blogtype 删除字段 expired
#
# 6-24
# + 添加 plog_articletype 和 plog_articletypeindex 表
#
# 6-29
# + plog_blogtype 和 plog_articletype 同时添加 description 和
tags 字段
#
# 7-5
# ! 修改系统表 plog_blogs, 添加字段 tags. alter table
plog_blogs add column tags varchar(200) not null;
#
########################################################

########################################################
#       1.1     Blog 分类表  plog_blogtype
########################################################

blogtypeid              分类ID                INT UNSIGNED
blogtypename            名称          CHAR(50)
blogtypepid             父分类ID     INT UNSIGNED            # 根分类时父分类为 0
blogtypepname           父分类名称 CHAR(50)
applyuser               申请人用户名      CHAR(20)                #
系统定义分类此字段为 admin,对应 plog_users.user
ordernum                排序          INT UNSIGNED            # 父分类相同时决定输出排序
status                  状态          TINYINT UNSIGNED        #
系统分类为0,用户分类为1, 10 未审核, 20 已删除
description             描述          CHAR(200)
tags                    标记          CHAR(100)

CREATE TABLE plog_blogtype (
  blogtypeid INT UNSIGNED NOT NULL PRIMARY KEY auto_increment,
  blogtypename CHAR(50) NOT NULL,
  blogtypepid INT UNSIGNED NOT NULL,
  blogtypepname CHAR(50) NOT NULL,
  applyuser CHAR(20) NOT NULL,
  ordernum INT UNSIGNED NOT NULL,
  status TINYINT UNSIGNED NOT NULL,
  description CHAR(200) NOT NULL,
  tags CHAR(100) NOT NULL,
  INDEX (blogtypepid),
  INDEX (applyuser),
  INDEX (ordernum)
);

########################################################
#       1.2     blog分类检索表     plog_blogtypeindex
########################################################

blogtypeid              分类ID                INT UNSIGNED            # 引用 plog_blogtype.blogtypeid
blogid                  俱乐部id     INT unsigned            # 引用 plog_blogs.id

CREATE TABLE plog_blogtypeindex (
  blogtypeid INT UNSIGNED NOT NULL,
  blogid INT UNSIGNED NOT NULL,
  INDEX (blogid),
  INDEX (blogtypeid)
);

########################################################
#       2.1     Article 分类表       plog_articletype
########################################################

articletypeid           分类ID                INT UNSIGNED
articletypename         名称          CHAR(50)
articletypepid          父分类ID     INT UNSIGNED            # 根分类时父分类为 0
articletypepname        父分类名称 CHAR(50)
applyuser               申请人用户名      CHAR(20)                #
系统定义分类此字段为 admin,对应 plog_users.user
expired                 过期时间    date
ordernum                排序          INT UNSIGNED            # 父分类相同时决定输出排序
status                  状态          TINYINT UNSIGNED        # 系统分类为0,用户分类为1
description             描述          CHAR(200)
tags                    标记          CHAR(100)

CREATE TABLE plog_articletype (
  articletypeid INT UNSIGNED NOT NULL PRIMARY KEY auto_increment,
  articletypename CHAR(50) NOT NULL,
  articletypepid INT UNSIGNED NOT NULL,
  articletypepname CHAR(50) NOT NULL,
  applyuser CHAR(20) NOT NULL,
  expired date NOT NULL DEFAULT "9999-12-31",
  ordernum INT UNSIGNED NOT NULL,
  status TINYINT UNSIGNED NOT NULL,
  description CHAR(200) NOT NULL,
  tags CHAR(100) NOT NULL,
  INDEX (articletypepid),
  INDEX (applyuser),
  INDEX (expired),
  INDEX (ordernum)
);

########################################################
#       2.2     article 分类检索表 plog_articletypeindex
########################################################

articletypeid           分类ID                INT UNSIGNED            # 引用
plog_articletype.articletypeid
articleid               俱乐部id     INT unsigned            # 引用 plog_articles.id

CREATE TABLE plog_articletypeindex (
  articletypeid INT UNSIGNED NOT NULL,
  articleid INT UNSIGNED NOT NULL,
  INDEX (articleid),
  INDEX (articletypeid)
);


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Lance  
View profile   Translate to Translated (View Original)
 More options Jul 13 2005, 1:14 am
From: Lance <lancelij...@gmail.com>
Date: Wed, 13 Jul 2005 13:14:14 +0800
Local: Wed, Jul 13 2005 1:14 am
Subject: Re: 我实现的BlogType与ArticleType类

发几个例子吧,放在 admin 下编辑 blogtype 的

On 7/13/05, 阿门 <awp...@gmail.com> wrote:

> Lance 写道:
> > hi, plog users,

> > 这里是我写的 BlogType 和 ArticleType 类,实现 blog 和 article 的全局分类,有兴趣的朋友可以参考。

> > for pLog 1.0 release

> > 需要在数据库中添加四个表,但写好的文章不在手边,明天补上。 :)
> > --
> > Lance

> 有使用方法吗?

--
Lance

  adminblogtypeaction.class.php
< 1K Download

  adminblogtypeview.class.php
1K Download

  adminupdateblogtypeaction.class.php
6K Download

  blogtype.template
5K Download

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark Wu  
View profile   Translate to Translated (View Original)
 More options Jul 13 2005, 5:15 am
From: "Mark Wu" <markpl...@gmail.com>
Date: Wed, 13 Jul 2005 02:15:16 -0700
Local: Wed, Jul 13 2005 5:15 am
Subject: Re: 我实现的BlogType与ArticleType类
Hi Lance:

請參考一下:  http://bugs.plogworld.net/view.php?id=467

Ameng 已經把 Global Blog Category 以及 Global Article Category 都
implement 了。

Mark


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
zhuxz@fjii.com  
View profile   Translate to Translated (View Original)
 More options Aug 9 2005, 4:55 am
From: "zh...@fjii.com" <zh...@fjii.com>
Date: Tue, 09 Aug 2005 01:55:09 -0700
Local: Tues, Aug 9 2005 4:55 am
Subject: Re: 我实现的BlogType与ArticleType类

Mark  Wu wrote:
> Hi Lance:

> 請參考一下:  http://bugs.plogworld.net/view.php?id=467

> Ameng 已經把 Global Blog Category 以及 Global Article Category 都
> implement 了。

> Mark

你的方法怎么使用!能不能说明下

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark Wu  
View profile   Translate to Translated (View Original)
 More options Aug 9 2005, 5:27 am
From: "Mark Wu" <markpl...@gmail.com>
Date: Tue, 9 Aug 2005 17:27:25 +0800
Local: Tues, Aug 9 2005 5:27 am
Subject: RE: 我实现的BlogType与ArticleType类
這是在 1.1 上的 implementation 。所以如果你要先用。請自行把 code 重 1.1 抽離
然後加到 1.0.2 上。

至於如何取得 1.1 的 code ,請參考 http://wiki.plogworld.org.tw

Mark


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google