- Create a Blog
- View Blog
- View source (Control-U in Firefox)
- Find the "snippet" by searching for the string
renderMembersGadget
- Copy the number after
site
from this snippet:
{ id: "div-1238550266617",
site: "THIS_IS_YOUR_SITE_NUMBER" }
- Customize
- Add a Gadget
- HTML/Javascript
- Title: Social Bar
- Content: (copy and paste exactly)
<script src="http://www.google.com/friendconnect/script/friendconnect.js" type="text/javascript"></script>
<div id="div-for-the-social-bar"></div>
<!-- Render the gadget into a div. -->
<script type="text/javascript">
var skin = {};
skin['BORDER_COLOR'] = '#cccccc';
skin['ENDCAP_BG_COLOR'] = '#e0ecff';
skin['ENDCAP_TEXT_COLOR'] = '#333333';
skin['ENDCAP_LINK_COLOR'] = '#0000cc';
skin['ALTERNATE_BG_COLOR'] = '#ffffff';
skin['CONTENT_BG_COLOR'] = '#ffffff';
skin['CONTENT_LINK_COLOR'] = '#0000cc';
skin['CONTENT_TEXT_COLOR'] = '#333333';
skin['CONTENT_SECONDARY_LINK_COLOR'] = '#7777cc';
skin['CONTENT_SECONDARY_TEXT_COLOR'] = '#666666';
skin['CONTENT_HEADLINE_COLOR'] = '#333333';
skin['POSITION'] = 'bottom';
skin['DEFAULT_COMMENT_TEXT'] = '- add your comment here -';
skin['HEADER_TEXT'] = 'Comments';
google.friendconnect.container.setParentUrl('/');
google.friendconnect.container.renderSocialBar(
{ id: 'div-for-the-social-bar',
site: 'THIS_IS_YOUR_SITE_NUMBER',
'view-params':{"scope":"SITE",
"features":"video,comment",
"showWall":"true"}
},
skin);
</script>
- Find the string
THIS_IS_YOUR_SITE_NUMBER
and replace it with the number from step 5.
- View Blog
- Be Happy (as long as you don't use IE6...)
Thanks to everyone for working so hard on the Friend Connect and Blogger integration!
Why the hell the colors keep chaging every time? i.e. i customized the color in the code, but they are reverted to the default ones after a while
ReplyDeleteWow!!! This is awesome!
ReplyDeleteThanks sooooooo much!
This is a wonderful tutorial except when I view the source of my blog, there aren't any strings by that name, plus there are so many different site numbers, I've tried them all and none seem to work :(
ReplyDelete