My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
Options  

Phase-Implementation, Featured
Updated Oct 15, 2011 by mikedotmore

Options List

Plugin supports many arguments. All arguments are optional except for the "query" option to set search query..

You can place options array in a HTML5 data attribute "data-button".

Also, you can place options in HTML comment so It would not break HTML validation of your page.

Options must be separated by a comma, but a trailing comma is fatal.

Option Description Default value
debug Set debug to 1 while you are testing to throw errors, then set it to 0 when you done. 0
api_key Google+ API key that will be used on every request. An API key is included by default. Still, it is recommended to use your own API key to avoid been blocked by the API due to rate limits.

You can get a free API key:

1. Go to https://code.google.com/apis/console#access.

2. Login and click "Create Project".

3. Under service list, click "off" button next to "Google+ API" to turn on.

4. Accept the agreement.

5. From the left menu, Go to "API Access" and copy your API key.

To use yours, set this default plugin option with your API key right after including the JavaScript files

<script type="text/javascript">
	jQuery.fn.googlePlusSearch.defaults.api_key = 'your-API-key..';
</script>
'AIzx.....'
query Search query! ''
n Number of posts to return. max is 20. 20
rotate Set as 1 to rotate posts list or 0 for no rotation. 1
body_height Height of widget body that holds the rotating posts (in pixels). 300
show_image Set as 1 to show attached image in posts if any or 0 otherwise. 1
image_width Width of image displayed with activity post (in pixels). 75
image_height Height of image displayed with activity post (in pixels). 75
show_user Set as 1 to show user name or 0 otherwise. 1
show_avatar Set as 1 to show user image or 0 otherwise. 1
avatar_max Width/Height of user image (in pixels). 50
show_header Set as 1 to show header icon and title, or 0 otherwise. 0
header_title Set the title to appear in the widget header or leave empty. ''
header_icon Set the url of header icon or leave empty. by default widget uses Google+ Profile button '.../gprofile_button-32.png'
header_url Set the target link of header title or leave empty to link to Google+ search page. ''
stay_time Time delay in m.seconds for a post to display before it moves down. 5000
slide_time Time delay in m.seconds for a post to slide down. 200
fade_time Time delay in m.seconds for a post to fade in. 500
show_date Set as 1 to show post date or 0 otherwise. 1
show_replies Set as 1 to show number of comments or 0 otherwise. 1
show_plusones Set as 1 to show number of +1's or 0 otherwise. 1
show_shares Set as 1 to show how many times the post was reshared or 0 otherwise. 1


Sign in to add a comment
Powered by Google Project Hosting