NeatCN(NeatStudio工作室) NeatStudio工作室

Archive for 五月, 2010

WordPress : Adding Administration Menus

05.26.2010 · Posted in Wordpress开发

If you want to give your pluging an options page,you must set a administration menu or options sub menu. Some manual can find it on wordpress.org. OK,to add an administration menu, you must do three things: 1. Create a function that contains the menu-building code 2. Register the above function using the ...

wordpress开发的几个事项

05.18.2010 · Posted in Wordpress开发

1、自定义字段,详见 http://codex.wordpress.org/Using_Custom_Fields ,几个常见的方法有: add_post_meta($id,$key,$value,$unique),update_post_meta,delete_post_meta get_post_meta,get_post_meta_keys,get_post_meta_values 用于模版中的有,the_meta,get_post_meta 2、图片存在哪里?图片其实也是一条post数据,只是 post_type = attachment而己 其它post_type有,draft(草稿),revision(历史数据)等。 当图片的post_parent没有值时,认为它是孤立附件。如果有值是认为是有关联的,仅关联第一次,如果有多个文章插入此图片,默认只关联第一次的。 3、wp_links是友情链接表 wp_comments是回复表 wp_commentmeta和postmeta类似,但一般都用不到。 wp_options是系统配置表,可以用get_options等获取。 wp_terms等三个表是关联表,wp_terms里面存放了category,tag等信息 wp_users等两个表是用户相关表。由于usermeta信息是key,value对应的,所以当要取所有的用户及全部配置信息时就很郁闷。如果用户不多,建议是把wp_usermeta全部取出来之后,再用foreach等做键值对应,否则,SQL查询就会死人。 ...

WordPress的插件开发全攻略(目录)

05.17.2010 · Posted in Wordpress开发

这篇文章是我转自sexywp.com的文章,有PDF版的下载哦,不过仔细看了之后,还是觉得比较简单,当然如果是初学的话,了解一下也足够了。 How to Write a WordPress Plugin – Introduction 介绍 Seven Reasons to Write a WordPress Plugin 编写插件的七个理 由 How to Get Ideas for WordPress Plugins 怎样获得 WordPress插件的创意 Structure of a WordPress Plugin WordPress 插件的结构 WordPress Plugin Actions WordPress 插件Actions WordPress Plugin Filters WordPress 插件Filter Constructing a WordPress Plugin Admin Panel 构造一个 WordPress插件管理员面板 Constructing a ...

Yii framework documentation and api manual

05.06.2010 · Posted in PHP开发

When you wrote your php code with yii framewok,you must look the reference.so i try to find yii framework documentation and api manual. Yii api manual is a chm file,so you can download it ,and you can write code for the reference.(又在乱写了。。。) Yii documentation that gives the definitive description of every feature of Yii and ...