Linux 软件免费装

More from Google

开发者 tompahoward
更新时间 2007年7月2日 03:34
捐献地址: 去捐款
PHP版本: 2.0 及以上
WordPress版本: 2.2

标签

google search revenue Windy Road

下载

0.0.0 0.0.1 0.0.2

详情介绍:

Now you can easily add search results from Google within your WordPress search results page. The More from Google plugin adds the required fields to your search form and outputs the required XHTML and Javascript to display Google's results within your WordPress search results page. This can be used: The More from Google plugin, also allows you to specify a search term for each post. This search term is used to create a link at the bottom of your post linking to search results for that term. This encourages your readers to Google for related articles, without leaving your site. How it Works Google provides an option to have their results embedded within your page. To achieve this, Google can provide you with code for a custom search form and code for displaying the results. The More From Google plugin creates a merged search form, combining Google's search form, with the default WordPress search form. When this merged search form is submitted, it tells both WordPress and Google to perform the search. Because Google's portion of the form is designed to be destination independent (it doesn't care what what page your results are shown on) there form is still directed to the WordPress search results page. Your search results page will display the WordPress search results as usual and with slight modification using the display code from Google, it will also show the search results from Google. The More from Google link at the bottom of each post call a Javascript function that populates the search form and then submits it. Because the embedded results from Google will only be displayed if Javascript is enabled in your readers browser, the More from Google link is only displayed if Javascript is enabled.

安装:

Installing With Themes That Support More From Google
  1. copy the more-from-google directory to your wp-contents/plugins directory.
  2. Activate the More from Google plugin in your plugins administration page.
  3. When editing your posts, add a search term in the 'Google Search Term' field.
Installing With Themes That Don't Support More From Google
  1. In the theme you are using, make sure the id of the search form is searchform and add the following code within the search form:
if( function_exists( 'mfg_search_inputs' ) ) { mfg_search_inputs(); } for instance, in the default theme, you would edit searchform.php and change to
  1. In the theme you are using, add the following code to the end of the search page:
if( function_exists('mfg_show_results') ) { mfg_show_results(); } for instance, in the default theme, you would edit search.php and change to
  1. In the theme you are using, edit the search results page and the following condition to the have_posts if statement:
(!function_exists('mfg_show_wordpress_search_results') || mfg_show_wordpress_search_results()) for instance, in the default theme, you would edit search.php and change to
  1. Perform the same steps in "Installing With Themes That Support More From Google"