DFdou's Blog Life is short,Be yourself.

1712/090

WordPress – Gadgetizer Theme Released

来自http://designdisease.com的主题总是很精致,这次带来的是Gadgetizer Theme:

Gadgetizer

点击查看在线Demo
下边是来自官方那个的介绍:

Gadgetizer is exactly what it sounds like it would be about. Gadgets. We wanted a simple theme that focused on the products themselves, so we have a big Flickr area in the footer section, as well as a mashup of images right below the featured post. As always, the front page has an easy to use “feature” section so you can easily put on display your most in-depth posts. You can even slot in a nice picture and a post excerpt to accompany the headline by editing the feature-image custom field and setting the category to “Featured”.

We kept it pretty similar in color scheme to the last design, with the colors white, blue, and green. Also we have included the psd files for the logo, robo girl, and for the gadgets snapshots.

The theme is fully widgetized. A special feature of this theme as we use in many of our themes is the logo changer. You can use the default WordPress setting (“blog name”) or you can use your own logo. Upload your logo in the root folder of Gadgetizer theme and name it logo.png or you can use the logo.psd as a template. You will find the source in the root folder of the Tipz theme.

This theme also has a large footer bar that includes a links section, Flickr photostream, and latest comments section. Because some people might not like this option, we also included in the theme options the ability to have this section not show up.

The theme is using a few plugins, with some already integrated into functions.php, so there is no need to install them. The only plugin you need to install manually is FlickrRSS.  (FlickrRSS plugin is in the theme folder) (see the demo).

gadgetizer-2

Tagged as: No Comments
1711/090

WordPress-AppCloud主题

推荐个主题,AppCloud:
AppCloud
是商城类型的模板,看起来改造成自己用的模板也还不错,有兴趣的可以看下,不过记得看下版权,版权啊版权。
Demo地址:http://demo.icreativelabs.com/ecommerce/
Download地址:http://portfolio.icreativelabs.com/wp-content/plugins/download-monitor/download.php?id=Download+Appcloud

2109/090

LapOfLuxury Theme Released

designdisease每次出品的Theme都比较经典,这次是LapOfLuxury
lapofluxury1
Demo地址:http://www.lapofluxury.com/

Tagged as: No Comments
2906/090

WordPress-Theme的制作

以下内容建立在有部分HTML基础下,如果有疑问可以Twitter我,EMAIL我,MSN我,留言我,电话我,etc,但是不要QQ我~
WP的主题所在文件夹为XXX\wp-content\themes\,里边每个包都是目录(如果正常的话)。
先来讲下主题的组成,可以先参考这个文章《WordPress -Template System模板系统》
从该文章中我们可以发现,最最最简单的WP皮肤只需要一个文件,index.php,出于维护和多方合作开发以及修改的简便性来说,个人觉得一个主题至少应该分成以下几个部分:
header.php,里边放HTML的头部,一般是包含文档声明到body开始处,有时候也会包含菜单部分。

< !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>< ?php bloginfo('name'); ?> < ?php if ( is_single() ) { ?> Blog Archive < ?php } ?> < ?php wp_title(); ?></title>
..................
<body>

2206/090

WordPress Themes-BranfordMagazine

BranfordMagazine
这是一款来自der-prinz.com的CMS主题皮肤,比较简单,轻便,可定制性也非常的强。
浏览器兼容性Getested in - Firefox - Internet Explorer 7 - Internet Exporer 6 - Opera
下边是:
Demo+++++++++++Download+++++++++++Support Forum+++++++++++Tutorials

2105/091

WordPress-100 Amazing Free Wordpress Themes for 2009

one room
Learned from 《100 Amazing Free Wordpress Themes for 2009》
The last few days in review for NCRE,so,have not so much time to update blog,and,,oh,maybe i will update something interesting from other website,today's topic,,haha,Free Wordpress Themes,do some one use wordpress too..
WordPress is an easy and free blog system,you can build blog quickly with it.

602/093

WordPress模板标签Template_Tags

做Theme时需要用到的好东东。
官方介绍地址:http://codex.wordpress.org/Template_Tags
Copy一份到这里:

Author tags
Category tags
Date and Time tags

Tag tags
Post Link tags
Links Manager tags

Post tags

While in The Loop, these values can be accessed through the $post object.

Comment tags
Permalink tags
Trackback tags
General tags
Geo tags

Geo features were moved to a plugin implementation with WordPress 1.5. Tags in parentheses are the plugin version.

502/091

Wish List

J 计划部分:
==================================================================================
1.学习Flash Builder4中,准备做个留言板看看。---2010/02/25

F 已完成部分:
==================================================================================
1.丫头的Flash留言板制作---2009/01。(已完成)
地址在这里:丫头的留言板
这是在Qzone调用用的,所以Flash限制了高度和宽度。

2.留言板准备更新成AS3版本,UI也该换一下咯---2009/02/05...(完成于2009/03/22)
AS3版地址:http://nwhy.org/guestbook
AS3-留言板制作全过程-界面篇
AS3-留言板制作全过程-实现篇

3.NamePk,名字PK游戏---2009/03/10...(完成于2009/03/21)
地址在这里:http://nwhy.org/game-namepk-1.html

4.AIR版留言板Admin管理工具---2009/03/21...更换成Flex制作,放弃AIR版留言板管理工具---2009/03/28...(完成于2009/4/2)
地址:http://nwhy.org/guestbook/_admin
至于管理员帐号和密码…当然不能发在这里了

5.做个有趣点的网站---2009/05/05。
可能是晒宠物,也可能是晒内容……地址:OO AND XX's Life
目前该域名改成了工作室,主要用于发布Android App~

6.做点AIR小应用---2009/10/10...(完成于2009/11/7)
目前做了个闹钟小程序,还挺好用的哈,地址:http://nwhy.org/fdev

D 放弃部分:
==================================================================================
1.WordPress同步更新到Fanfou的插件---2009/02/05。
本来还指望自己写一个的,不过今天在WordPress官方发现了这个插件:Fanfouportable,解决了和Fanfou的同步问题。

2.WordPress情侣版Themes制作---2009/02/01。

3.以学习为目的做个涂鸦方式的留言板(AS3+PHP)---2009/06/05。

402/090

WordPress Blogs-“小众软件”appinn.com

appinn.com
如logo所言,小众软件是一个分享免费,小巧,实用,有趣的绿色软件的网站。
另外有一点,这个网站非常注重版权,SO,基本下载的都是7z包,谁叫rar跟zip都是有版权限制的呢……
恩,希望大家向他们学习,尊重知识产权。
小众软件使用的主题是Deep Blue,有兴趣的可以下载测试使用。
Deep Blue

2001/090

WordPress 2.7 Theme Changes

From http://ericulous.com/2008/10/27/wordpress-27-theme-changes/
A comparison of the Default wordpress theme (v2.7 vs v2.6).中文内容是我写的~

Old: div class=”post”
New:div < ?php post_class() ?>

Found: multiple files
Display the classes for the post div e.g class=”sticky category-uncategorized tag-untagged”. Using this function will break your theme on older version of Wordpress (< v2.7). Not using this, however, you are unable to style your individual sticky/category/tag post. Workaround would be to do a if function_exists() check.
v2.7提供了日志固顶功能,因此提供了这个API,需要对固顶日志进行自定义的记得加上。

Old: <?php include (TEMPLATEPATH . '/searchform.php'); ?>
New: < ?php get_search_form(); ?>

Found: multiple files
Will first attempt to locate the searchform.php file in either the child or the parent, then load it. If it doesn’t exist, then the default search form will be displayed. Probably can safely ignore this for now because if you use this template function, your theme will not be backward compatible to older version of Wordpress (< v2.7).
搜索框的调用,比以前的include引用好多了,现在可以跟header,footer一样使用 get_search_form()调用了。

<link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> Atom Feed" href="< ?php bloginfo('atom_url'); ?>" />

Found: header.php
Add Atom feed link
随着时代的进步,也该加上Atom Feed了,有没检查一下你的Blog Theme,有没加Atom Feed呢?哈哈,nwhy.org的没有加……

New:< ?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>

Found: header.php
Add script for threaded comments if current page is a single post, is a page, or is an attachment.
v2.7支持comment的嵌套回复,我想这是v2.7的一个大新闻吧,这一点就是针对这一功能的。
不过大家都说WP的嵌套回复不好用……
--------------------------------------------------------------------------------------------
comments.php: Major code changes. I think this post on Wordpress 2.7 Comments Enhancements will do a better job of explaining the changes.
没错,comments.php文件做了很大的修改,像nwhy.org当前使用的theme就没有嵌套回复功能……

1901/090

WordPress -Template System模板系统

wordpress-template
当我看到这张图的时候,着实讶异,原来WordPress的模板系统比想像中强大很多。
如此一来,WordPress就完全可以当成一个CMS系统,而不仅仅是一个Blog那么简单了。
从图上我们可以看出,最简单的WordPress皮肤,只要一个index.php就可以了。
当然,我们最关心的应该是single,page跟category。
先来讲category的部分,看图中,假设我们有个分类是?cat=5,那么该页面的模板寻找顺序是category-5.php>>category.php>>index.php。
相对category来说,page的定制比较麻烦,而且图示也不够清楚,pagename.php文件是单独的,假设我们要建立一个页面模板叫nwhy.php,
那么这个文件的开头应该是这样:

< ?php /* Template Name: nwhy */ ?>

下边才是模板的内容。
那么这个模板是怎么用的呢?后台,新建一个page,在右侧属性里的Template选择框里你将会看到nwhy,是不是很简单?
而单独的日志页,也就是single.php,挺遗憾的,没有单独定制的办法,只能使用page模板。
也就是说,当页面很多的时候,我们需要建立茫茫多的pagename.php……

3010/080

Thanks in advance

花了好长一段时间看完Drupal.org的一个帖子,累人,具体多久就不说了,丢人……
发现发贴的人总喜欢在最后加上句Thanks in advance,
用词霸查了下,原来是先谢谢了的意思……学到了。。
帖子讲的是GPL,恩,老外对版权是十分的关心,很关心……
想起我以前,直接拿了个皮肤改了就直接去调人家的链接,,哈哈,
通常皮肤制作方都要求在底部保留链接,如果你想去掉,可以,请donate creator,=。=
-----------------------------------------------------------------
顺便帖个可怕的Akisment的统计数据,
9,800 spams caught, 176 legitimate comments, and an overall accuracy rate of 99.669%.
网站总共有12000条垃圾评论,176条正常留言,垃圾留言率为99.669%...
真是咋一个无语了得……

Tagged as: No Comments
2910/082

WordPress Themes-Cellar Heat

恩,这个皮有light跟dark2个版本,我选择的是dark版,light的太圣光了,不喜欢~
这套皮的官方网站,有兴趣的可以看看:http://www.cellarheat.com/
只所以换掉昨天那套皮,是因为不兼容的地方是在太多,所以删除了……对此,I只能说Sorry~
这个皮先用几天看看,兼容性还不错~用来展示图片或者案例挺不错。

1010/080

Blog皮肤日常更新

其实Blog皮肤在IE7下有问题的情况早就知道了,一直没时间改。
当时调整CSS的时候是在IE6+FF的变态组合下做的……
今天有时间就改了下,主要是Header部分跟Siderbar部分的错位问题。
发现一个很奇怪的问题,Div在Float之后,会被下边的Div覆盖掉背景,这个时候就得使用
position:relative + z-index:x 的组合了~
更新后稍微看了下,似乎IE6,7,FF下都比较正常,~幸好。。。

Tagged as: , , , , No Comments
608/080

Drupal 不使用View输出页面内容

View模块功能是很强大,可以完全不用写代码来达到输出指定的内容,但是呢,由View输出的页面代码会有无数多的DIV,如果对CSS不熟悉,但是页面设计的要求又很高的话,那简直就是噩梦。这里讲一下不使用View,而使用Drupal的API来输出内容的方法,一来呢,方便Design,二来,获得的数据自己也比较容易控制。
来段数据库操作代码:

< ?php
echo "标题";//标题
$result = pager_query("SELECT n.nid, n.title FROM {node} n WHERE n.type = 'story' ORDER BY n.created DESC", 15);//复杂的内容可能需要多表连接,db_query是不带分页参数的查询,pager_query则是带分页的查询
if (db_num_rows($result) > 0) {
while ($test = db_fetch_object($result)) {
    echo l($test->;title,'node/'.$test->;nid);
    };
}else {
echo "木有内容";
}
echo "<div>".theme('pager', NULL, 15)."</div>";
?>

下午在做的时候发现这块内容丢到Block里边的话……分页函数就会出问题……感觉有点莫名啊……
直接放在一个页面里就正常了,theme()函数难道在引用区块后无效?

Page 1 of 212