Options List
Plugin supports many arguments. But, all arguments are optional except for the "user" option to set your Google+ profile ID..
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.googlePlusActivity.defaults.api_key = 'your-API-key..';
</script> |
'AIzx.....' |
| user |
Set your Google+ profile ID.
Profile ID is the numeric part in your profile url like this "https://plus.google.com/118211149935481259253" |
'' |
| n |
Number of posts to return from your activity feed. |
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 |
| image_width |
Width of image displayed with activity post (in pixels). |
75 |
| image_height |
Height of image displayed with activity post (in pixels). |
75 |
| avatar_max |
Width/Height of profile image (in pixels). |
50 |
| show_profile |
Set as 1 to show your profile name and avatar at the widget header or 0 otherwise. |
1 |
| show_image |
Set as 1 to show attached image in posts if any or 0 otherwise. |
1 |
| 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 |