﻿<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>学习日记 &#187; wordpress</title>
	<atom:link href="https://www.softwareace.cn/?feed=rss2&#038;tag=wordpress" rel="self" type="application/rss+xml" />
	<link>https://www.softwareace.cn</link>
	<description>时刻想着为自己的产品多做一些对他好的事情</description>
	<lastBuildDate>Fri, 20 Mar 2026 06:58:28 +0000</lastBuildDate>
	<language>zh-CN</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>百度的UEditor</title>
		<link>https://www.softwareace.cn/?p=213</link>
		<comments>https://www.softwareace.cn/?p=213#comments</comments>
		<pubDate>Tue, 26 Feb 2013 05:37:05 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.softwareace.cn/?p=213</guid>
		<description><![CDATA[之前已经折腾过，在本地的wordpress中，尝试百度的UEditor了： 【记录】在wordpress中，折 [&#8230;]]]></description>
				<content:encoded><![CDATA[<p style="margin: 1.5em 0px; padding: 0px; border: 0px; font-size: 12px; font: inherit; vertical-align: baseline; line-height: 18px; color: rgb(102, 102, 102); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255);">
	之前已经折腾过，在本地的wordpress中，尝试百度的UEditor了：</p>
<p style="margin: 1.5em 0px; padding: 0px; border: 0px; font-size: 12px; font: inherit; vertical-align: baseline; line-height: 18px; color: rgb(102, 102, 102); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255);">
	<a href="http://www.crifan.com/wordpress_ueditor_text_editor/" style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font: inherit; vertical-align: baseline; color: blue;">【记录】在wordpress中，折腾百度开源富文本编辑器UEditor</a></p>
<p style="margin: 1.5em 0px; padding: 0px; border: 0px; font-size: 12px; font: inherit; vertical-align: baseline; line-height: 18px; color: rgb(102, 102, 102); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255);">
	现在，打算把其弄在在线网站crifan.com中去。</p>
<p style="margin: 1.5em 0px; padding: 0px; border: 0px; font-size: 12px; font: inherit; vertical-align: baseline; line-height: 18px; color: rgb(102, 102, 102); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255);">
	其中，目前的crifan.com中的wordpress后台，用的是默认的3.4.9 的TinyMCE：</p>
<p style="margin: 1.5em 0px; padding: 0px; border: 0px; font-size: 12px; font: inherit; vertical-align: baseline; line-height: 18px; color: rgb(102, 102, 102); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255);">
	<a href="http://www.crifan.com/files/pic/uploads/2012/12/default-tinymce-3.4.9_thumb.png" style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font: inherit; vertical-align: baseline; color: blue;" target="_blank"><img alt="default tinymce 3.4.9" border="0" height="496" src="http://www.crifan.com/files/pic/uploads/2012/12/default-tinymce-3.4.9_thumb.png" style="margin: 0px 0px 1.5em; padding: 0px 0px 5px; border: 0px; font-size: 12px; font: inherit; vertical-align: baseline; background-image: none; -webkit-box-shadow: rgba(50, 50, 50, 0.74902) 0px 1px 4px; box-shadow: rgba(50, 50, 50, 0.74902) 0px 1px 4px; max-width: 100%; overflow: hidden; display: inline;" title="default tinymce 3.4.9" width="640" /></a></p>
<p style="margin: 1.5em 0px; padding: 0px; border: 0px; font-size: 12px; font: inherit; vertical-align: baseline; line-height: 18px; color: rgb(102, 102, 102); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255);">
	&nbsp;</p>
<hr style="color: rgb(102, 102, 102); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 12px; line-height: 18px; background-color: rgb(255, 255, 255);" />
<span style="color: rgb(102, 102, 102); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 12px; line-height: 18px; background-color: rgb(255, 255, 255);">1.参考上面自己的帖子，去：</span></p>
<p>
	&nbsp;</p>
<p style="margin: 1.5em 0px; padding: 0px; border: 0px; font-size: 12px; font: inherit; vertical-align: baseline; line-height: 18px; color: rgb(102, 102, 102); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255);">
	<a href="http://ueditor.baidu.com/website/document.html" style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font: inherit; vertical-align: baseline; color: blue;" target="_blank">UEditor &ndash; 文档</a></p>
<p style="margin: 1.5em 0px; padding: 0px; border: 0px; font-size: 12px; font: inherit; vertical-align: baseline; line-height: 18px; color: rgb(102, 102, 102); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255);">
	中的</p>
<p style="margin: 1.5em 0px; padding: 0px; border: 0px; font-size: 12px; font: inherit; vertical-align: baseline; line-height: 18px; color: rgb(102, 102, 102); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255);">
	<strong style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font: inherit; vertical-align: baseline;">教程 -&gt; UEditor若干专题 -&gt;&nbsp;</strong><strong style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font: inherit; vertical-align: baseline;">在wordpress中集成UEditor</strong></p>
<p style="margin: 1.5em 0px; padding: 0px; border: 0px; font-size: 12px; font: inherit; vertical-align: baseline; line-height: 18px; color: rgb(102, 102, 102); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255);">
	中，下载了</p>
<p style="margin: 1.5em 0px; padding: 0px; border: 0px; font-size: 12px; font: inherit; vertical-align: baseline; line-height: 18px; color: rgb(102, 102, 102); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255);">
	<a href="http://ueditor.baidu.com/website/download/wp-ueditor.zip" style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font: inherit; vertical-align: baseline; color: blue;" target="_blank">专门针对于wordpress版本的UEditor</a></p>
<p style="margin: 1.5em 0px; padding: 0px; border: 0px; font-size: 12px; font: inherit; vertical-align: baseline; line-height: 18px; color: rgb(102, 102, 102); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255);">
	得到了wp-ueditor.zip。</p>
<p style="margin: 1.5em 0px; padding: 0px; border: 0px; font-size: 12px; font: inherit; vertical-align: baseline; line-height: 18px; color: rgb(102, 102, 102); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255);">
	2.然后解压wp-ueditor.zip，把解压后的整个wp-ueditor文件夹的内容，共122个文件，通过FTP，上传到自己的网站的wordpress根目录下的</p>
<p style="margin: 1.5em 0px; padding: 0px; border: 0px; font-size: 12px; font: inherit; vertical-align: baseline; line-height: 18px; color: rgb(102, 102, 102); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255);">
	/wp-content/plugins</p>
<p style="margin: 1.5em 0px; padding: 0px; border: 0px; font-size: 12px; font: inherit; vertical-align: baseline; line-height: 18px; color: rgb(102, 102, 102); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255);">
	中。</p>
<p style="margin: 1.5em 0px; padding: 0px; border: 0px; font-size: 12px; font: inherit; vertical-align: baseline; line-height: 18px; color: rgb(102, 102, 102); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255);">
	&nbsp;</p>
<p style="margin: 1.5em 0px; padding: 0px; border: 0px; font-size: 12px; font: inherit; vertical-align: baseline; line-height: 18px; color: rgb(102, 102, 102); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255);">
	提示：不了解的，可以参考：</p>
<p style="margin: 1.5em 0px; padding: 0px; border: 0px; font-size: 12px; font: inherit; vertical-align: baseline; line-height: 18px; color: rgb(102, 102, 102); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255);">
	<a href="http://www.crifan.com/how_to_manage_remote_online_wordpress_website_on_hostmonster_virtual_host_machine/" style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font: inherit; vertical-align: baseline; color: blue;" target="_blank">【整理】如何管理远程（HostMonster上的）虚拟主机上的在线WordPress网站</a></p>
<p style="margin: 1.5em 0px; padding: 0px; border: 0px; font-size: 12px; font: inherit; vertical-align: baseline; line-height: 18px; color: rgb(102, 102, 102); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255);">
	和</p>
<p style="margin: 1.5em 0px; padding: 0px; border: 0px; font-size: 12px; font: inherit; vertical-align: baseline; line-height: 18px; color: rgb(102, 102, 102); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255);">
	<a href="http://www.crifan.com/what_is_cpanel_and_summary_usage_of_cpanel_control_remote_virtual_host/" style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font: inherit; vertical-align: baseline; color: blue;" target="_blank">【整理】什么是Cpanel，以及如何通过Cpanel管理远程主机</a></p>
<p style="margin: 1.5em 0px; padding: 0px; border: 0px; font-size: 12px; font: inherit; vertical-align: baseline; line-height: 18px; color: rgb(102, 102, 102); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255);">
	&nbsp;</p>
<p style="margin: 1.5em 0px; padding: 0px; border: 0px; font-size: 12px; font: inherit; vertical-align: baseline; line-height: 18px; color: rgb(102, 102, 102); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255);">
	3.然后进入在线的wordpress网站后台的插件中，的确可以看到UEditor了：</p>
<p style="margin: 1.5em 0px; padding: 0px; border: 0px; font-size: 12px; font: inherit; vertical-align: baseline; line-height: 18px; color: rgb(102, 102, 102); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255);">
	<a href="http://www.crifan.com/files/pic/uploads/2012/12/can-see-ueditor-in-plugin_thumb.png" style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font: inherit; vertical-align: baseline; color: blue;" target="_blank"><img alt="can see ueditor in plugin" border="0" height="121" src="http://www.crifan.com/files/pic/uploads/2012/12/can-see-ueditor-in-plugin_thumb.png" style="margin: 0px 0px 1.5em; padding: 0px 0px 5px; border: 0px; font-size: 12px; font: inherit; vertical-align: baseline; background-image: none; -webkit-box-shadow: rgba(50, 50, 50, 0.74902) 0px 1px 4px; box-shadow: rgba(50, 50, 50, 0.74902) 0px 1px 4px; max-width: 100%; overflow: hidden; display: inline;" title="can see ueditor in plugin" width="640" /></a></p>
<p style="margin: 1.5em 0px; padding: 0px; border: 0px; font-size: 12px; font: inherit; vertical-align: baseline; line-height: 18px; color: rgb(102, 102, 102); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255);">
	然后再去启用UEditor。</p>
<p style="margin: 1.5em 0px; padding: 0px; border: 0px; font-size: 12px; font: inherit; vertical-align: baseline; line-height: 18px; color: rgb(102, 102, 102); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255);">
	&nbsp;</p>
<p style="margin: 1.5em 0px; padding: 0px; border: 0px; font-size: 12px; font: inherit; vertical-align: baseline; line-height: 18px; color: rgb(102, 102, 102); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255);">
	疑问：</p>
<p style="margin: 1.5em 0px; padding: 0px; border: 0px; font-size: 12px; font: inherit; vertical-align: baseline; line-height: 18px; color: rgb(102, 102, 102); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255);">
	其中，不小心，注意到了一个小事情，</p>
<p style="margin: 1.5em 0px; padding: 0px; border: 0px; font-size: 12px; font: inherit; vertical-align: baseline; line-height: 18px; color: rgb(102, 102, 102); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255);">
	UEditor的&ldquo;访问插件主页&rdquo;的地址，竟然是：</p>
<p style="margin: 1.5em 0px; padding: 0px; border: 0px; font-size: 12px; font: inherit; vertical-align: baseline; line-height: 18px; color: rgb(102, 102, 102); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255);">
	<a href="http://wordpress.org/extend/plugins/ck-and-syntaxhighlighter/" style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font: inherit; vertical-align: baseline; color: blue;" target="_blank">CK and SyntaxHighlighter</a></p>
<p style="margin: 1.5em 0px; padding: 0px; border: 0px; font-size: 12px; font: inherit; vertical-align: baseline; line-height: 18px; color: rgb(102, 102, 102); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255);">
	话说，这个插件，我之前是用过的。觉得还是不是很爽，所以就没继续用的。</p>
<p style="margin: 1.5em 0px; padding: 0px; border: 0px; font-size: 12px; font: inherit; vertical-align: baseline; line-height: 18px; color: rgb(102, 102, 102); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255);">
	但是UEditor的插件主页，竟然是这个地址，所以觉得很诡异。</p>
<p style="margin: 1.5em 0px; padding: 0px; border: 0px; font-size: 12px; font: inherit; vertical-align: baseline; line-height: 18px; color: rgb(102, 102, 102); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255);">
	难道UEditor，是从CK and SyntaxHighlighter演变过来的？</p>
<p style="margin: 1.5em 0px; padding: 0px; border: 0px; font-size: 12px; font: inherit; vertical-align: baseline; line-height: 18px; color: rgb(102, 102, 102); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255);">
	暂时没搞懂。知情的，可以回复一下。</p>
<p style="margin: 1.5em 0px; padding: 0px; border: 0px; font-size: 12px; font: inherit; vertical-align: baseline; line-height: 18px; color: rgb(102, 102, 102); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255);">
	&nbsp;</p>
<p style="margin: 1.5em 0px; padding: 0px; border: 0px; font-size: 12px; font: inherit; vertical-align: baseline; line-height: 18px; color: rgb(102, 102, 102); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255);">
	&nbsp;</p>
<p style="margin: 1.5em 0px; padding: 0px; border: 0px; font-size: 12px; font: inherit; vertical-align: baseline; line-height: 18px; color: rgb(102, 102, 102); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255);">
	4.再去将本地的</p>
<p style="margin: 1.5em 0px; padding: 0px; border: 0px; font-size: 12px; font: inherit; vertical-align: baseline; line-height: 18px; color: rgb(102, 102, 102); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255);">
	ue3.3.2-edit-form-advanced.php</p>
<p style="margin: 1.5em 0px; padding: 0px; border: 0px; font-size: 12px; font: inherit; vertical-align: baseline; line-height: 18px; color: rgb(102, 102, 102); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255);">
	改名为</p>
<p style="margin: 1.5em 0px; padding: 0px; border: 0px; font-size: 12px; font: inherit; vertical-align: baseline; line-height: 18px; color: rgb(102, 102, 102); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255);">
	edit-form-advanced.php</p>
<p style="margin: 1.5em 0px; padding: 0px; border: 0px; font-size: 12px; font: inherit; vertical-align: baseline; line-height: 18px; color: rgb(102, 102, 102); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255);">
	并顺便<a href="http://www.crifan.com/files/doc/docbook/rec_soft_npp/release/html/rec_soft_npp.html#npp_diff_enc_conversion" style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font: inherit; vertical-align: baseline; color: blue;" target="_blank">用Notepad++将其编码转为UTF-8</a>：</p>
<p style="margin: 1.5em 0px; padding: 0px; border: 0px; font-size: 12px; font: inherit; vertical-align: baseline; line-height: 18px; color: rgb(102, 102, 102); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255);">
	<a href="http://www.crifan.com/files/pic/uploads/2012/12/change-edit-form-advanced-php-to-utf8_thumb.png" style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font: inherit; vertical-align: baseline; color: blue;" target="_blank"><img alt="change edit form advanced php to utf8" border="0" height="468" src="http://www.crifan.com/files/pic/uploads/2012/12/change-edit-form-advanced-php-to-utf8_thumb.png" style="margin: 0px 0px 1.5em; padding: 0px 0px 5px; border: 0px; font-size: 12px; font: inherit; vertical-align: baseline; background-image: none; -webkit-box-shadow: rgba(50, 50, 50, 0.74902) 0px 1px 4px; box-shadow: rgba(50, 50, 50, 0.74902) 0px 1px 4px; max-width: 100%; overflow: hidden; display: inline;" title="change edit form advanced php to utf8" width="624" /></a></p>
<p style="margin: 1.5em 0px; padding: 0px; border: 0px; font-size: 12px; font: inherit; vertical-align: baseline; line-height: 18px; color: rgb(102, 102, 102); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255);">
	然后再上传并覆盖在线wordpress中的</p>
<p style="margin: 1.5em 0px; padding: 0px; border: 0px; font-size: 12px; font: inherit; vertical-align: baseline; line-height: 18px; color: rgb(102, 102, 102); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255);">
	/wp-admin/edit-form-advanced.php</p>
<p style="margin: 1.5em 0px; padding: 0px; border: 0px; font-size: 12px; font: inherit; vertical-align: baseline; line-height: 18px; color: rgb(102, 102, 102); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255);">
	5.去在线wordpress中，新建文章：</p>
<p style="margin: 1.5em 0px; padding: 0px; border: 0px; font-size: 12px; font: inherit; vertical-align: baseline; line-height: 18px; color: rgb(102, 102, 102); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255);">
	<a href="http://www.crifan.com/files/pic/uploads/2012/12/article-write-article_thumb.png" style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font: inherit; vertical-align: baseline; color: blue;" target="_blank"><img alt="article write article" border="0" height="185" src="http://www.crifan.com/files/pic/uploads/2012/12/article-write-article_thumb.png" style="margin: 0px 0px 1.5em; padding: 0px 0px 5px; border: 0px; font-size: 12px; font: inherit; vertical-align: baseline; background-image: none; -webkit-box-shadow: rgba(50, 50, 50, 0.74902) 0px 1px 4px; box-shadow: rgba(50, 50, 50, 0.74902) 0px 1px 4px; max-width: 100%; overflow: hidden; display: inline;" title="article write article" width="394" /></a></p>
<p style="margin: 1.5em 0px; padding: 0px; border: 0px; font-size: 12px; font: inherit; vertical-align: baseline; line-height: 18px; color: rgb(102, 102, 102); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255);">
	看看编辑器是否改变成UEditor没。</p>
<p style="margin: 1.5em 0px; padding: 0px; border: 0px; font-size: 12px; font: inherit; vertical-align: baseline; line-height: 18px; color: rgb(102, 102, 102); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255);">
	然后看到果然，默认的编辑器，从TinyMCE变成了UEditor。</p>
<p style="margin: 1.5em 0px; padding: 0px; border: 0px; font-size: 12px; font: inherit; vertical-align: baseline; line-height: 18px; color: rgb(102, 102, 102); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255);">
	6.虽然折腾了试试，效果的确还是很不错的：</p>
<p style="margin: 1.5em 0px; padding: 0px; border: 0px; font-size: 12px; font: inherit; vertical-align: baseline; line-height: 18px; color: rgb(102, 102, 102); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255);">
	<a href="http://www.crifan.com/files/pic/uploads/2012/12/set-text-color_thumb.png" style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font: inherit; vertical-align: baseline; color: blue;" target="_blank"><img alt="set text color" border="0" height="425" src="http://www.crifan.com/files/pic/uploads/2012/12/set-text-color_thumb.png" style="margin: 0px 0px 1.5em; padding: 0px 0px 5px; border: 0px; font-size: 12px; font: inherit; vertical-align: baseline; background-image: none; -webkit-box-shadow: rgba(50, 50, 50, 0.74902) 0px 1px 4px; box-shadow: rgba(50, 50, 50, 0.74902) 0px 1px 4px; max-width: 100%; overflow: hidden; display: inline;" title="set text color" width="640" /></a></p>
<p style="margin: 1.5em 0px; padding: 0px; border: 0px; font-size: 12px; font: inherit; vertical-align: baseline; line-height: 18px; color: rgb(102, 102, 102); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255);">
	<a href="http://www.crifan.com/files/pic/uploads/2012/12/set-text-background_thumb.png" style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font: inherit; vertical-align: baseline; color: blue;" target="_blank"><img alt="set text background" border="0" height="425" src="http://www.crifan.com/files/pic/uploads/2012/12/set-text-background_thumb.png" style="margin: 0px 0px 1.5em; padding: 0px 0px 5px; border: 0px; font-size: 12px; font: inherit; vertical-align: baseline; background-image: none; -webkit-box-shadow: rgba(50, 50, 50, 0.74902) 0px 1px 4px; box-shadow: rgba(50, 50, 50, 0.74902) 0px 1px 4px; max-width: 100%; overflow: hidden; display: inline;" title="set text background" width="640" /></a></p>
<p style="margin: 1.5em 0px; padding: 0px; border: 0px; font-size: 12px; font: inherit; vertical-align: baseline; line-height: 18px; color: rgb(102, 102, 102); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255);">
	&nbsp;</p>
<p style="margin: 1.5em 0px; padding: 0px; border: 0px; font-size: 12px; font: inherit; vertical-align: baseline; line-height: 18px; color: rgb(102, 102, 102); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255);">
	<a href="http://www.crifan.com/files/pic/uploads/2012/12/test-ueditor-edit-text-effect-is-good_thumb.png" style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font: inherit; vertical-align: baseline; color: blue; outline: none;" target="_blank"><img alt="test ueditor edit text effect is good" border="0" height="421" src="http://www.crifan.com/files/pic/uploads/2012/12/test-ueditor-edit-text-effect-is-good_thumb.png" style="margin: 0px 0px 1.5em; padding: 0px 0px 5px; border: 0px; font-size: 12px; font: inherit; vertical-align: baseline; background-image: none; -webkit-box-shadow: rgba(50, 50, 50, 0.74902) 0px 1px 4px; box-shadow: rgba(50, 50, 50, 0.74902) 0px 1px 4px; max-width: 100%; overflow: hidden; display: inline;" title="test ueditor edit text effect is good" width="640" /></a></p>
<p style="margin: 1.5em 0px; padding: 0px; border: 0px; font-size: 12px; font: inherit; vertical-align: baseline; line-height: 18px; color: rgb(102, 102, 102); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255);">
	&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>https://www.softwareace.cn/?feed=rss2&#038;p=213</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>为wordpress主题集成支付宝功能</title>
		<link>https://www.softwareace.cn/?p=106</link>
		<comments>https://www.softwareace.cn/?p=106#comments</comments>
		<pubDate>Mon, 21 Jan 2013 05:08:42 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[杂类]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.softwareace.cn/?p=106</guid>
		<description><![CDATA[这个功能可能是许多要做电子商务网站的wordpress爱好者最为需要的功能了，虽然其过程略显繁琐，但实现之后而 [&#8230;]]]></description>
				<content:encoded><![CDATA[<p style="margin: 10px 0px 0px; padding: 0px; border: 0px; outline: 0px; font-size: 14px; vertical-align: baseline; background-color: rgb(241, 238, 227); color: rgb(131, 132, 123); font-family: 微软雅黑, PMingLiU, Verdana, Arial, Helvetica, sans-serif; line-height: 22px;">
	这个功能可能是许多要做电子商务网站的wordpress爱好者最为需要的功能了，虽然其过程略显繁琐，但实现之后而获得的成就感也是十分强烈的。下面就让我们来看一下实现的具体步骤：<br style="margin: 0px; padding: 0px;" /><br />
	总共需要三个大步骤：<br style="margin: 0px; padding: 0px;" /><br />
	首先，我们要申请支付宝商家服务，这个不用多说了吧！就好像是网页QQ一样，需要人家提供开源授权才可以的；<br style="margin: 0px; padding: 0px;" /><br />
	其次，我们申请完之后要获取系统集成API；<br style="margin: 0px; padding: 0px;" /><br />
	最后，进行接口安装与代码修改，这些主要是针对wordpress了，需要修改一些程序代码。<br style="margin: 0px; padding: 0px;" /><br />
	下面我们就来看看具体的实现步骤，步骤比较多，请耐心跟着一步步去做:<br style="margin: 0px; padding: 0px;" /><br />
	1.我们去注册一个支付宝帐号，已经有支付宝账号的就不需要这一步了，支付宝注册地址：https://www.alipay.com/<br style="margin: 0px; padding: 0px;" /><br />
	2.用支付宝账号进行登录，进入支付宝首页&ldquo;商家服务&rdquo;-&ldquo;即时到帐（我需要的）&rdquo;。<br style="margin: 0px; padding: 0px;" /><br />
	3.填写商家服务中心申请表格，并进行&ldquo;签约商家&rdquo;的实名认证。需要你提供真实的个人信息及手机号码，以便接收验证码。<br style="margin: 0px; padding: 0px;" /><br />
	4.提交信息并等待大约24小时。<br style="margin: 0px; padding: 0px;" /><br />
	5.接收签约商家确认邮件并下载系统集成需要的代码示例。如果你不懂代码，就登录支付宝官网上的&ldquo;商家服务&rdquo;，点击进入合同列表里的&ldquo;申请集成&rdquo;，请求支付宝的技术支持人员帮助你集成。<br style="margin: 0px; padding: 0px;" /><br />
	6.支付宝的技术支持人员会在你申请集成后的48小时内给你打电话。你告诉她你是wordpress系统，并告诉她你是网站的管理员，请她帮你设置好基于wp的接口程序。大约2小时后，一个基于wp环境的接口程序会发送到你的email中。<br style="margin: 0px; padding: 0px;" /><br />
	7.下面的操作，都是基于php主机的。win应该也差不多，但是，不会有人用IIS配置wp吧？<br style="margin: 0px; padding: 0px;" /><br />
	8.将支付宝发送给你的接口程序（rar压缩包），解压缩后，再压缩成zip的。至于为什么，因为我的是GD主机，只能用zip，这时，你的接口程序已经压缩为alipay.zip了<br style="margin: 0px; padding: 0px;" /><br />
	9.在你的服务器中新建一个文件夹/alipay，并将alipay.zip压缩包上传至该目录。在服务器端解压缩<br style="margin: 0px; padding: 0px;" /><br />
	10.完成解压缩后，访问支付宝接口程序的路径为：www.xmlas.com/alipay/index.php（根据各自情况，各有不同）<br style="margin: 0px; padding: 0px;" /><br />
	11.至此，wordpress与alipay的系统成绩已经完成了一大半。此时的支付通道已经可以使用了！你可以试着以用户的身份进行一次支付并到支付宝账户中查看支付金额是否已经入账。<br style="margin: 0px; padding: 0px;" /><br />
	12.最后必要的一些修改：支付宝默认的接口页面可能与我们网站的整体风格不太相称。这时可能需要我们对页面做一些修改。如：<br style="margin: 0px; padding: 0px;" /><br />
	在</p>
<div class="dp-highlighter" style="margin: 0px; padding: 0px; border: 1px solid rgb(202, 202, 202); outline: 0px; font-size: 12px; vertical-align: baseline; background-color: rgb(224, 222, 217); font-family: 'Courier New', Courier, mono; width: 618.75px; overflow: auto; color: rgb(131, 132, 123); line-height: 22px;">
<ol class="dp-c" style="margin: 0px 0px 1px 38px; padding: 2px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; list-style: none; color: rgb(43, 145, 175);">
<li class="alt" style="margin: 0px; padding: 10px; border-width: 0px 0px 0px 1px; border-left-style: solid; border-left-color: rgb(209, 215, 220); outline: 0px; vertical-align: baseline; background-color: transparent; list-style: decimal outside; line-height: 12px;">
			<span style="margin: 0px; padding: 0px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; color: rgb(109, 82, 27);"><span style="margin: 0px; padding: 0px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent;">&lt;TD&nbsp;</span><span class="keyword" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; color: blue;">class</span><span style="margin: 0px; padding: 0px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent;">=</span><span class="string" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; color: blue;">&quot;title&quot;</span><span style="margin: 0px; padding: 0px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent;">&gt;&nbsp;&nbsp;</span></span></li>
</ol>
</div>
<p style="margin: 10px 0px 0px; padding: 0px; border: 0px; outline: 0px; font-size: 14px; vertical-align: baseline; background-color: rgb(241, 238, 227); color: rgb(131, 132, 123); font-family: 微软雅黑, PMingLiU, Verdana, Arial, Helvetica, sans-serif; line-height: 22px;">
	处修改支付页面的名称；<br style="margin: 0px; padding: 0px;" /><br />
	在</p>
<div class="dp-highlighter" style="margin: 0px; padding: 0px; border: 1px solid rgb(202, 202, 202); outline: 0px; font-size: 12px; vertical-align: baseline; background-color: rgb(224, 222, 217); font-family: 'Courier New', Courier, mono; width: 618.75px; overflow: auto; color: rgb(131, 132, 123); line-height: 22px;">
<ol class="dp-c" style="margin: 0px 0px 1px 38px; padding: 2px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; list-style: none; color: rgb(43, 145, 175);">
<li class="alt" style="margin: 0px; padding: 10px; border-width: 0px 0px 0px 1px; border-left-style: solid; border-left-color: rgb(209, 215, 220); outline: 0px; vertical-align: baseline; background-color: transparent; list-style: decimal outside; line-height: 12px;">
			<span style="margin: 0px; padding: 0px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; color: rgb(109, 82, 27);"><span style="margin: 0px; padding: 0px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent;">&lt;TD&nbsp;</span><span class="keyword" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; color: blue;">class</span><span style="margin: 0px; padding: 0px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent;">=</span><span class="string" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; color: blue;">&quot;form&quot;</span><span style="margin: 0px; padding: 0px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent;">-left&gt;&nbsp;&nbsp;</span></span></li>
</ol>
</div>
<p style="margin: 10px 0px 0px; padding: 0px; border: 0px; outline: 0px; font-size: 14px; vertical-align: baseline; background-color: rgb(241, 238, 227); color: rgb(131, 132, 123); font-family: 微软雅黑, PMingLiU, Verdana, Arial, Helvetica, sans-serif; line-height: 22px;">
	修改表单的标签；<br style="margin: 0px; padding: 0px;" /><br />
	在</p>
<div class="dp-highlighter" style="margin: 0px; padding: 0px; border: 1px solid rgb(202, 202, 202); outline: 0px; font-size: 12px; vertical-align: baseline; background-color: rgb(224, 222, 217); font-family: 'Courier New', Courier, mono; width: 618.75px; overflow: auto; color: rgb(131, 132, 123); line-height: 22px;">
<ol class="dp-c" style="margin: 0px 0px 1px 38px; padding: 2px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; list-style: none; color: rgb(43, 145, 175);">
<li class="alt" style="margin: 0px; padding: 10px; border-width: 0px 0px 0px 1px; border-left-style: solid; border-left-color: rgb(209, 215, 220); outline: 0px; vertical-align: baseline; background-color: transparent; list-style: decimal outside; line-height: 12px;">
			<span style="margin: 0px; padding: 0px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; color: rgb(109, 82, 27);"><span style="margin: 0px; padding: 0px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent;">&lt;span&nbsp;id=</span><span class="string" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; color: blue;">&quot;glowtext&quot;</span><span style="margin: 0px; padding: 0px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent;">&gt;&nbsp;&nbsp;</span></span></li>
</ol>
</div>
<p style="margin: 10px 0px 0px; padding: 0px; border: 0px; outline: 0px; font-size: 14px; vertical-align: baseline; background-color: rgb(241, 238, 227); color: rgb(131, 132, 123); font-family: 微软雅黑, PMingLiU, Verdana, Arial, Helvetica, sans-serif; line-height: 22px;">
	修改支付页面右边栏中的文字块<br style="margin: 0px; padding: 0px;" /><br />
	在</p>
<div class="dp-highlighter" style="margin: 0px; padding: 0px; border: 1px solid rgb(202, 202, 202); outline: 0px; font-size: 12px; vertical-align: baseline; background-color: rgb(224, 222, 217); font-family: 'Courier New', Courier, mono; width: 618.75px; overflow: auto; color: rgb(131, 132, 123); line-height: 22px;">
<ol class="dp-c" style="margin: 0px 0px 1px 38px; padding: 2px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; list-style: none; color: rgb(43, 145, 175);">
<li class="alt" style="margin: 0px; padding: 10px; border-width: 0px 0px 0px 1px; border-left-style: solid; border-left-color: rgb(209, 215, 220); outline: 0px; vertical-align: baseline; background-color: transparent; list-style: decimal outside; line-height: 12px;">
			<span style="margin: 0px; padding: 0px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; color: rgb(109, 82, 27);"><span style="margin: 0px; padding: 0px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent;">&lt;TD&nbsp;</span><span class="keyword" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; color: blue;">class</span><span style="margin: 0px; padding: 0px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent;">=</span><span class="string" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; color: blue;">&quot;lh15&nbsp;txt12&quot;</span><span style="margin: 0px; padding: 0px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent;">&gt;&nbsp;&nbsp;</span></span></li>
</ol>
</div>
<p style="margin: 10px 0px 0px; padding: 0px; border: 0px; outline: 0px; font-size: 14px; vertical-align: baseline; background-color: rgb(241, 238, 227); color: rgb(131, 132, 123); font-family: 微软雅黑, PMingLiU, Verdana, Arial, Helvetica, sans-serif; line-height: 22px;">
	处修改footer位置的内容，但是应该保留alipay的链接信息；<br style="margin: 0px; padding: 0px;" /><br />
	最后我们需要对wordpress的程序文件进行适当的修改：<br style="margin: 0px; padding: 0px;" /><br />
	首先，打开alipay_config.php文件；<br style="margin: 0px; padding: 0px;" /><br />
	在</p>
<div class="dp-highlighter" style="margin: 0px; padding: 0px; border: 1px solid rgb(202, 202, 202); outline: 0px; font-size: 12px; vertical-align: baseline; background-color: rgb(224, 222, 217); font-family: 'Courier New', Courier, mono; width: 618.75px; overflow: auto; color: rgb(131, 132, 123); line-height: 22px;">
<ol class="dp-c" style="margin: 0px 0px 1px 38px; padding: 2px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; list-style: none; color: rgb(43, 145, 175);">
<li class="alt" style="margin: 0px; padding: 10px; border-width: 0px 0px 0px 1px; border-left-style: solid; border-left-color: rgb(209, 215, 220); outline: 0px; vertical-align: baseline; background-color: transparent; list-style: decimal outside; line-height: 12px;">
			<span style="margin: 0px; padding: 0px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; color: rgb(109, 82, 27);"><span class="vars" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; color: rgb(221, 0, 0);">$return_url</span><span style="margin: 0px; padding: 0px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent;">=&nbsp;&nbsp;</span></span></li>
</ol>
</div>
<p style="margin: 10px 0px 0px; padding: 0px; border: 0px; outline: 0px; font-size: 14px; vertical-align: baseline; background-color: rgb(241, 238, 227); color: rgb(131, 132, 123); font-family: 微软雅黑, PMingLiU, Verdana, Arial, Helvetica, sans-serif; line-height: 22px;">
	处修改完成支付后的跳转页面。你可能需要在根目录中手动新建一个类似complete-payment.html的页面让用户知道把钱交给你之后他应该做什么；<br style="margin: 0px; padding: 0px;" /><br />
	在</p>
<div class="dp-highlighter" style="margin: 0px; padding: 0px; border: 1px solid rgb(202, 202, 202); outline: 0px; font-size: 12px; vertical-align: baseline; background-color: rgb(224, 222, 217); font-family: 'Courier New', Courier, mono; width: 618.75px; overflow: auto; color: rgb(131, 132, 123); line-height: 22px;">
<ol class="dp-c" style="margin: 0px 0px 1px 38px; padding: 2px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; list-style: none; color: rgb(43, 145, 175);">
<li class="alt" style="margin: 0px; padding: 10px; border-width: 0px 0px 0px 1px; border-left-style: solid; border-left-color: rgb(209, 215, 220); outline: 0px; vertical-align: baseline; background-color: transparent; list-style: decimal outside; line-height: 12px;">
			<span style="margin: 0px; padding: 0px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; color: rgb(109, 82, 27);"><span class="vars" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; color: rgb(221, 0, 0);">$antiphishing</span><span style="margin: 0px; padding: 0px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent;">=&nbsp;&nbsp;</span></span></li>
</ol>
</div>
<p style="margin: 10px 0px 0px; padding: 0px; border: 0px; outline: 0px; font-size: 14px; vertical-align: baseline; background-color: rgb(241, 238, 227); color: rgb(131, 132, 123); font-family: 微软雅黑, PMingLiU, Verdana, Arial, Helvetica, sans-serif; line-height: 22px;">
	处设置是否开启防钓鱼功能。支付宝建议，开启前应和官方联系一下，一旦开启就无法关闭；<br style="margin: 0px; padding: 0px;" /><br />
	在</p>
<div class="dp-highlighter" style="margin: 0px; padding: 0px; border: 1px solid rgb(202, 202, 202); outline: 0px; font-size: 12px; vertical-align: baseline; background-color: rgb(224, 222, 217); font-family: 'Courier New', Courier, mono; width: 618.75px; overflow: auto; color: rgb(131, 132, 123); line-height: 22px;">
<ol class="dp-c" style="margin: 0px 0px 1px 38px; padding: 2px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; list-style: none; color: rgb(43, 145, 175);">
<li class="alt" style="margin: 0px; padding: 10px; border-width: 0px 0px 0px 1px; border-left-style: solid; border-left-color: rgb(209, 215, 220); outline: 0px; vertical-align: baseline; background-color: transparent; list-style: decimal outside; line-height: 12px;">
			<span style="margin: 0px; padding: 0px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; color: rgb(109, 82, 27);"><span class="vars" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; color: rgb(221, 0, 0);">$mainname</span><span style="margin: 0px; padding: 0px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent;">=&nbsp;&ldquo;收款方名称&rdquo;;&nbsp;&nbsp;</span></span></li>
</ol>
</div>
<p style="margin: 10px 0px 0px; padding: 0px; border: 0px; outline: 0px; font-size: 14px; vertical-align: baseline; background-color: rgb(241, 238, 227); color: rgb(131, 132, 123); font-family: 微软雅黑, PMingLiU, Verdana, Arial, Helvetica, sans-serif; line-height: 22px;">
	这行代码中，把收款方名称替换为你网站的名称。<br style="margin: 0px; padding: 0px;" /><br />
	到此，教程结束，请需要此功能的朋友自行实验去吧，相信会获得十分强烈的成就感滴&hellip;&hellip;</p>
]]></content:encoded>
			<wfw:commentRss>https://www.softwareace.cn/?feed=rss2&#038;p=106</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
