仰望麦地---我是人,生命短暂,但我仰望,星斗为书卷

升级了我的6680

11月 3rd, 2007 by 麦地

66801.jpg

今天升级了我的6680,从4.04.07升级到5.04.40

麦地社区启用新的域名

10月 31st, 2007 by 麦地

maidi.us

这是一个直接指向veryid.com的域名。为了方便大家更好的记忆。我是这样认为的:maidi.us 应该说是 音似 麦地社区,而veryid.com是神似。不管怎么样,大家记着方面是最重要的。不过我们不可能去弄个6.cn来。

在麦地社区我写给大家的

10月 27th, 2007 by 麦地

我有一个梦想
10月 27th, 2007 by 麦地
标签: none

常常有人问我,你整天在做什么?我说,弄我的网站。他一般会接着问:能赚钱么?我说,能,但我一分没赚到过。

他会不屑了,说,那你弄什么啊,赚不到钱。于是,我郁闷了。

我在想,我为什么要赚钱,为什么在首页贴上3、4个广告,弄的个文章似的,去欺骗用户,到目前为止,我没那个兴趣。曾经,我在xiaonei.name 首页放置过广告,仅仅就几个广告,发现每天也有N$的收入。我可厌倦了。不想每天守着一个骗人的页面去查看收入。于是我撤掉了所有的广告。我也失去了那些收入。我很穷,穷的你不能想象。可我对一些东西实在是提不起兴趣。

或许,我的梦想是这样的: 更多内容»

PR系统数据更新

10月 27th, 2007 by 麦地

今天早上发现几个站的pr开始有数值了。(之前都是零,veryid.com是从5降到0的)。麦地社区(www.veryid.com)现在为2,这个博客还有另一个站为1.虽然还是低。不过总算有点安慰了。

最近想汉化的插件

10月 24th, 2007 by 麦地

wp-sticky。
wp-postratings。
wp-polls。
wp-dbmanager。

关于xiaonei.name的建设

10月 23rd, 2007 by 麦地

这个问题困扰了我很久,我找不到好的办法去发展它,现在只能顺其自然。也希望能找到志同道合的朋友和我一起。

写给elva

10月 20th, 2007 by 麦地

在以前的某一个时刻,我决定和你相爱,一直牵手到老。此后,我不去表达什么,爱在我的心里深藏。

在心底,最深的角落,总能听见你的呼唤。那个要写诗的女孩,那个对我喃喃的女孩,而此刻,时间总会静止,或许我不会说话,可爱情总会积淀,越发的厚实。我爱你

simple tags1.1的相关日志功能

10月 20th, 2007 by 麦地

simple tags1.1提供了一个函数,st_related_posts(””);这个函数可以添加在文章的结尾处,根据这篇文章的tags,来获取与之相同tags的一组文章的标题列表,从而能帮助读者快速的找到相关信息。
在管理后台,即标签-选项中,我们可以复选此功能,但会在主页面,单个文章页面,文章后都会出现这个相关日志列表,那么,怎么自己添加这个函数呢?我们以只在单个文章下添加为例。

一般的主题文件,simple.php控制着单个页面的显示,打开 single.php,找到文章的结尾处添加
<?php st_related_posts(‘number=10&title=&include_page=false&xformat=<a href=”%permalink%” title=”%title% (%date%)”>%title%</a>’); ?>即可。具体的函数值参考下面,或是作者的主页。

而有些不是在single.php下 添加,如我用的k2,是在theloop.php下控制的。

找到

<div class=”entry-content”>
<?php the_content(sprintf(__(’Continue reading \’%s\”, ‘k2_domain’), the_title(”, ”, false))); ?>

<?php wp_link_pages(’before=<p class=”page-links”><strong>’ . __(’Pages:’,’k2_domain’) . ‘</strong>&after=</p>’); ?>

<?php if ((is_single() or is_day()) ) { ?>
<?php st_related_posts(’number=10&title=相关文章&nopoststext=暂时没

有 :(&include_page=false&xformat=<a href=”%permalink%” title=”%title% (%date%)”>%title%</a>’); ?>
<?php } ?>

</div> <!– .entry-content –>

删除线所标志的,即为我添加的。大家可以试试。

函数:

  1. <?php st_related_posts(“”); ?>

函数值:

  1. ‘number’ => 5,

  2. ‘orderby’ => ‘counter’,

  3. ‘order’ => ‘DESC’,

  4. ‘format’ => ‘list’,

  5. ‘include_page’ => true,

  6. ‘exclude_posts’ => ,

  7. ‘exclude_tags’ => ,

  8. ‘title’ => __(‘<h4>Related posts</h4>’, ’simpletags’),

  9. ‘nopoststext’ => __(‘No related posts.’, ’simpletags’),

  10. ‘dateformat’ => $this->dateformat,

  11. ‘xformat’ => __(‘<a href=”%permalink%” title=”%title% (%date%)”>%title%</a> (%commentcount%)’, ’simpletags’)

举例:

We want to show the first 10 related article without title, without pages and without comments count.

  1. <?php st_related_posts(‘number=10&title=&include_page=false&xformat=<a href=”%permalink%” title=”%title% (%date%)”>%title%</a>’); ?>

参数说明:
  • number
    (integer) Number of articles to show
  • orderby
    (string) Key of tags sorting. Valid values are :

    • counter - (default) by number of common tags (most relevance)
    • post_date - by publication’s date
    • post_title - by title
    • random - random
  • order
    (string) Order of sorting. Valid values are :

    • ASC - ascending
    • DESC - descending
  • format
    (string) show tags as non ordered list UL/LI

    • flat - (Default) Articles are separated with spaces
    • list - articles are inside non ordered lists containing class=’related_posts’
    • array -articles are inside a PHP array (use it with st_get_related_posts())
  • include_page
    (boolean) “true” to add pages, “false” only for posts
  • exclude_posts
    (string) Separate articles ID to exclude with commas
  • exclude_tags
    (string) Separate tags ID to exclude with commas
  • title
    (string) Specify the positioned title before the list
  • nopoststext
    (string) Specify the text to show when there is no related post
  • dateformat
    (string) Specify the date format. Same format as PHP date function
  • xformat
    (string) Extended links format. Available Markups :

    • %post_date% - Replaced by the date of the article
    • %post_permalink% - Replaced by the permalink of the link
    • %post_title% - Replaced by the title of the article
    • %post_comment% - Replaced by the comments count of the article
    • %post_tagcount% - Replaced by the number of common tags
    • %post_id% - Replaced by the ID of the article
    • %post_relatedtags% - Replaced by common tag list

simple tags 1.1发布

10月 19th, 2007 by 麦地

应该说1.1版本有了比较明显的提升,因为可以根据tags的相关性来判断生成一个相关日志列表了。所以就不用以前的一些显示相关日志的插件了,一个simple tags足矣。

重新装了2遍

10月 19th, 2007 by 麦地

难道是为了完美么?唉