Title: RDP Google Custom Search
Author: Robert D Payne
Published: <strong>2015-02-23</strong>
Last modified: 2016-11-30

---

Szukaj wtyczek

![](https://ps.w.org/rdp-google-custom-search/assets/banner-772x250.png?rev=1615984)

Wtyczka **nie została przetestowana z trzema ostatnimi głównymi wydaniami WordPressa**.
Może nie być już utrzymywana lub obsługiwana, co może skutkować problemem ze zgodnością
z nowszymi wersjami WordPressa.

![](https://ps.w.org/rdp-google-custom-search/assets/icon-128x128.png?rev=1615986)

# RDP Google Custom Search

 Autor: [Robert D Payne](https://profiles.wordpress.org/rpayne7264/)

[Pobierz](https://downloads.wordpress.org/plugin/rdp-google-custom-search.1.0.0.zip)

 * [Szczegóły](https://pl.wordpress.org/plugins/rdp-google-custom-search/#description)
 * [Recenzje](https://pl.wordpress.org/plugins/rdp-google-custom-search/#reviews)
 *  [Instalacja](https://pl.wordpress.org/plugins/rdp-google-custom-search/#installation)
 * [Rozwój](https://pl.wordpress.org/plugins/rdp-google-custom-search/#developers)

 [Wsparcie](https://wordpress.org/support/plugin/rdp-google-custom-search/)

## Opis

**ATTN: This plugin only works with the PAID version of Google Custom Search.**

With RDP Google Custom Search, you can target your site’s contents, or other site’s
contents. You can add multiple CSEs and allow your visitor to choose one.

RDP Google Custom Search uses a simple shortcode so that a search box can be placed
anywhere.

You can put a multi-CSE search box in the main content of your page, and then put
another search box in the sidebar that is dedicated to only one CSE, such as your
site.

Each search box also provides a **Page** selector, which will search the current
page and highlight matching text.

The results are displayed using a special template that replaces the content of 
the current page/post and that can be styled as desired. The default width of the
results content is 980px. The built-in rendering function marks up the results to
use Google styling HTML and class names.

This plugin can be used with the RDP Wiki Embed plugin, which allows you to have
the links in the search results that point to MediaWiki sites to postback and display
content on your own web site.

### Usage

RDP Google Custom Search is implemented using the shortcode [rdp-gcs]. It accepts
the following arguments:

 * id: (required) comma separated list of id numbers, indicating the CSEs to use
 * default: when more than one CSE is selected, this indicates the CSE to use by
   default

Examples:

[rdp-gcs id=’3′]

[rdp-gcs id=’1,3′ default=’1′]

### External Scripts Included

 * jQuery.PositionCalculator v1.1.2 under MIT License
 * jQuery Highlight under MIT License

### PHP Hook Reference:

#### rdp_gcs_render_search_results_applied

 * Params: none
 * Fires after the default render function is added to the filters array.

#### rdp_gcs_styles_enqueued

 * Params: none
 * Fires after plugin-specific styles are enqueued

#### rdp_gcs_scripts_enqueued

 * Params: none
 * Fires after plugin-specific scripts are enqueued

### PHP Filter Reference:

#### rdp_gcs_before_search_box

 * Param: empty string
 * Fires before the rendering of the search box within the results template
 * Return: any text/HTML/script to be rendered before the search box

#### rdp_gcs_after_search_box

 * Param: empty string
 * Fires after the rendering of the search box within the results template
 * Return: any text/HTML/script to be rendered after the search box

#### rdp_gcs_before_search_results

 * Param: empty string
 * Fires before the rendering of the search results within the results template
 * Return: any text/HTML/script to be rendered before the search results

#### rdp_gcs_render_search_results

 * Param 1: JSON object containing Google API search results or NULL if an error
   occurred during the API call
 * Param 2: string containing the last error message set during the search request
   or empty string if no error occurred
 * This filter is required for hooking into a function that will render the search
   results. For a custom rendering function, be sure to remove this filter during
   the rdp_gcs_render_search_results_applied hook, and then re-set this filter to
   use your custom rendering function

#### rdp_gcs_after_search_results

 * Param: empty string
 * Fires after the rendering of the search results within the results template
 * Return: any text/HTML/script to be rendered after the search results

## Zrzuty ekranu

[⌊A multi-CSE search box in the main content area, and another single-CSE search
box in the sidebar⌉⌊A multi-CSE search box in the main content area, and another
single-CSE search box in the sidebar⌉[

A multi-CSE search box in the main content area, and another single-CSE search box
in the sidebar

[⌊CSE picklist attached to a multi-CSE search box⌉⌊CSE picklist attached to a multi-
CSE search box⌉[

CSE picklist attached to a multi-CSE search box

[⌊Default rendering of search results⌉⌊Default rendering of search results⌉[

Default rendering of search results

[⌊List of Custom Search Engines added to the plugin.⌉⌊List of Custom Search Engines
added to the plugin.⌉[

List of Custom Search Engines added to the plugin.

[⌊Button to launch shortcode helper form⌉⌊Button to launch shortcode helper form⌉[

Button to launch shortcode helper form

[⌊Shortcode helper form⌉⌊Shortcode helper form⌉[

Shortcode helper form

[⌊Plugin active in the admin menu⌉⌊Plugin active in the admin menu⌉[

Plugin active in the admin menu

## Instalacja

 1. Upload `rdp-google-custom-search` folder to the `/wp-content/plugins/` directory
 2. Activate the plugin through the 'Plugins’ menu in WordPress
 3. Go to 'RDP GCS’ -> 'Add New Google CSE’
 4. Fill in the form with a Name, a Menu Title, and the JSON URL to the Google CSE
 5. Click the 'Save Changes’ button
 6. Continue to add any other Google CSEs, by following steps 4 & 5 above

#### Extra

To make everything pretty, add a rdp-gcs.custom.css file to your theme’s folder.
Start with the rdp-gcs.custom-sample.css file located in the 'pl/style/’ folder.

## Recenzje

![](https://secure.gravatar.com/avatar/2e0bdf411703adfb2d51272c5992247d82cdfbd5e5cef91ad3dc81452dc46ab6?
s=60&d=retro&r=g)

### 󠀁[Provide us free version](https://wordpress.org/support/topic/provide-us-free-version/)󠁿

 [vamban](https://profiles.wordpress.org/vamban/) 2017-02-08

Will it be possible to release plugin which compatible with free Google CSE?

 [ Przeczytaj 1 recenzje ](https://wordpress.org/support/plugin/rdp-google-custom-search/reviews/)

## Kontrybutorzy i deweloperzy

„RDP Google Custom Search” jest oprogramowaniem open source. Poniższe osoby miały
wkład w rozwój wtyczki.

Zaangażowani

 *   [ Robert D Payne ](https://profiles.wordpress.org/rpayne7264/)

[Przetłumacz wtyczkę “RDP Google Custom Search” na swój język.](https://translate.wordpress.org/projects/wp-plugins/rdp-google-custom-search)

### Interesuje cię rozwój wtyczki?

[Przeglądaj kod](https://plugins.trac.wordpress.org/browser/rdp-google-custom-search/),
sprawdź [repozytorium SVN](https://plugins.svn.wordpress.org/rdp-google-custom-search/)
lub czytaj [dziennik rozwoju](https://plugins.trac.wordpress.org/log/rdp-google-custom-search/)
przez [RSS](https://plugins.trac.wordpress.org/log/rdp-google-custom-search/?limit=100&mode=stop_on_copy&format=rss).

## Rejestr zmian

#### 0.1.4

 * REFACTOR: modified Position Calculator script
 * REFACTOR: changed add_object_page to add_menu_page

#### 0.1.3

 * REFACTOR: removed unused admin-side script file reference

#### 0.1.2

 * REFACTOR: fixed downward pointing triangle changing to entity values after picklist
   switch
 * REFACTOR: fixed code to handle search terms containing quotation marks and apostrophes,
   after postback

#### 0.1.1

 * REFACTOR: added downward pointing triangle to CSE search scope button

#### 0.1.0

 * Initial RC

## Meta

 *  Wersja **1.0.0**
 *  Ostatnia aktualizacja **10 lat temu**
 *  Włączone instalacje **10+**
 *  Wersja WordPressa ** 3.4 lub nowszej **
 *  Testowano do **4.6.30**
 *  Język
 * [English (US)](https://wordpress.org/plugins/rdp-google-custom-search/)
 * Tagi
 * [google custom search](https://pl.wordpress.org/plugins/tags/google-custom-search/)
   [google search](https://pl.wordpress.org/plugins/tags/google-search/)[search results](https://pl.wordpress.org/plugins/tags/search-results/)
 *  [Widok zaawansowany](https://pl.wordpress.org/plugins/rdp-google-custom-search/advanced/)

## Oceny

 5 na 5 gwiazdek.

 *  [  1 recenzja 5-gwiazdkowa     ](https://wordpress.org/support/plugin/rdp-google-custom-search/reviews/?filter=5)
 *  [  0 recenzji 4-gwiazdkowych     ](https://wordpress.org/support/plugin/rdp-google-custom-search/reviews/?filter=4)
 *  [  0 recenzji 3-gwiazdkowych     ](https://wordpress.org/support/plugin/rdp-google-custom-search/reviews/?filter=3)
 *  [  0 recenzji 2-gwiazdkowych     ](https://wordpress.org/support/plugin/rdp-google-custom-search/reviews/?filter=2)
 *  [  0 recenzji 1-gwiazdkowych     ](https://wordpress.org/support/plugin/rdp-google-custom-search/reviews/?filter=1)

[Twoja opinia](https://wordpress.org/support/plugin/rdp-google-custom-search/reviews/#new-post)

[Zobacz wszystkierecenzje.](https://wordpress.org/support/plugin/rdp-google-custom-search/reviews/)

## Zaangażowani

 *   [ Robert D Payne ](https://profiles.wordpress.org/rpayne7264/)

## Wsparcie

Masz coś do dodania? Potrzebujesz pomocy?

 [Zobacz forum wsparcia](https://wordpress.org/support/plugin/rdp-google-custom-search/)