Eric @ EricBess WebHome

Rather than just thinking, knowing it would be meaningless

Chinese (Simplified) flagItalian flagKorean flagPortuguese flagEnglish flagGerman flagFrench flagSpanish flagJapanese flagArabic flagRussian flagGreek flagDutch flagBulgarian flagCzech flagCroat flagDanish flagFinnish flagHindi flagPolish flagRumanian flagSwedish flagNorwegian flagCatalan flagFilipino flagHebrew flagIndonesian flagLatvian flagLithuanian flagSerbian flagSlovak flagSlovenian flagUkrainian flagVietnamese flag
By N2H

Add to your blog to donate multi-currency functionality (including RMB)

To make their own blog sustainable development, it is necessary to be able to feed themselves.

Some time ago, to do a donor wordpress plugin WP-DONATORS, can support PAYPAL donation and multi-currency exchange rate for automatic conversion. And other donations button, it also has a background with PAYPAL API real-time communication, the return of payments data, and then the donor specified connection with the advertisements on the "donor cloud" showing up.

Followed by more background and support for the currency. First, the renminbi, paypal.com does not support the yuan, of course, the thought of "pay-Bao", but "pay-bao" to communicate their staff not to provide personal donation function.

Discovered the "PayPal" (that is paypal China) recently in October, he updated the cost of RMB policy, free of charge. Should pay attention to the "PayPal" paypal is specific to China's renminbi business, with Universal paypal.com account (foreign currency), so you must specifically for the "PayPal" registered account. Registration, "PayPal"

PayPal Sign up now and begin to accept credit card payments.

They just use the same paypal API so easy to add features yuan. When used in the background as long as the words "PayPal" account opened on the RMB. When the donor to use RMB for payment, the amount went to "PayPal" account, go to other currencies paypal account. You can use the credit card paypal.com to open foreign currency accounts to support multi-currency
Sign up for PayPal and start accepting credit card payments instantly.

Click to continue reading

November 12th, 2008 Posted by eric | WordPress, Web Technology | one comment

WordPress plug-ins \ theme of the localization

Once you plug the programming work is over, another aspect that is how you plug the internationalization (of course, which is built on your work you want to release to the public on the premise). "Internationalization" of a building that is your software so that it can be localized in the process; "localization" of software that will show you the text translated into various languages. WordPress has been all over the world come from the local fans, it will be to internationalization and localization features into its structure, including the localization of the plug-in function. Would like to learn more about the localization of the GNU gettext background knowledge, in the light of translation WordPress.

Strongly recommend that you carry out your plug-in internationalization, so that the user name from all corners of the country can localize it. This whole process is very straightforward:

  • Give your plug-in election with a translation of the "text of the domain" name. This is generally the same plug-in your paper the same name, of course, does not include. Php suffix, and must be unique, at least not with the guarantee that the user has to install other plug-in of the same name.
  • At any time you want to use the plug-in to the web page to display text readers (that is, "text message") as much as possible to embed them in the following two procedures WordPress gettext function in any of the above. Keep in mind that different from the core WordPress code, plug-in you, the internationalization of the function, you should use the second parameter to pass you on-demand version of the domain. The core code in WordPress, the default parameter is empty.

__ () Message will be used as a parameter passed to another function. _e () used to write message directly to the page.

__ ($ message, $ domain): Using the language of the localization of $ domain for the translation of $ message. The output string can continue to be other function call.
_e ($ message, $ domain): Using the language of the localization of $ domain for the translation of $ message, and then to show the user's screen. If your text will be displayed directly to the reader, you can use this function.
  • For your plug-in to create a document POT (a list of all the text of the translation entry), together with the plug-in your launch. Plug-in users will need to generate a good translation localization MO, and then put it in your plug-in in the same folder. Mo and the name of the file also pay attention to, as should be the domain-ll_CC.mo, here is ll_CC local and national language code (for example, zh_CN). Reference to the translation of WordPress more on the POT file, MO localization of documents and information.
  • In the plug-in you added load_plugin_textdomain a subroutine to call your plug-in translation. The sub-gettext you need a certain function ahead, but the best is the later the better (because of a number of multi-lingual plug-in called in when a number of changes in the geographical settings). Perhaps the way forward is for all your plug-in's initial subroutines in front of the addition of a subroutine. For example, if your domain is called the text "fabfunc", are:

Click to continue reading

October 27th, 2008 Posted by eric | WordPress, Wordpress Programming, Web technology | no comments

WP-Donators Plugin (WP sponsor of the plug-in)

Plugin Name: WP-Donators (WP sponsor of the plug-in)
Author: Eric Wang
Stable Version: 1.0.9
Author URL: http://www.ericbess.com/ericblog/
Plugin URL: http://wordpress.org/extend/plugins/wp-donators/
Download: http://downloads.wordpress.org/plugin/wp-donators.zip

== Description ==

Wp-Donators provides a smart donation function to auto-leave the sponsor information in a container after payment. Sponsors can donate and submit name / URL or TextLink ad. The information of the latest donors are displayed in the Sponsors Cloud box. The more a person donations, the bigger their link will be.It 's will support most popular payment interface in future. ParPal Just the first one.

wordpress donor plug-WP-DONATORS, multi-currency support PAYPAL donation and the exchange rate for automatic conversion. And other donations button, it also has a background with PAYPAL API real-time communication, the return of payments data, and then the donor specified connection with the advertisements on the "donor cloud" showing up.

== Depends On ==

  • If your haven't the paypal account so far.Please register paypal account: [PayPal Registration] first. Sign up for PayPal and start accepting credit card payments instantly.
  • PHP5, Openssl, fsock.

Click to continue reading

October 21st, 2008 Posted by eric | WordPress | 33 comments

Internationalization of the Blog-Global Translator (translation plug-in)

If you want to own more internationalized Blog worth a try: Wordpress Global Translator Plugin, a Blog to provide translation of the plug-in functions can be combined with Google, Promt and Altavista Babel Fish translation service provided to your Blog article translation .

In fact, the plug-in features much more than simple translation, also contribute to the SEO search engine optimization, which can generate articles for every article asked, and to include search engine will help increase traffic, in fact, I have to deploy Global Translator a week after the visit to increase international. It also provides other features cache (space) and from the definition adopted by the CSS style of the translation button.

Installation method:

1, download the plug-in, to upload Wordpress plug-in directory, activate the background. Access to options -> Global Translator menu, select the translation service (I am here elections, only Google Translation Services to work properly, but you can also try other), select your Blog language, open the cache option, you can save.

2, in the template (I head.php) insert the following code.

? View Code PHP
 1 
 2 
 3 
 4 
 5 
  <? Php> 
  function_exists ( "gltr_build_flags_bar" ) ) { if (function_exists ( "gltr_build_flags_bar")) ( 
  gltr_build_flags_bar (); 
  ) 
  ?> 

Click to continue reading

May 26th, 2008 Posted by eric | WordPress | no comments

WP-CODEBOX Plugin (code highlighted plug-in)

Author: Eric.Wang
Plugin URL: http://wordpress.org/extend/plugins/wp-codebox/
Tags: syntax highlighting, syntax, highlight, code, formatting
Requires at least: 2.0
Tested up to: 2.5.1
Stable tag: 1.3.1
Download

Donate for this plugin development, Thanks!

== Description ==

WP-CODEBOX highlighted code plug-ins to support multiple languages, download the code, copied to the clipboard, code box strengths and background to set the default attributes. The continued development of plug-ins are welcome to use and report bugs.
Wp-CodeBox provides clean syntax highlighting and advanced feature for embedding source code within pages or posts. It support a wide range of popular languages highlighting with line numbers, code download, Copy to clipboard, collapse codebox, automatic keywords link to API manual and maintains formatting while copying snippets of code from the browser.

It's provide simple background configuration for highlighter style / formatting customization.
Since the plugin is developing, in the future it will support more options. (CSS option, Keyword display style, Auto Caps / Nocaps, Case Sensitivity etc.)

Click to continue reading

March 3rd, 2008 Posted by eric | WordPress | 106 comments

WordPress plug-in ajax-round: AJAXed

  Translator: eric.wang posted please reference: http://ericbess.com Original: http://anthologyoi.com/awp/ajaxd-wordpress-readme 

AJAX WordPress comprehensive package: WP AJAXed [load]

The basic description

The installation of AWP

  1. Download AWP.
  2. Decompression and AWP upload to your wordpress plugin folder (/ wp-content/plugins /).
  3. Start plug-in.
  4. If you're using WordPress 2.1, and plans to use jquery.js you must download jquery.js upload files jquery.js to wp-includes/js folder.

Embedded page to display

Into the management panel presentation, to ensure that the "Inline Posts" is active, into the "POST" label. Check the "Simple Posts", Save.

To display embedded comments

The theme of the opens your index.php (may be page, single)
Replacement: <? Php comments_template ();?> With:

<? php do_action ( 'awp_commentform_link');?> (message box)
<? php do_action ( 'awp_commentform');?>
<? php do_action ( 'awp_comments_link');?> (content of the message)
<? php do_action ( 'awp_comments');?>

Nested inside page

Marked by <!-Embed = XXX-> XXX is nested log ID.

High-end

To be continued ..

February 5th, 2008 Posted by eric | WordPress | 2 comments

2 3 4 5 » Page 1 of 5 1 2 3 4 5 »