<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>请输入一个名称！ &#187; 版面：WordPress - 最近发表帖子</title>
		<link>http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/forum/2</link>
		<description>请输入一个名称！ &raquo; 版面：WordPress - 最近发表帖子</description>
		<language>zh-CN</language>
		<pubDate>Sat, 31 Jul 2010 15:10:59 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[搜索]]></title>
			<description><![CDATA[在这些版面中搜索全部帖子。]]></description>
			<name>q</name>
			<link>http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/search.php</link>
		</textInput>
		<atom:link href="http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/rss/forum/2/topics" rel="self" type="application/rss+xml" />

		<item>
						<title>WordPress 收费服务</title>
			<link>http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/topic/31#post-63</link>
			<pubDate>一, 28 Dec 2009 11:00:02 +0000</pubDate>
			<dc:creator>匿名</dc:creator>
			<guid isPermaLink="false">63@http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/</guid>
			<description>&#60;p&#62;假设我们提供一种 WordPress 服务，帮大家装好一些必须的 WordPress 插件，并且提供维护和优化，采取每月或者每年收费的方式，不知道有没有人会愿意参与呢？&#60;/p&#62;
&#60;p&#62;看来得想个比较好的方式！
&#60;/p&#62;</description>
		</item>
		<item>
						<title>来请教一下</title>
			<link>http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/topic/211#post-321</link>
			<pubDate>三, 30 Jun 2010 01:23:47 +0000</pubDate>
			<dc:creator>匿名</dc:creator>
			<guid isPermaLink="false">321@http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/</guid>
			<description>&#60;a href=&#34;http://www.newone.org/&#34; rel=&#34;nofollow&#34;&#62;http://www.newone.org/&#60;/a&#62;
IE8下面打开。左下角总是提示网页上有错误。


消息: 'document.getElementById(...)' 为空或不是对象
行: 20
字符: 279
代码: 0
URI: &#60;a href=&#34;http://www.newone.org/wp-content/themes/newon/js/easytabs.js&#34; rel=&#34;nofollow&#34;&#62;http://www.newone.org/wp-content/themes/newon/js/easytabs.js&#60;/a&#62;</description>
		</item>
		<item>
						<title>问站长两个问题 关于WordPress主题</title>
			<link>http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/topic/186#post-280</link>
			<pubDate>六, 17 Apr 2010 02:32:24 +0000</pubDate>
			<dc:creator>匿名</dc:creator>
			<guid isPermaLink="false">280@http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/</guid>
			<description>&#60;p&#62;一：我有一个代码高亮的插件，但是在我自己的主题上无效，请问主题跟插件之间是怎么关联的？&#60;br /&#62;
二：我想写一个评论的样式，请问怎么区分评论和回复评论？&#60;br /&#62;
谢谢！！
&#60;/p&#62;</description>
		</item>
		<item>
						<title>在 RSS 中添加缩略图</title>
			<link>http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/topic/210#post-320</link>
			<pubDate>四, 24 Jun 2010 04:16:10 +0000</pubDate>
			<dc:creator>匿名</dc:creator>
			<guid isPermaLink="false">320@http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/</guid>
			<description>function diw_post_thumbnail_feeds($content) {
	global $post;
	if(has_post_thumbnail($post-&#62;ID)) {
		$content = '&#60;div&#62;' . get_the_post_thumbnail($post-&#62;ID) . '&#60;/div&#62;' . $content;
	}
	return $content;
}
add_filter('the_excerpt_rss', 'diw_post_thumbnail_feeds');
add_filter('the_content_feed', 'diw_post_thumbnail_feeds');</description>
		</item>
		<item>
						<title>如何在发布日志的时候自动添加自定义字段</title>
			<link>http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/topic/209#post-319</link>
			<pubDate>四, 24 Jun 2010 04:14:07 +0000</pubDate>
			<dc:creator>匿名</dc:creator>
			<guid isPermaLink="false">319@http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/</guid>
			<description>add_action('publish_page', 'add_custom_field_automatically');
add_action('publish_post', 'add_custom_field_automatically');
function add_custom_field_automatically($post_ID) {
	global $wpdb;
	if(!wp_is_post_revision($post_ID)) {
		add_post_meta($post_ID, 'field-name', 'custom value', true);
	}
}

注意 wp_is_post_revision 函数</description>
		</item>
		<item>
						<title>移除 dashboard 的 widget</title>
			<link>http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/topic/208#post-318</link>
			<pubDate>四, 24 Jun 2010 04:05:29 +0000</pubDate>
			<dc:creator>匿名</dc:creator>
			<guid isPermaLink="false">318@http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/</guid>
			<description>function remove_dashboard_widgets() {
	global $wp_meta_boxes;

	unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_quick_press']);
	unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_incoming_links']);
	unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_right_now']);
	unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_plugins']);
	unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_recent_drafts']);
	unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_recent_comments']);
	unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_primary']);
	unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_secondary']);

}

if (!current_user_can('manage_options')) {
	add_action('wp_dashboard_setup', 'remove_dashboard_widgets' );
}



这里会移除所有，如果有保存那个就注释掉</description>
		</item>
		<item>
						<title>Wordpress 3.0  缩略图的问题：post_type名不能太长？</title>
			<link>http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/topic/206#post-314</link>
			<pubDate>五, 04 Jun 2010 14:53:46 +0000</pubDate>
			<dc:creator>匿名</dc:creator>
			<guid isPermaLink="false">314@http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/</guid>
			<description>add_theme_support( 'post-thumbnails', array( post_type ) );
如果post_type的名字太长(只是估计，我也不确定),
例如你自定义了一个post_type为&#34;enterprise-qualification&#34;
你想给这个post_type加上缩略功能：add_theme_support( 'post-thumbnails', array( 'enterprise-qualification' ) );
那么在上传图片后会没有“Use as featured image”按钮</description>
		</item>
		<item>
						<title>让Contributor也可以上传图片</title>
			<link>http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/topic/207#post-315</link>
			<pubDate>一, 07 Jun 2010 06:46:42 +0000</pubDate>
			<dc:creator>匿名</dc:creator>
			<guid isPermaLink="false">315@http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/</guid>
			<description>function add_role_caps() {
    global $wp_roles;
    $role = get_role('contributor');
    $role-&#62;add_cap('upload_files');
};
add_action ('admin_head','add_role_caps');</description>
		</item>
		<item>
						<title>关于Flutter 插件应用在WP的问题</title>
			<link>http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/topic/204#post-309</link>
			<pubDate>二, 01 Jun 2010 14:31:06 +0000</pubDate>
			<dc:creator>匿名</dc:creator>
			<guid isPermaLink="false">309@http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/</guid>
			<description>&#60;p&#62;鱼鱼，你好。&#60;br /&#62;
我看到你一篇文章，WordPress 在企业网站中的应用 — 阳诺太阳能（http://fairyfish.net/2009/03/24/wordpress-as-cms-ynsolar0769/）&#60;br /&#62;
感觉非常好，我就下载试了一下，结果发现图片无法上传。不知道是怎么回事，我对php懂得很少，希望能帮帮我。谢谢。&#60;br /&#62;
我的wp是2.92版，flutter是1.1版
&#60;/p&#62;</description>
		</item>
		<item>
						<title>Wordpress 3.0 多站点 WP Super Cache nginx规则</title>
			<link>http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/topic/205#post-311</link>
			<pubDate>三, 02 Jun 2010 15:28:21 +0000</pubDate>
			<dc:creator>匿名</dc:creator>
			<guid isPermaLink="false">311@http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/</guid>
			<description>&#60;p&#62;&#60;code&#62;&#60;/p&#62;
&#60;p&#62;if (-f $request_filename) {&#60;br /&#62;
break;&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;rewrite ^.*/files/(.*) /wp-includes/ms-files.php?file=$1;&#60;/p&#62;
&#60;p&#62;set $supercache_file '';&#60;br /&#62;
set $supercache_uri $request_uri;&#60;/p&#62;
&#60;p&#62;if ($request_method = POST) {&#60;br /&#62;
set $supercache_uri '';&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;# Using pretty permalinks, so bypass the cache for any query string&#60;br /&#62;
if ($query_string) {&#60;br /&#62;
set $supercache_uri '';&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;if ($http_cookie ~* &#34;comment_author_&#124;wordpress&#124;wp-postpass_&#34; ) {&#60;br /&#62;
set $supercache_uri '';&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;# if we haven't bypassed the cache, specify our supercache file&#60;br /&#62;
if ($supercache_uri ~ ^(.+)$) {&#60;br /&#62;
set $supercache_file /wp-content/cache/supercache/$http_host/$1index.html;&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;# only rewrite to the supercache file if it actually exists&#60;br /&#62;
if (-f $document_root$supercache_file) {&#60;br /&#62;
rewrite ^(.*)$ $supercache_file break;&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;# all other requests go to Wordpress&#60;br /&#62;
if (!-e $request_filename) {&#60;br /&#62;
rewrite . /index.php last;&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;这个规则适合单站点、多站点、装不装WP Super Cache 都支持&#60;/p&#62;
&#60;p&#62;不过要注意这一句“set $supercache_file /wp-content/cache/supercache/$http_host/$1index.html;”&#60;br /&#62;
某些主机配置，这一句可能会不同，要实践一下才知道。
&#60;/p&#62;</description>
		</item>
		<item>
						<title>请Denis帮查看一个问题</title>
			<link>http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/topic/203#post-307</link>
			<pubDate>五, 28 May 2010 23:51:01 +0000</pubDate>
			<dc:creator>匿名</dc:creator>
			<guid isPermaLink="false">307@http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/</guid>
			<description>&#60;p&#62;Denis，你好，我在学作主题时，碰到这样一个问题：在制作single.php文件时，我把index.php中的内容复制过来后，用上&#38;lt;p&#38;gt;&#38;lt;?php the_content(); ?&#38;gt;&#38;lt;/p&#38;gt;这一句时，打开网页，却发现变成了&#38;lt;p&#38;gt;&#38;lt;div&#38;gt;&#38;lt;?php the_content(); ?&#38;gt;&#38;lt;/div&#38;gt;&#38;lt;/p&#38;gt;，怎么会多出一对&#38;lt;div&#38;gt;&#38;lt;/div&#38;gt;，不知道是什么原因，还请Denis解决一下。谢谢！
&#60;/p&#62;</description>
		</item>
		<item>
						<title>在留言的 class 中删除 admin 的名字</title>
			<link>http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/topic/202#post-306</link>
			<pubDate>二, 25 May 2010 03:08:05 +0000</pubDate>
			<dc:creator>匿名</dc:creator>
			<guid isPermaLink="false">306@http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/</guid>
			<description>&#60;pre&#62;&#60;code&#62;function remove_comment_author_class( $classes ) {
	foreach( $classes as $key =&#38;gt; $class ) {
		if(strstr($class, &#38;quot;comment-author-&#38;quot;)) {
			unset( $classes[$key] );
		}
	}
	return $classes;
}
add_filter( &#38;#39;comment_class&#38;#39; , &#38;#39;remove_comment_author_class&#38;#39; );&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
						<title>如何自动清空 WordPress 的垃圾箱</title>
			<link>http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/topic/201#post-305</link>
			<pubDate>二, 25 May 2010 03:05:34 +0000</pubDate>
			<dc:creator>匿名</dc:creator>
			<guid isPermaLink="false">305@http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/</guid>
			<description>&#60;p&#62;在 wp-config.php 中添加入如下代码：&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;define(&#38;#39;EMPTY_TRASH_DAYS&#38;#39;, 10 );&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;第二个参数是时间，单位是天！
&#60;/p&#62;</description>
		</item>
		<item>
						<title>使用程序插入留言</title>
			<link>http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/topic/200#post-304</link>
			<pubDate>二, 25 May 2010 03:03:55 +0000</pubDate>
			<dc:creator>匿名</dc:creator>
			<guid isPermaLink="false">304@http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/</guid>
			<description>&#60;pre&#62;&#60;code&#62;$data = array(
	&#38;#39;comment_post_ID&#38;#39; =&#38;gt; 1,
	&#38;#39;comment_author&#38;#39; =&#38;gt; &#38;#39;admin&#38;#39;,
	&#38;#39;comment_author_email&#38;#39; =&#38;gt; &#38;#39;admin@admin.com&#38;#39;,
	&#38;#39;comment_author_url&#38;#39; =&#38;gt; &#38;#39;http://www.catswhocode.com&#38;#39;,
	&#38;#39;comment_content&#38;#39; =&#38;gt; &#38;#39;Lorem ipsum dolor sit amet...&#38;#39;,
	&#38;#39;comment_author_IP&#38;#39; =&#38;gt; &#38;#39;127.0.0.1&#38;#39;,
	&#38;#39;comment_agent&#38;#39; =&#38;gt; &#38;#39;Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; fr; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3&#38;#39;,
	&#38;#39;comment_date&#38;#39; =&#38;gt; date(&#38;#39;Y-m-d H:i:s&#38;#39;),
	&#38;#39;comment_date_gmt&#38;#39; =&#38;gt; date(&#38;#39;Y-m-d H:i:s&#38;#39;),
	&#38;#39;comment_approved&#38;#39; =&#38;gt; 1,
);

$comment_id = wp_insert_comment($data);&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
						<title>jsPlumb：jQuery 管道链接插件</title>
			<link>http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/topic/196#post-297</link>
			<pubDate>一, 17 May 2010 02:50:52 +0000</pubDate>
			<dc:creator>匿名</dc:creator>
			<guid isPermaLink="false">297@http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/</guid>
			<description>&#60;p&#62;The jsPlumb jQuery plugin provides a way to &#34;plumb&#34; elements of a UI together. This page contains a little bit of everything to whet your appetite.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://morrisonpitt.com/jsPlumb/html/demo.html&#34; rel=&#34;nofollow&#34;&#62;http://morrisonpitt.com/jsPlumb/html/demo.html&#60;/a&#62;&#60;br /&#62;
&#60;a href=&#34;http://morrisonpitt.com/jsPlumb/html/demo2.html&#34; rel=&#34;nofollow&#34;&#62;http://morrisonpitt.com/jsPlumb/html/demo2.html&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
						<title>安全相关：字符串加密</title>
			<link>http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/topic/199#post-301</link>
			<pubDate>一, 17 May 2010 05:07:49 +0000</pubDate>
			<dc:creator>匿名</dc:creator>
			<guid isPermaLink="false">301@http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/</guid>
			<description>&#60;p&#62;最近在做一个简单的购物插件，力求简单，所以连产品数据库也省掉了&#60;br /&#62;
用户下订单的时候直接Post产品名称、价格&#60;br /&#62;
为了防止用户伪造产品名称、价格，所以用以下这个函数来加密就解决了&#60;br /&#62;
这是一个使用最广泛的加密解密函数，UCenter API也是使用这个&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;br /&#38;gt;
//加密&#38;lt;br /&#38;gt;
/**&#38;lt;br /&#38;gt;
* @param string $string 原文或者密文&#38;lt;br /&#38;gt;
* @param string $operation 操 作(ENCODE &#124; DECODE), 默认为 DECODE&#38;lt;br /&#38;gt;
* @param string $key 密 钥&#38;lt;br /&#38;gt;
* @param int $expiry 密文有效期, 加密时候有效， 单 位 秒，0 为永久有效&#38;lt;br /&#38;gt;
* @return string 处理后的 原文或者 经 过 base64_encode 处理后的密文&#38;lt;br /&#38;gt;
*&#38;lt;br /&#38;gt;
* @example&#38;lt;br /&#38;gt;
*&#38;lt;br /&#38;gt;
* $a = authcode(&#38;#39;abc&#38;#39;, &#38;#39;ENCODE&#38;#39;, &#38;#39;key&#38;#39;);&#38;lt;br /&#38;gt;
* $b = authcode($a, &#38;#39;DECODE&#38;#39;, &#38;#39;key&#38;#39;); // $b(abc)&#38;lt;br /&#38;gt;
*&#38;lt;br /&#38;gt;
* $a = authcode(&#38;#39;abc&#38;#39;, &#38;#39;ENCODE&#38;#39;, &#38;#39;key&#38;#39;, 3600);&#38;lt;br /&#38;gt;
* $b = authcode(&#38;#39;abc&#38;#39;, &#38;#39;DECODE&#38;#39;, &#38;#39;key&#38;#39;); // 在一个小时 内，$b(abc)，否则 $b 为空&#38;lt;br /&#38;gt;
*/&#38;lt;/p&#38;gt;
&#38;lt;p&#38;gt;function authcode( $string, $operation = &#38;#39;DECODE&#38;#39;, $key = &#38;#39;&#38;#39;, $expiry = 0 ) {&#38;lt;br /&#38;gt;
	$ckey_length = 4;&#38;lt;br /&#38;gt;
	$key = md5( $key ? $key : UC_KEY );&#38;lt;br /&#38;gt;
	$keya = md5( substr( $key, 0, 16 ) );&#38;lt;br /&#38;gt;
	$keyb = md5( substr( $key, 16, 16 ) );&#38;lt;br /&#38;gt;
	$keyc = $ckey_length ? ( $operation == &#38;#39;DECODE&#38;#39; ? substr( $string, 0, $ckey_length ): substr( md5( microtime() ), -$ckey_length ) ) : &#38;#39;&#38;#39;;&#38;lt;/p&#38;gt;
&#38;lt;p&#38;gt;	$cryptkey = $keya.md5( $keya.$keyc );&#38;lt;br /&#38;gt;
	$key_length = strlen( $cryptkey );&#38;lt;/p&#38;gt;
&#38;lt;p&#38;gt;	$string = $operation == &#38;#39;DECODE&#38;#39; ? base64_decode( substr( $string, $ckey_length  )) : sprintf( &#38;#39;%010d&#38;#39;, $expiry ? $expiry + time() : 0 ).substr( md5( $string.$keyb ), 0, 16 ).$string;&#38;lt;br /&#38;gt;
	$string_length = strlen( $string );&#38;lt;/p&#38;gt;
&#38;lt;p&#38;gt;	$result = &#38;#39;&#38;#39;;&#38;lt;br /&#38;gt;
	$box = range( 0, 255 );&#38;lt;/p&#38;gt;
&#38;lt;p&#38;gt;	$rndkey = array();&#38;lt;br /&#38;gt;
	for ( $i = 0; $i &#38;lt;= 255; $i++ ) {&#38;lt;br /&#38;gt;
		$rndkey[$i] = ord( $cryptkey[$i % $key_length] );&#38;lt;br /&#38;gt;
	}&#38;lt;/p&#38;gt;
&#38;lt;p&#38;gt;	for ( $j = $i = 0; $i &#38;lt; 256; $i++ ) {&#38;lt;br /&#38;gt;
		$j = ($j + $box[$i] + $rndkey[$i]) % 256;&#38;lt;br /&#38;gt;
		$tmp = $box[$i];&#38;lt;br /&#38;gt;
		$box[$i] = $box[$j];&#38;lt;br /&#38;gt;
		$box[$j] = $tmp;&#38;lt;br /&#38;gt;
	}&#38;lt;/p&#38;gt;
&#38;lt;p&#38;gt;	for ( $a = $j = $i = 0; $i &#38;lt; $string_length; $i++ ) {&#38;lt;br /&#38;gt;
		$a = ($a + 1) % 256;&#38;lt;br /&#38;gt;
		$j = ($j + $box[$a]) % 256;&#38;lt;br /&#38;gt;
		$tmp = $box[$a];&#38;lt;br /&#38;gt;
		$box[$a] = $box[$j];&#38;lt;br /&#38;gt;
		$box[$j] = $tmp;&#38;lt;br /&#38;gt;
		$result .= chr( ord( $string[$i] ) ^ ( $box[($box[$a] + $box[$j] ) % 256] ) );&#38;lt;br /&#38;gt;
	}&#38;lt;/p&#38;gt;
&#38;lt;p&#38;gt;	if ( $operation == &#38;#39;DECODE&#38;#39; ) {&#38;lt;br /&#38;gt;
		if ( ( substr( $result, 0, 10 ) == 0 &#124;&#124; substr( $result, 0, 10 ) - time() &#38;gt; 0 ) &#38;amp;&#38;amp; substr( $result, 10, 16 ) == substr( md5( substr( $result, 26 ).$keyb ), 0, 16 ) ) {&#38;lt;br /&#38;gt;
			return substr( $result, 26 );&#38;lt;br /&#38;gt;
		} else {&#38;lt;br /&#38;gt;
			return &#38;#39;&#38;#39;;&#38;lt;br /&#38;gt;
		}&#38;lt;br /&#38;gt;
	} else {&#38;lt;br /&#38;gt;
		return $keyc.str_replace( &#38;#39;=&#38;#39;, &#38;#39;&#38;#39;, base64_encode( $result ) );&#38;lt;br /&#38;gt;
	}&#38;lt;br /&#38;gt;
}&#38;lt;/p&#38;gt;
&#38;lt;p&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
						<title>安全相关：高级PHP应用程序漏洞审核技术</title>
			<link>http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/topic/193#post-294</link>
			<pubDate>日, 16 May 2010 06:26:25 +0000</pubDate>
			<dc:creator>匿名</dc:creator>
			<guid isPermaLink="false">294@http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/</guid>
			<description>&#60;p&#62;纯属转转帖，但是很有用，大家看看吧&#60;br /&#62;
&#60;a href=&#34;http://code.google.com/p/pasc2at/wiki/SimplifiedChinese&#34; rel=&#34;nofollow&#34;&#62;http://code.google.com/p/pasc2at/wiki/SimplifiedChinese&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
						<title>CSSGallerySubmission</title>
			<link>http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/topic/197#post-298</link>
			<pubDate>一, 17 May 2010 02:54:39 +0000</pubDate>
			<dc:creator>匿名</dc:creator>
			<guid isPermaLink="false">298@http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/</guid>
			<description>&#60;p&#62;&#60;a href=&#34;http://www.cssgallerysubmission.com/&#34; rel=&#34;nofollow&#34;&#62;http://www.cssgallerysubmission.com/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;把你的网站提交到所有 CSS Gallery 网站！
&#60;/p&#62;</description>
		</item>
		<item>
						<title>网页同色调颜色选择器</title>
			<link>http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/topic/195#post-296</link>
			<pubDate>一, 17 May 2010 02:47:11 +0000</pubDate>
			<dc:creator>匿名</dc:creator>
			<guid isPermaLink="false">296@http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/</guid>
			<description>&#60;p&#62;0to255  is a simple tool that helps web designers find lighter and darker colors based on any color. 0to255 cures your color manipulation woes. It’s fun, simple, and a huge time-saver.&#60;/p&#62;
&#60;p&#62;Simply pick the color that you want to start with and 0to255 gives you a range of colors from black to white using an interval optimized for web design. Then, just click the variation you want to use and the hex code is automatically copied to your clipboard.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://0to255.com/&#34; rel=&#34;nofollow&#34;&#62;http://0to255.com/&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
						<title>安全相关：什么时候过滤？</title>
			<link>http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/topic/194#post-295</link>
			<pubDate>日, 16 May 2010 06:29:55 +0000</pubDate>
			<dc:creator>匿名</dc:creator>
			<guid isPermaLink="false">295@http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/</guid>
			<description>&#60;p&#62;一直在考虑这样一个问题：把字符串保存到数据库里，然后显示出来，那么，应该是在保存之前就过滤呢，还是在显示的时候才过滤？&#60;br /&#62;
1、保存之前就过滤。好处是输出显示的时候占用资源小，坏处是，万一输入的内容是极其重要的，被过滤了，无法还原，无法尼补&#60;br /&#62;
2、输出的时候才过滤。好处是保持内容的完整性，随时可以更改过滤规，缺点是显示的时候占用资源大。&#60;/p&#62;
&#60;p&#62;我个人更喜欢第二个方法，对于第二个方法，在WP里可以用esc_html()函数
&#60;/p&#62;</description>
		</item>
		<item>
						<title>wordpress上传图片的描述怎么才能显示呢？</title>
			<link>http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/topic/190#post-287</link>
			<pubDate>四, 06 May 2010 09:11:45 +0000</pubDate>
			<dc:creator>匿名</dc:creator>
			<guid isPermaLink="false">287@http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/</guid>
			<description>&#60;p&#62;&#60;a href=&#34;http://tu.6.cn/pic/show-new/id/7921543&#34;&#62;&#60;img src=&#34;http://i3.6.cn/cvbnm/e4/bb/81/e080b60443459d3808563291bcd3505d.jpg&#34; alt=&#34;&#34; /&#62;&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;如图。怎么才能在文章中显示图来呢？
&#60;/p&#62;</description>
		</item>
		<item>
						<title>来试试bbPRESS</title>
			<link>http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/topic/191#post-288</link>
			<pubDate>四, 06 May 2010 11:32:44 +0000</pubDate>
			<dc:creator>匿名</dc:creator>
			<guid isPermaLink="false">288@http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/</guid>
			<description>&#60;p&#62;这个编辑器也太简了吧
&#60;/p&#62;</description>
		</item>
		<item>
						<title>wp_list_categories 函数在日志页也能高亮当前分类，</title>
			<link>http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/topic/192#post-289</link>
			<pubDate>五, 14 May 2010 05:59:18 +0000</pubDate>
			<dc:creator>匿名</dc:creator>
			<guid isPermaLink="false">289@http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/</guid>
			<description>&#60;p&#62;这里的设置是高亮第一个分类&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;if(is_single()){
	$c_cats = wp_get_post_terms($post-&#38;gt;ID, array(&#38;#39;category&#38;#39;));
	wp_list_categories(&#38;#39;show_count=0&#38;amp;title_li=&#38;amp;depth=1&#38;amp;current_category=&#38;#39;.$c_cats[0]-&#38;gt;term_id);
}else {
	wp_list_categories(&#38;#39;show_count=0&#38;amp;title_li=&#38;amp;depth=1&#38;#39;);
}?&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
						<title>允许 contributors 上传文件</title>
			<link>http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/topic/189#post-285</link>
			<pubDate>三, 21 Apr 2010 02:41:31 +0000</pubDate>
			<dc:creator>匿名</dc:creator>
			<guid isPermaLink="false">285@http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/</guid>
			<description>&#60;pre&#62;&#60;code&#62;if ( current_user_can(&#38;#39;contributor&#38;#39;) &#38;amp;&#38;amp; !current_user_can(&#38;#39;upload_files&#38;#39;) )
    add_action(&#38;#39;admin_init&#38;#39;, &#38;#39;allow_contributor_uploads&#38;#39;);

function allow_contributor_uploads() {
    $contributor = get_role(&#38;#39;contributor&#38;#39;);
    $contributor-&#38;gt;add_cap(&#38;#39;upload_files&#38;#39;);
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
						<title>如何让 WordPress 显示“多少天前”这样的时间格式</title>
			<link>http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/topic/188#post-284</link>
			<pubDate>三, 21 Apr 2010 02:39:48 +0000</pubDate>
			<dc:creator>匿名</dc:creator>
			<guid isPermaLink="false">284@http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/</guid>
			<description>&#60;pre&#62;&#60;code&#62;function time_ago( $type = &#38;#39;post&#38;#39; ) {
	$d = &#38;#39;comment&#38;#39; == $type ? &#38;#39;get_comment_time&#38;#39; : &#38;#39;get_post_time&#38;#39;;
	return human_time_diff($d(&#38;#39;U&#38;#39;), current_time(&#38;#39;timestamp&#38;#39;)) . &#38;quot; &#38;quot; . __(&#38;#39;ago&#38;#39;);
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
						<title>让 WordPress 支持上传更多的文件类型</title>
			<link>http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/topic/187#post-283</link>
			<pubDate>三, 21 Apr 2010 02:36:19 +0000</pubDate>
			<dc:creator>匿名</dc:creator>
			<guid isPermaLink="false">283@http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/</guid>
			<description>&#60;pre&#62;&#60;code&#62;?php
function addUploadMimes($mimes) {
    $mimes = array_merge($mimes, array(
        &#38;#39;tmbundle&#124;tmCommand&#124;tmDragCommand&#124;tmSnippet&#124;tmLanguage&#124;tmPreferences&#38;#39; =&#38;gt; &#38;#39;application/octet-stream&#38;#39;
    ));

    return $mimes;
}
?&#38;gt;

add_filter(&#38;#39;upload_mimes&#38;#39;, &#38;#39;addUploadMimes&#38;#39;);&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
						<title>这段代码有问题吗</title>
			<link>http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/topic/185#post-278</link>
			<pubDate>日, 04 Apr 2010 15:46:44 +0000</pubDate>
			<dc:creator>匿名</dc:creator>
			<guid isPermaLink="false">278@http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/</guid>
			<description>&#60;p&#62;如下一段代码，将其置入wordpress的header.php中就是不能正常显示，大家给看看问题出在哪里啊&#60;/p&#62;
&#60;p&#62;&#38;lt;!--HTML--&#38;gt;&#60;br /&#62;
&#38;lt;div class=&#34;logo&#34;&#38;gt;&#60;a&#62;/&#34; name=&#34;top&#34; title=&#34;LOGO&#34;&#38;gt;&#38;lt;span&#38;gt;&#38;lt;?php bloginfo('name'); ?&#38;gt;&#38;lt;/span&#38;gt;&#60;/a&#62;&#38;lt;/div&#38;gt;&#60;br /&#62;
&#38;lt;!--CSS--&#38;gt;&#60;br /&#62;
#header .logo a { float: left; width: 200px; height: 72px; display: block; background: url(images/logo.png) no-repeat;}&#60;br /&#62;
#header .logo a span { margin-left: -200em; overflow: hidden;}
&#60;/p&#62;</description>
		</item>
		<item>
						<title>可否详细介绍bbpress和wordpress整合的操作</title>
			<link>http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/topic/184#post-271</link>
			<pubDate>二, 02 Mar 2010 06:59:01 +0000</pubDate>
			<dc:creator>匿名</dc:creator>
			<guid isPermaLink="false">271@http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/</guid>
			<description>&#60;p&#62;尝试无数次都失败……
&#60;/p&#62;</description>
		</item>
		<item>
						<title>我看denis直接发布一个WordPress中文企业版如何？</title>
			<link>http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/topic/182#post-267</link>
			<pubDate>六, 27 Feb 2010 03:18:23 +0000</pubDate>
			<dc:creator>匿名</dc:creator>
			<guid isPermaLink="false">267@http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/</guid>
			<description>&#60;p&#62;哈哈，那denis估计没钱赚啦。。。。分享一下俺就无敌啦。
&#60;/p&#62;</description>
		</item>
		<item>
						<title>WordPress tip: 创建Google Docs  查看 PDF 的 Shortcode</title>
			<link>http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/topic/183#post-270</link>
			<pubDate>一, 01 Mar 2010 11:44:11 +0000</pubDate>
			<dc:creator>匿名</dc:creator>
			<guid isPermaLink="false">270@http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/</guid>
			<description>&#60;pre&#62;&#60;code&#62;add_shortcode(&#38;#39;pdf&#38;#39;, &#38;#39;pdflink&#38;#39;);
function pdflink($attr, $content) {
	return &#38;#39;&#38;lt;a class=&#38;quot;pdf&#38;quot; href=&#38;quot;http://docs.google.com/viewer?url=&#38;#39; . $attr[&#38;#39;href&#38;#39;] . &#38;#39;&#38;quot;&#38;gt;&#38;#39;.$content.&#38;#39;&#38;lt;/a&#38;gt;&#38;#39;;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;然后使用下面的方式在日志插入 PDF 链接，这样就可以直接使用 Google Docs 打开 PDF 了。&#60;/p&#62;
&#60;p&#62;[pdf href=&#34;http://wpjam.com/linktoyour/file.pdf&#34;]View PDF[/pdf]
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
